Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
#include <NexNumber.h>
Public Member Functions | |
NexNumber (uint8_t pid, uint8_t cid, const char *name) | |
bool | getValue (uint32_t *number) |
bool | setValue (uint32_t number) |
uint32_t | Get_background_color_bco (uint32_t *number) |
bool | Set_background_color_bco (uint32_t number) |
uint32_t | Get_font_color_pco (uint32_t *number) |
bool | Set_font_color_pco (uint32_t number) |
uint32_t | Get_place_xcen (uint32_t *number) |
bool | Set_place_xcen (uint32_t number) |
uint32_t | Get_place_ycen (uint32_t *number) |
bool | Set_place_ycen (uint32_t number) |
uint32_t | getFont (uint32_t *number) |
bool | setFont (uint32_t number) |
uint32_t | Get_number_lenth (uint32_t *number) |
bool | Set_number_lenth (uint32_t number) |
uint32_t | Get_background_crop_picc (uint32_t *number) |
bool | Set_background_crop_picc (uint32_t number) |
uint32_t | Get_background_image_pic (uint32_t *number) |
bool | Set_background_image_pic (uint32_t number) |
void | attachPush (NexTouchEventCb push, void *ptr=NULL) |
void | detachPush (void) |
void | attachPop (NexTouchEventCb pop, void *ptr=NULL) |
void | detachPop (void) |
void | printObjInfo (void) |
Static Public Member Functions | |
static void | iterate (NexTouch **list, uint8_t pid, uint8_t cid, int32_t event) |
Protected Member Functions | |
uint8_t | getObjPid (void) |
uint8_t | getObjCid (void) |
const char * | getObjName (void) |
NexNumber component.
NexNumber::NexNumber | ( | uint8_t | pid, |
uint8_t | cid, | ||
const char * | name | ||
) |
Constructor.
pid | - page id. |
cid | - component id. |
name | - pointer to an unique name in range of all components. |
|
inherited |
Attach an callback function of pop touch event.
pop | - callback called with ptr when a pop touch event occurs. |
ptr | - parameter passed into pop[default:NULL]. |
|
inherited |
Attach an callback function of push touch event.
push | - callback called with ptr when a push touch event occurs. |
ptr | - parameter passed into push[default:NULL]. |
|
inherited |
Detach an callback function.
|
inherited |
Detach an callback function.
uint32_t NexNumber::Get_background_color_bco | ( | uint32_t * | number | ) |
Get bco attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::Get_background_crop_picc | ( | uint32_t * | number | ) |
Get picc attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::Get_background_image_pic | ( | uint32_t * | number | ) |
Get pic attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::Get_font_color_pco | ( | uint32_t * | number | ) |
Get pco attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::Get_number_lenth | ( | uint32_t * | number | ) |
Get lenth attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::Get_place_xcen | ( | uint32_t * | number | ) |
Get xcen attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::Get_place_ycen | ( | uint32_t * | number | ) |
Get ycen attribute of component
number | - buffer storing data retur |
uint32_t NexNumber::getFont | ( | uint32_t * | number | ) |
Get font attribute of component
number | - buffer storing data retur |
bool NexNumber::getValue | ( | uint32_t * | number | ) |
Get number attribute of component.
number | - buffer storing text returned. |
|
inherited |
Print current object'address, page id, component id and name.
bool NexNumber::Set_background_color_bco | ( | uint32_t | number | ) |
Set bco attribute of component
number | - To set up the data |
bool NexNumber::Set_background_crop_picc | ( | uint32_t | number | ) |
Set picc attribute of component
number | - To set up the data |
bool NexNumber::Set_background_image_pic | ( | uint32_t | number | ) |
Set pic attribute of component
number | - To set up the data |
bool NexNumber::Set_font_color_pco | ( | uint32_t | number | ) |
Set pco attribute of component
number | - To set up the data |
bool NexNumber::Set_number_lenth | ( | uint32_t | number | ) |
Set lenth attribute of component
number | - To set up the data |
bool NexNumber::Set_place_xcen | ( | uint32_t | number | ) |
Set xcen attribute of component
number | - To set up the data |
bool NexNumber::Set_place_ycen | ( | uint32_t | number | ) |
Set ycen attribute of component
number | - To set up the data |
bool NexNumber::setFont | ( | uint32_t | number | ) |
Set font attribute of component
number | - To set up the data |
bool NexNumber::setValue | ( | uint32_t | number | ) |
Set number attribute of component.
number | - number buffer. |