Documentation: NexText.h Source File

| Documentation For Arduino users

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

- File List
- File Members

NexText.h
Go to the documentation of this file.
1
17 #ifndef __NEXTEXT_H__
18 #define __NEXTEXT_H__
19
20 #include "NexTouch.h"
21 #include "NexHardware.h"
30 class NexText: public NexTouch
31 {
32 public: /* methods */
36 NexText(uint8_t pid, uint8_t cid, const char *name);
37
45 uint16_t getText(char *buffer, uint16_t len);
46
53 bool setText(const char *buffer);
54
61 uint32_t Get_background_color_bco(uint32_t *number);
62
69 bool Set_background_color_bco(uint32_t number);
70
77 uint32_t Get_font_color_pco(uint32_t *number);
78
85 bool Set_font_color_pco(uint32_t number);
86
93 uint32_t Get_place_xcen(uint32_t *number);
94
101 bool Set_place_xcen(uint32_t number);
102
109 uint32_t Get_place_ycen(uint32_t *number);
110
117 bool Set_place_ycen(uint32_t number);
118
125 uint32_t getFont(uint32_t *number);
126
133 bool setFont(uint32_t number);
134
141 uint32_t Get_background_crop_picc(uint32_t *number);
142
149 bool Set_background_crop_picc(uint32_t number);
150
157 uint32_t Get_background_image_pic(uint32_t *number);
158
165 bool Set_background_image_pic(uint32_t number);
166
167 };
168
173 #endif /* #ifndef __NEXTEXT_H__ */
NexText::Set_font_color_pco
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
Definition: NexText.cpp:81
NexText::getFont
uint32_t getFont(uint32_t *number)
Get font attribute of component.
Definition: NexText.cpp:155
NexText::NexText
NexText(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexText.cpp:17
NexText::setText
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexText.cpp:32
NexText::Get_background_image_pic
uint32_t Get_background_image_pic(uint32_t *number)
Get pic attribute of component.
Definition: NexText.cpp:211
NexText::Get_place_xcen
uint32_t Get_place_xcen(uint32_t *number)
Get xcen attribute of component.
Definition: NexText.cpp:99
NexText::Get_background_crop_picc
uint32_t Get_background_crop_picc(uint32_t *number)
Get picc attribute of component.
Definition: NexText.cpp:183
NexText::Get_background_color_bco
uint32_t Get_background_color_bco(uint32_t *number)
Get bco attribute of component.
Definition: NexText.cpp:43
NexText::Set_place_ycen
bool Set_place_ycen(uint32_t number)
Set ycen attribute of component.
Definition: NexText.cpp:137
NexText::getText
uint16_t getText(char *buffer, uint16_t len)
Get text attribute of component.
Definition: NexText.cpp:22
NexTouch.h
The definition of class NexTouch.
NexText::Set_background_crop_picc
bool Set_background_crop_picc(uint32_t number)
Set picc attribute of component.
Definition: NexText.cpp:193
NexHardware.h
The definition of base API for using Nextion.
NexText::Get_place_ycen
uint32_t Get_place_ycen(uint32_t *number)
Get ycen attribute of component.
Definition: NexText.cpp:127
NexText::Set_background_color_bco
bool Set_background_color_bco(uint32_t number)
Set bco attribute of component.
Definition: NexText.cpp:53
NexText::Get_font_color_pco
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
Definition: NexText.cpp:71
NexText::Set_place_xcen
bool Set_place_xcen(uint32_t number)
Set xcen attribute of component.
Definition: NexText.cpp:109
NexText::Set_background_image_pic
bool Set_background_image_pic(uint32_t number)
Set pic attribute of component.
Definition: NexText.cpp:220
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53
NexText
NexText component.
Definition: NexText.h:30
NexText::setFont
bool setFont(uint32_t number)
Set font attribute of component.
Definition: NexText.cpp:165