Nextion User Manual
For Arduino developers
NexCrop Class Reference

NexCrop component. More...

#include <NexCrop.h>

Inheritance diagram for NexCrop:
Collaboration diagram for NexCrop:

Public Member Functions

 NexCrop (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
 
bool getPic (uint32_t *number)
 Get the number of picture. More...
 
bool setPic (uint32_t number)
 Set the number of picture. More...
 
- Public Member Functions inherited from NexTouch
 NexTouch (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
 
void attachPush (NexTouchEventCb push, void *ptr=NULL)
 Attach an callback function of push touch event. More...
 
void detachPush (void)
 Detach an callback function. More...
 
void attachPop (NexTouchEventCb pop, void *ptr=NULL)
 Attach an callback function of pop touch event. More...
 
void detachPop (void)
 Detach an callback function. More...
 
- Public Member Functions inherited from NexObject
 NexObject (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
 
void printObjInfo (void)
 Print current object'address, page id, component id and name. More...
 

Detailed Description

NexCrop component.

Examples:
CompCrop.ino.

Definition at line 30 of file NexCrop.h.

Constructor & Destructor Documentation

NexCrop::NexCrop ( 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.

Definition at line 18 of file NexCrop.cpp.

Member Function Documentation

bool NexCrop::getPic ( uint32_t *  number)

Get the number of picture.

Parameters
number- an output parameter to save the number of picture.
Return values
true- success.
false- failed.
Examples:
CompCrop.ino.

Definition at line 23 of file NexCrop.cpp.

bool NexCrop::setPic ( uint32_t  number)

Set the number of picture.

Parameters
number- the number of picture.
Return values
true- success.
false- failed.
Examples:
CompCrop.ino.

Definition at line 32 of file NexCrop.cpp.


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