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

Root Class of Nextion Components. More...

#include <NexObject.h>

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

Public Member Functions

 NexObject (NexPid pid, NexCid cid, const char *name)
 Constructor. More...
 
NexPid getObjPid (void)
 Get page id. More...
 
NexCid getObjCid (void)
 Get component id. More...
 
const char * getObjName (void)
 Get component name. More...
 
void printObjInfo (void)
 Print current object address,page id,component id, component name,pop event function address,push event function address.
 

Detailed Description

Root Class of Nextion Components.

Definition at line 28 of file NexObject.h.

Constructor & Destructor Documentation

NexObject::NexObject ( NexPid  pid,
NexCid  cid,
const char *  name 
)

Constructor.

Parameters
pid- page id.
cid- component id.
name- component name.

Definition at line 25 of file NexObject.cpp.

Member Function Documentation

NexCid NexObject::getObjCid ( void  )

Get component id.

Returns
the id of component.

Definition at line 48 of file NexObject.cpp.

const char * NexObject::getObjName ( void  )

Get component name.

Returns
the name of component.

Definition at line 58 of file NexObject.cpp.

NexPid NexObject::getObjPid ( void  )

Get page id.

Returns
the id of page.

Definition at line 38 of file NexObject.cpp.


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