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

NexButton,subclass of NexTouch,provides simple methods to control button component. More...

#include <NexButton.h>

Inheritance diagram for NexButton:
NexTouch NexObject

Public Member Functions

 NexButton (NexPid pid, NexCid cid, const char *name)
 Constructor,inherited NexTouch's constructor function.
 
uint16_t getText (char *buffer, uint16_t len)
 Get text value from button component. More...
 
bool setText (const char *buffer)
 Set text value of button component. More...
 
- Public Member Functions inherited from NexTouch
 NexTouch (NexPid pid, NexCid cid, const char *name)
 Constructor of Nextouch. More...
 
- Public Member Functions inherited from NexObject
 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

NexButton,subclass of NexTouch,provides simple methods to control button component.

Examples:
CompButton.ino, CompGauge.ino, CompProgressBar.ino, and CompText.ino.

Definition at line 26 of file NexButton.h.

Member Function Documentation

uint16_t NexButton::getText ( char *  buffer,
uint16_t  len 
)

Get text value from button component.

Parameters
buffer- text buffer.
len- text buffer length.
Returns
the text buffer length
Examples:
CompButton.ino.

Definition at line 35 of file NexButton.cpp.

bool NexButton::setText ( const char *  buffer)

Set text value of button component.

Parameters
buffer- text buffer.
Return values
true- success.
false- failed.
Examples:
CompButton.ino.

Definition at line 53 of file NexButton.cpp.


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