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

Root Class of Nextion Components. More...

#include <NexTouch.h>

Inheritance diagram for NexTouch:
NexButton NexCrop NexGauge NexHotspot NexPage NexPicture NexProgressBar NexSlider NexText NexWaveform

Public Member Functions

 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

Root Class of Nextion Components.

Examples:
CompButton.ino, CompCrop.ino, CompGauge.ino, CompHotspot.ino, CompPage.ino, CompPicture.ino, CompProgressBar.ino, CompSlider.ino, and CompText.ino.

Definition at line 37 of file NexTouch.h.

Constructor & Destructor Documentation

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.

Parameters
pid- page id.
cid- component id.
name- component name.
pop- pop event function pointer.
pop_ptr- the parameter was transmitted to pop event function pointer.
push- push event function pointer.
push_ptr- the parameter was transmitted to push event function pointer.

Definition at line 31 of file NexTouch.cpp.

Member Function Documentation

NexCid NexTouch::getCid ( void  )

Get component id.

Returns
the id of component.

Definition at line 59 of file NexTouch.cpp.

const char * NexTouch::getObjName ( void  )

Get component name.

Returns
the name of component.

Definition at line 69 of file NexTouch.cpp.

NexPid NexTouch::getPid ( void  )

Get page id.

Returns
the id of page.

Definition at line 49 of file NexTouch.cpp.


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