Documentation
For Arduino users
NexCheckbox.h
Go to the documentation of this file.
1 
17 #ifndef __NEXCHECKBOX_H__
18 #define __NEXCHECKBOX_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
35 class NexCheckbox: public NexTouch
36 {
37 public: /* methods */
38 
42  NexCheckbox(uint8_t pid, uint8_t cid, const char *name);
43 
50  uint32_t getValue(uint32_t *number);
51 
58  bool setValue(uint32_t number);
59 
66  uint32_t Get_background_color_bco(uint32_t *number);
67 
74  bool Set_background_color_bco(uint32_t number);
75 
82  uint32_t Get_font_color_pco(uint32_t *number);
83 
90  bool Set_font_color_pco(uint32_t number);
91 };
97 #endif /* #ifndef __NEXCHECKBOX_H__ */
bool setValue(uint32_t number)
Set val attribute of component.
Definition: NexCheckbox.cpp:31
bool Set_background_color_bco(uint32_t number)
Set bco attribute of component.
Definition: NexCheckbox.cpp:55
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
Definition: NexCheckbox.cpp:83
uint32_t Get_background_color_bco(uint32_t *number)
Get bco attribute of component.
Definition: NexCheckbox.cpp:45
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
Definition: NexCheckbox.cpp:73
The definition of class NexTouch.
uint32_t getValue(uint32_t *number)
Get val attribute of component.
Definition: NexCheckbox.cpp:22
The definition of base API for using Nextion.
NexButton component.
Definition: NexCheckbox.h:35
NexCheckbox(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexCheckbox.cpp:17
Father class of the components with touch events.
Definition: NexTouch.h:53