Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
NexButton.h
1 
17 #ifndef __NEXBUTTON_H__
18 #define __NEXBUTTON_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
35 class NexButton: public NexTouch
36 {
37 public: /* methods */
38 
42  NexButton(uint8_t pid, uint8_t cid, const char *name);
43 
51  uint16_t getText(char *buffer, uint16_t len);
52 
59  bool setText(const char *buffer);
60 
67  uint32_t Get_background_color_bco(uint32_t *number);
68 
75  bool Set_background_color_bco(uint32_t number);
76 
83  uint32_t Get_press_background_color_bco2(uint32_t *number);
84 
91  bool Set_press_background_color_bco2(uint32_t number);
92 
99  uint32_t Get_font_color_pco(uint32_t *number);
100 
107  bool Set_font_color_pco(uint32_t number);
108 
115  uint32_t Get_press_font_color_pco2(uint32_t *number);
116 
123  bool Set_press_font_color_pco2(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_background_cropi_picc(uint32_t *number);
180 
187  bool Set_background_crop_picc(uint32_t number);
188 
195  uint32_t Get_press_background_crop_picc2(uint32_t *number);
196 
203  bool Set_press_background_crop_picc2(uint32_t number);
204 
211  uint32_t Get_background_image_pic(uint32_t *number);
212 
219  bool Set_background_image_pic(uint32_t number);
220 
227  uint32_t Get_press_background_image_pic2(uint32_t *number);
228 
235  bool Set_press_background_image_pic2(uint32_t number);
236 };
242 #endif /* #ifndef __NEXBUTTON_H__ */
Definition: NexTouch.h:53
uint32_t Get_press_background_crop_picc2(uint32_t *number)
uint32_t Get_place_xcen(uint32_t *number)
uint32_t getFont(uint32_t *number)
bool Set_background_crop_picc(uint32_t number)
NexButton(uint8_t pid, uint8_t cid, const char *name)
uint32_t Get_background_color_bco(uint32_t *number)
bool setText(const char *buffer)
bool Set_background_color_bco(uint32_t number)
uint32_t Get_press_background_color_bco2(uint32_t *number)
bool Set_place_ycen(uint32_t number)
uint32_t Get_font_color_pco(uint32_t *number)
Definition: NexButton.h:35
uint32_t Get_press_font_color_pco2(uint32_t *number)
bool Set_font_color_pco(uint32_t number)
uint16_t getText(char *buffer, uint16_t len)
bool Set_press_background_crop_picc2(uint32_t number)
uint32_t Get_place_ycen(uint32_t *number)
bool Set_press_background_color_bco2(uint32_t number)
uint32_t Get_background_cropi_picc(uint32_t *number)
uint32_t Get_background_image_pic(uint32_t *number)
uint32_t Get_press_background_image_pic2(uint32_t *number)
bool Set_press_font_color_pco2(uint32_t number)
bool setFont(uint32_t number)
bool Set_press_background_image_pic2(uint32_t number)
bool Set_place_xcen(uint32_t number)
bool Set_background_image_pic(uint32_t number)