| Documentation For Arduino users

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

- File List
- File Members

NexButton.h
Go to the documentation of this file.
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__ */
NexButton::Get_place_ycen
uint32_t Get_place_ycen(uint32_t *number)
Get ycen attribute of component.
Definition: NexButton.cpp:185
NexButton::Set_place_ycen
bool Set_place_ycen(uint32_t number)
Set ycen attribute of component.
Definition: NexButton.cpp:195
NexButton::Set_background_image_pic
bool Set_background_image_pic(uint32_t number)
Set pic attribute of component.
Definition: NexButton.cpp:307
NexButton::NexButton
NexButton(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexButton.cpp:18
NexButton::getText
uint16_t getText(char *buffer, uint16_t len)
Get text attribute of component.
Definition: NexButton.cpp:23
NexButton::Set_press_background_image_pic2
bool Set_press_background_image_pic2(uint32_t number)
Set pic2 attribute of component.
Definition: NexButton.cpp:335
NexButton::Get_background_cropi_picc
uint32_t Get_background_cropi_picc(uint32_t *number)
Get picc attribute of component.
Definition: NexButton.cpp:241
NexButton::Set_place_xcen
bool Set_place_xcen(uint32_t number)
Set xcen attribute of component.
Definition: NexButton.cpp:167
NexButton::Get_press_background_color_bco2
uint32_t Get_press_background_color_bco2(uint32_t *number)
Get bco2 attribute of component.
Definition: NexButton.cpp:73
NexButton::Get_background_image_pic
uint32_t Get_background_image_pic(uint32_t *number)
Get pic attribute of component.
Definition: NexButton.cpp:297
NexButton::Set_background_color_bco
bool Set_background_color_bco(uint32_t number)
Set bco attribute of component.
Definition: NexButton.cpp:55
NexButton::Set_press_background_crop_picc2
bool Set_press_background_crop_picc2(uint32_t number)
Set picc2 attribute of component.
Definition: NexButton.cpp:279
NexButton
NexButton component.
Definition: NexButton.h:35
NexButton::Set_background_crop_picc
bool Set_background_crop_picc(uint32_t number)
Set picc attribute of component.
Definition: NexButton.cpp:251
NexButton::setText
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexButton.cpp:33
NexButton::Get_press_background_image_pic2
uint32_t Get_press_background_image_pic2(uint32_t *number)
Get pic2 attribute of component.
Definition: NexButton.cpp:325
NexButton::Get_press_background_crop_picc2
uint32_t Get_press_background_crop_picc2(uint32_t *number)
Get picc2 attribute of component.
Definition: NexButton.cpp:269
NexTouch.h
The definition of class NexTouch.
NexButton::getFont
uint32_t getFont(uint32_t *number)
Get font attribute of component.
Definition: NexButton.cpp:213
NexHardware.h
The definition of base API for using Nextion.
NexButton::setFont
bool setFont(uint32_t number)
Set font attribute of component.
Definition: NexButton.cpp:223
NexButton::Set_font_color_pco
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
Definition: NexButton.cpp:111
NexButton::Set_press_background_color_bco2
bool Set_press_background_color_bco2(uint32_t number)
Set bco2 attribute of component.
Definition: NexButton.cpp:83
NexButton::Get_font_color_pco
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
Definition: NexButton.cpp:101
NexButton::Get_place_xcen
uint32_t Get_place_xcen(uint32_t *number)
Get xcen attribute of component.
Definition: NexButton.cpp:157
NexButton::Get_background_color_bco
uint32_t Get_background_color_bco(uint32_t *number)
Get bco attribute of component.
Definition: NexButton.cpp:45
NexButton::Get_press_font_color_pco2
uint32_t Get_press_font_color_pco2(uint32_t *number)
Get pco2 attribute of component.
Definition: NexButton.cpp:129
NexButton::Set_press_font_color_pco2
bool Set_press_font_color_pco2(uint32_t number)
Set pco2 attribute of component.
Definition: NexButton.cpp:139
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53