Documentation: NexDualStateButton.h Source File

| Documentation For Arduino users

- Main Page
- Related Pages
- Modules
- Classes
- Files
- Examples

- File List
- File Members

NexDualStateButton.h
Go to the documentation of this file.
1
18 #ifndef __NEXDSBUTTON_H__
19 #define __NEXDSBUTTON_H__
20
21 #include "NexTouch.h"
22 #include "NexHardware.h"
36 class NexDSButton: public NexTouch
37 {
38 public: /* methods */
42 NexDSButton(uint8_t pid, uint8_t cid, const char *name);
43
50 bool getValue(uint32_t *number);
51
58 bool setValue(uint32_t number);
59
67 uint16_t getText(char *buffer, uint16_t len);
68
75 bool setText(const char *buffer);
76
83 uint32_t Get_state0_color_bco0(uint32_t *number);
84
91 bool Set_state0_color_bco0(uint32_t number);
92
99 uint32_t Get_state1_color_bco1(uint32_t *number);
100
107 bool Set_state1_color_bco1(uint32_t number);
108
115 uint32_t Get_font_color_pco(uint32_t *number);
116
123 bool Set_font_color_pco(uint32_t number);
124
131 uint32_t Get_place_xcen(uint32_t *number);
132
139 bool Set_place_xcen(uint32_t number);
140
147 uint32_t Get_place_ycen(uint32_t *number);
148
155 bool Set_place_ycen(uint32_t number);
156
163 uint32_t getFont(uint32_t *number);
164
171 bool setFont(uint32_t number);
172
179 uint32_t Get_state0_crop_picc0(uint32_t *number);
180
187 bool Set_state0_crop_picc0(uint32_t number);
188
195 uint32_t Get_state1_crop_picc1(uint32_t *number);
196
203 bool Set_state1_crop_picc1(uint32_t number);
204
211 uint32_t Get_state0_image_pic0(uint32_t *number);
212
219 bool Set_state0_image_pic0(uint32_t number);
220
227 uint32_t Get_state1_image_pic1(uint32_t *number);
228
235 bool Set_state1_image_pic1(uint32_t number);
236 };
243 #endif /* #ifndef __NEXDSBUTTON_H__ */
NexDSButton::Set_state1_color_bco1
bool Set_state1_color_bco1(uint32_t number)
Set bco1 attribute of component.
Definition: NexDualStateButton.cpp:105
NexDSButton::Get_state1_color_bco1
uint32_t Get_state1_color_bco1(uint32_t *number)
Get bco1 attribute of component.
Definition: NexDualStateButton.cpp:95
NexDSButton::Set_place_ycen
bool Set_place_ycen(uint32_t number)
Set ycen attribute of component.
Definition: NexDualStateButton.cpp:189
NexDSButton::Set_state1_image_pic1
bool Set_state1_image_pic1(uint32_t number)
Set pic1 attribute of component.
Definition: NexDualStateButton.cpp:329
NexDSButton::getFont
uint32_t getFont(uint32_t *number)
Get font attribute of component.
Definition: NexDualStateButton.cpp:207
NexDSButton::Get_state1_image_pic1
uint32_t Get_state1_image_pic1(uint32_t *number)
Get pic1 attribute of component.
Definition: NexDualStateButton.cpp:319
NexDSButton
NexDSButton component.
Definition: NexDualStateButton.h:36
NexDSButton::setFont
bool setFont(uint32_t number)
Set font attribute of component.
Definition: NexDualStateButton.cpp:217
NexDSButton::Set_place_xcen
bool Set_place_xcen(uint32_t number)
Set xcen attribute of component.
Definition: NexDualStateButton.cpp:161
NexDSButton::Get_state0_image_pic0
uint32_t Get_state0_image_pic0(uint32_t *number)
Get pic0 attribute of component.
Definition: NexDualStateButton.cpp:291
NexDSButton::Set_state0_crop_picc0
bool Set_state0_crop_picc0(uint32_t number)
Set picc0 attribute of component.
Definition: NexDualStateButton.cpp:245
NexDSButton::Get_state0_color_bco0
uint32_t Get_state0_color_bco0(uint32_t *number)
Get bco0 attribute of component.
Definition: NexDualStateButton.cpp:67
NexDSButton::Set_font_color_pco
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
Definition: NexDualStateButton.cpp:133
NexDSButton::Get_font_color_pco
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
Definition: NexDualStateButton.cpp:123
NexDSButton::getValue
bool getValue(uint32_t *number)
Get number attribute of component.
Definition: NexDualStateButton.cpp:23
NexDSButton::Get_place_ycen
uint32_t Get_place_ycen(uint32_t *number)
Get ycen attribute of component.
Definition: NexDualStateButton.cpp:179
NexTouch.h
The definition of class NexTouch.
NexDSButton::Set_state0_image_pic0
bool Set_state0_image_pic0(uint32_t number)
Set pic0 attribute of component.
Definition: NexDualStateButton.cpp:301
NexDSButton::NexDSButton
NexDSButton(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexDualStateButton.cpp:18
NexHardware.h
The definition of base API for using Nextion.
NexDSButton::Get_state0_crop_picc0
uint32_t Get_state0_crop_picc0(uint32_t *number)
Get picc0 attribute of component.
Definition: NexDualStateButton.cpp:235
NexDSButton::setValue
bool setValue(uint32_t number)
Set number attribute of component.
Definition: NexDualStateButton.cpp:32
NexDSButton::getText
uint16_t getText(char *buffer, uint16_t len)
Get text attribute of component.
Definition: NexDualStateButton.cpp:46
NexDSButton::Set_state1_crop_picc1
bool Set_state1_crop_picc1(uint32_t number)
Set picc1 attribute of component.
Definition: NexDualStateButton.cpp:273
NexDSButton::setText
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexDualStateButton.cpp:56
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53
NexDSButton::Get_state1_crop_picc1
uint32_t Get_state1_crop_picc1(uint32_t *number)
Get picc1 attribute of component.
Definition: NexDualStateButton.cpp:263
NexDSButton::Get_place_xcen
uint32_t Get_place_xcen(uint32_t *number)
Get xcen attribute of component.
Definition: NexDualStateButton.cpp:151
NexDSButton::Set_state0_color_bco0
bool Set_state0_color_bco0(uint32_t number)
Set bco0 attribute of component.
Definition: NexDualStateButton.cpp:77