Documentation
For Arduino users
NexNumber.h
Go to the documentation of this file.
1 
17 #ifndef __NEXNUMBER_H__
18 #define __NEXNUMBER_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
30 class NexNumber: public NexTouch
31 {
32 public: /* methods */
36  NexNumber(uint8_t pid, uint8_t cid, const char *name);
37 
44  bool getValue(uint32_t *number);
45 
52  bool setValue(uint32_t number);
53 
60  uint32_t Get_background_color_bco(uint32_t *number);
61 
68  bool Set_background_color_bco(uint32_t number);
69 
76  uint32_t Get_font_color_pco(uint32_t *number);
77 
84  bool Set_font_color_pco(uint32_t number);
85 
92  uint32_t Get_place_xcen(uint32_t *number);
93 
100  bool Set_place_xcen(uint32_t number);
101 
108  uint32_t Get_place_ycen(uint32_t *number);
109 
116  bool Set_place_ycen(uint32_t number);
117 
124  uint32_t getFont(uint32_t *number);
125 
132  bool setFont(uint32_t number);
133 
140  uint32_t Get_number_lenth(uint32_t *number);
141 
148  bool Set_number_lenth(uint32_t number);
149 
156  uint32_t Get_background_crop_picc(uint32_t *number);
157 
164  bool Set_background_crop_picc(uint32_t number);
165 
172  uint32_t Get_background_image_pic(uint32_t *number);
173 
180  bool Set_background_image_pic(uint32_t number);
181 };
182 
187 #endif /* #ifndef __NEXNUMBER_H__ */
uint32_t Get_background_color_bco(uint32_t *number)
Get bco attribute of component.
Definition: NexNumber.cpp:45
NexNumber component.
Definition: NexNumber.h:30
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
Definition: NexNumber.cpp:83
bool Set_background_crop_picc(uint32_t number)
Set picc attribute of component.
Definition: NexNumber.cpp:223
NexNumber(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexNumber.cpp:17
uint32_t Get_number_lenth(uint32_t *number)
Get lenth attribute of component.
Definition: NexNumber.cpp:185
uint32_t Get_place_xcen(uint32_t *number)
Get xcen attribute of component.
Definition: NexNumber.cpp:101
bool Set_number_lenth(uint32_t number)
Set lenth attribute of component.
Definition: NexNumber.cpp:195
bool setFont(uint32_t number)
Set font attribute of component.
Definition: NexNumber.cpp:167
uint32_t Get_background_image_pic(uint32_t *number)
Get pic attribute of component.
Definition: NexNumber.cpp:241
bool Set_background_image_pic(uint32_t number)
Set pic attribute of component.
Definition: NexNumber.cpp:250
The definition of class NexTouch.
The definition of base API for using Nextion.
bool Set_place_ycen(uint32_t number)
Set ycen attribute of component.
Definition: NexNumber.cpp:139
uint32_t Get_place_ycen(uint32_t *number)
Get ycen attribute of component.
Definition: NexNumber.cpp:129
bool setValue(uint32_t number)
Set number attribute of component.
Definition: NexNumber.cpp:31
uint32_t getFont(uint32_t *number)
Get font attribute of component.
Definition: NexNumber.cpp:157
bool getValue(uint32_t *number)
Get number attribute of component.
Definition: NexNumber.cpp:22
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
Definition: NexNumber.cpp:73
bool Set_background_color_bco(uint32_t number)
Set bco attribute of component.
Definition: NexNumber.cpp:55
Father class of the components with touch events.
Definition: NexTouch.h:53
bool Set_place_xcen(uint32_t number)
Set xcen attribute of component.
Definition: NexNumber.cpp:111
uint32_t Get_background_crop_picc(uint32_t *number)
Get picc attribute of component.
Definition: NexNumber.cpp:213