My Project
 All Classes Files Functions Typedefs Groups Pages
NexScrolltext.h
Go to the documentation of this file.
1 
17 #ifndef __NEXSCROLLTEXT_H__
18 #define __NEXSCROLLTEXT_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
30 class NexScrolltext: public NexTouch
31 {
32 public: /* methods */
36  NexScrolltext(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 
55  /*
56  * Get bco attribute of component
57  *
58  * @param number - buffer storing data retur
59  * @return the length of the data
60  */
61 
62  uint32_t Get_background_color_bco(uint32_t *number);
63 
64  /*
65  * Set bco attribute of component
66  *
67  * @param number - To set up the data
68  * @return true if success, false for failure
69  */
70 
71  bool Set_background_color_bco(uint32_t number);
72 
73  /*
74  * Get pco attribute of component
75  *
76  * @param number - buffer storing data retur
77  * @return the length of the data
78  */
79 
80  uint32_t Get_font_color_pco(uint32_t *number);
81 
82  /*
83  * Set pco attribute of component
84  *
85  * @param number - To set up the data
86  * @return true if success, false for failure
87  */
88 
89  bool Set_font_color_pco(uint32_t number);
90 
91  /*
92  * Get xcen attribute of component
93  *
94  * @param number - buffer storing data retur
95  * @return the length of the data
96  */
97 
98  uint32_t Get_place_xcen(uint32_t *number);
99 
100  /*
101  * Set xcen attribute of component
102  *
103  * @param number - To set up the data
104  * @return true if success, false for failure
105  */
106 
107  bool Set_place_xcen(uint32_t number);
108 
109  /*
110  * Get ycen attribute of component
111  *
112  * @param number - buffer storing data retur
113  * @return the length of the data
114  */
115 
116  uint32_t Get_place_ycen(uint32_t *number);
117 
118  /*
119  * Set ycen attribute of component
120  *
121  * @param number - To set up the data
122  * @return true if success, false for failure
123  */
124 
125  bool Set_place_ycen(uint32_t number);
126 
127  /*
128  * Get font attribute of component
129  *
130  * @param number - buffer storing data retur
131  * @return the length of the data
132  */
133 
134  uint32_t getFont(uint32_t *number);
135 
136  /*
137  * Set font attribute of component
138  *
139  * @param number - To set up the data
140  * @return true if success, false for failure
141  */
142 
143  bool setFont(uint32_t number);
144 
145  /*
146  * Get picc attribute of component
147  *
148  * @param number - buffer storing data retur
149  * @return the length of the data
150  */
151 
152  uint32_t Get_background_crop_picc(uint32_t *number);
153 
154  /*
155  * Set picc attribute of component
156  *
157  * @param number - To set up the data
158  * @return true if success, false for failure
159  */
160 
161  bool Set_background_crop_picc(uint32_t number);
162 
163  /*
164  * Get pic attribute of component
165  *
166  * @param number - buffer storing data retur
167  * @return the length of the data
168  */
169 
170  uint32_t Get_background_image_pic(uint32_t *number);
171 
172  /*
173  * Set pic attribute of component
174  *
175  * @param number - To set up the data
176  * @return true if success, false for failure
177  */
178 
179  bool Set_background_image_pic(uint32_t number);
180 
181  /*
182  * Get dir attribute of component
183  *
184  * @param number - buffer storing data retur
185  * @return the length of the data
186  */
187 
188  uint32_t Get_scroll_dir(uint32_t *number);
189 
190  /*
191  * Set dir attribute of component
192  *
193  * @param number - To set up the data
194  * @return true if success, false for failure
195  */
196 
197  bool Set_scroll_dir(uint32_t number);
198 
199  /*
200  * Get dis attribute of component
201  *
202  * @param number - buffer storing data retur
203  * @return the length of the data
204  */
205 
206  uint32_t Get_scroll_distance(uint32_t *number);
207 
208  /*
209  * Set dis attribute of component
210  *
211  * @param number - To set up the data
212  * @return true if success, false for failure
213  */
214 
215  bool Set_scroll_distance(uint32_t number);
216 
217  /*
218  * Get tim attribute of component
219  *
220  * @param number - buffer storing data retur
221  * @return the length of the data
222  */
223 
224  uint32_t Get_cycle_tim(uint32_t *number);
225 
226  /*
227  * Set tim attribute of component
228  *
229  * @param number - To set up the data
230  * @return true if success, false for failure
231  */
232 
233  bool Set_cycle_tim(uint32_t number);
234 
235  bool enable(void);
236  bool disable(void);
237 
238 };
239 
244 #endif /* #ifndef __NEXSCROLLTEXT_H__ */
Definition: NexScrolltext.h:30
bool setText(const char *buffer)
Definition: NexScrolltext.cpp:32
uint16_t getText(char *buffer, uint16_t len)
Definition: NexScrolltext.cpp:22
Definition: NexTouch.h:53
NexScrolltext(uint8_t pid, uint8_t cid, const char *name)
Definition: NexScrolltext.cpp:17