pfodParser  3.55.0
The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections
pfodTouchActionInput.h
Go to the documentation of this file.
1 #ifndef pfodTouchActionInput_h
2 #define pfodTouchActionInput_h
3 /*
4  * (c)2014-2017 Forward Computing and Control Pty. Ltd.
5  * NSW Australia, www.forward.com.au
6  * This code is not warranted to be fit for any purpose. You may only use it at your own risk.
7  * This code may be freely used for both private and commercial use
8  * Provide this copyright is maintained.
9  */
10 #include <stdint.h>
11 #include <Arduino.h>
12 #include "pfodDwgsBase.h"
13 
15  public:
17  pfodTouchActionInput &cmd(const char _cmd); // default ' ' not set
18  pfodTouchActionInput &cmd(const char* _cmdStr); // for multi char cmds
19  pfodTouchActionInput &encode(); // replace restricted chars in prompt
20  pfodTouchActionInput &prompt(const char* txt);
21  pfodTouchActionInput &prompt(const __FlashStringHelper *txtF);
22  pfodTouchActionInput &textIdx(uint16_t _idx);
24  pfodTouchActionInput &color(int _color); // default WHITE
25  pfodTouchActionInput &backgroundColor(int _color); // default BLACK
26  pfodTouchActionInput &fontSize(int _font); // default 0 = <+0>
30  void init(Print *out, struct VALUES* _values);
31  void send(char _startChar = '|');
32  private:
33  pfodDwgsBase *actionPtr;
34  char actionCmd;
35  const char* actionCmdStr;
36 };
37 #endif // pfodTouchActionInput_h
Print * out
Definition: pfodDwgsBase.h:58
void init(Print *out, struct VALUES *_values)
pfodTouchActionInput & fontSize(int _font)
pfodTouchActionInput & textIdx(uint16_t _idx)
pfodTouchActionInput & italic()
pfodTouchActionInput & bold()
pfodTouchActionInput & underline()
pfodTouchActionInput & color(int _color)
pfodTouchActionInput & cmd(const char *_cmdStr)
pfodTouchActionInput & textIdx(pfodAutoIdx &a_idx)
pfodTouchActionInput & backgroundColor(int _color)
pfodTouchActionInput & cmd(const char _cmd)
pfodTouchActionInput & prompt(const __FlashStringHelper *txtF)
pfodTouchActionInput & prompt(const char *txt)
pfodTouchActionInput & encode()
void send(char _startChar='|')