Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
NexPage Class Reference

#include <NexPage.h>

Inheritance diagram for NexPage:
NexTouch NexObject

Public Member Functions

 NexPage (uint8_t pid, uint8_t cid, const char *name)
 
bool show (void)
 
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)
 

Detailed Description

A special component , which can contain other components such as NexButton, NexText and NexWaveform, etc.

Constructor & Destructor Documentation

NexPage::NexPage ( uint8_t  pid,
uint8_t  cid,
const char *  name 
)

Constructor.

Parameters
pid- page id.
cid- component id.
name- pointer to an unique name in range of all components.

Member Function Documentation

void NexTouch::attachPop ( NexTouchEventCb  pop,
void *  ptr = NULL 
)
inherited

Attach an callback function of pop touch event.

Parameters
pop- callback called with ptr when a pop touch event occurs.
ptr- parameter passed into pop[default:NULL].
Returns
none.
Note
If calling this method multiply, the last call is valid.
void NexTouch::attachPush ( NexTouchEventCb  push,
void *  ptr = NULL 
)
inherited

Attach an callback function of push touch event.

Parameters
push- callback called with ptr when a push touch event occurs.
ptr- parameter passed into push[default:NULL].
Returns
none.
Note
If calling this method multiply, the last call is valid.
void NexTouch::detachPop ( void  )
inherited

Detach an callback function.

Returns
none.
void NexTouch::detachPush ( void  )
inherited

Detach an callback function.

Returns
none.
void NexObject::printObjInfo ( void  )
inherited

Print current object'address, page id, component id and name.

Warning
this method does nothing, unless debug message enabled.
bool NexPage::show ( void  )

Show itself.

Returns
true if success, false for faileure.