Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
NexDualStateButton.h
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__ */
Definition: NexTouch.h:53
bool Set_font_color_pco(uint32_t number)
bool Set_state0_color_bco0(uint32_t number)
uint32_t getFont(uint32_t *number)
uint32_t Get_state1_image_pic1(uint32_t *number)
Definition: NexDualStateButton.h:36
bool Set_state0_image_pic0(uint32_t number)
uint16_t getText(char *buffer, uint16_t len)
bool Set_place_ycen(uint32_t number)
NexDSButton(uint8_t pid, uint8_t cid, const char *name)
bool Set_state1_color_bco1(uint32_t number)
uint32_t Get_state1_color_bco1(uint32_t *number)
uint32_t Get_place_xcen(uint32_t *number)
bool getValue(uint32_t *number)
uint32_t Get_state1_crop_picc1(uint32_t *number)
bool setValue(uint32_t number)
uint32_t Get_state0_color_bco0(uint32_t *number)
uint32_t Get_state0_crop_picc0(uint32_t *number)
uint32_t Get_state0_image_pic0(uint32_t *number)
uint32_t Get_font_color_pco(uint32_t *number)
bool Set_state1_crop_picc1(uint32_t number)
bool setFont(uint32_t number)
uint32_t Get_place_ycen(uint32_t *number)
bool setText(const char *buffer)
bool Set_state1_image_pic1(uint32_t number)
bool Set_state0_crop_picc0(uint32_t number)
bool Set_place_xcen(uint32_t number)