API
For Arduino developers
Public Member Functions | List of all members
NexPage Class Reference

NexPage,subclass of NexTouch,provides simple methods to control page component. More...

#include <NexPage.h>

Inheritance diagram for NexPage:
NexTouch

Public Member Functions

 NexPage (NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL)
 Constructor,inherited NexTouch's constructor function.
 
bool show (void)
 Change page. More...
 
void attachPop (NexTouchEventCb pop, void *ptr=NULL)
 Register page pop callback function. More...
 
void detachPop (void)
 Unload page pop callback function.
 
- Public Member Functions inherited from NexTouch
 NexTouch (NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL)
 Constructor of Nextouch. More...
 
NexPid getPid (void)
 Get page id. More...
 
NexCid getCid (void)
 Get component id. More...
 
const char * getObjName (void)
 Get component name. More...
 

Detailed Description

NexPage,subclass of NexTouch,provides simple methods to control page component.

Examples:
CompPage.ino.

Definition at line 26 of file NexPage.h.

Member Function Documentation

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

Register page pop callback function.

Parameters
pop- the pointer to page pop callback function.
ptr- the parameter to be transmitted to page pop callback function.
Examples:
CompPage.ino.

Definition at line 55 of file NexPage.cpp.

bool NexPage::show ( void  )

Change page.

Return values
true- success.
false- failed.
Examples:
CompPage.ino.

Definition at line 33 of file NexPage.cpp.


The documentation for this class was generated from the following files: