Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
#include <NexCrop.h>
Public Member Functions | |
NexCrop (uint8_t pid, uint8_t cid, const char *name) | |
bool | Get_background_crop_picc (uint32_t *number) |
bool | Set_background_crop_picc (uint32_t number) |
bool | getPic (uint32_t *number) |
bool | setPic (uint32_t number) |
void | attachPush (NexTouchEventCb push, void *ptr=NULL) |
void | detachPush (void) |
void | attachPop (NexTouchEventCb pop, void *ptr=NULL) |
void | detachPop (void) |
void | printObjInfo (void) |
Static Public Member Functions | |
static void | iterate (NexTouch **list, uint8_t pid, uint8_t cid, int32_t event) |
Protected Member Functions | |
uint8_t | getObjPid (void) |
uint8_t | getObjCid (void) |
const char * | getObjName (void) |
NexCrop component.
NexCrop::NexCrop | ( | uint8_t | pid, |
uint8_t | cid, | ||
const char * | name | ||
) |
Constructor.
pid | - page id. |
cid | - component id. |
name | - pointer to an unique name in range of all components. |
|
inherited |
Attach an callback function of pop touch event.
pop | - callback called with ptr when a pop touch event occurs. |
ptr | - parameter passed into pop[default:NULL]. |
|
inherited |
Attach an callback function of push touch event.
push | - callback called with ptr when a push touch event occurs. |
ptr | - parameter passed into push[default:NULL]. |
|
inherited |
Detach an callback function.
|
inherited |
Detach an callback function.
bool NexCrop::Get_background_crop_picc | ( | uint32_t * | number | ) |
Get the number of picture.
number | - an output parameter to save the number of picture. |
true | - success. |
false | - failed. |
bool NexCrop::getPic | ( | uint32_t * | number | ) |
Get the number of picture.
number | - an output parameter to save the number of picture. |
true | - success. |
false | - failed. |
|
inherited |
Print current object'address, page id, component id and name.
bool NexCrop::Set_background_crop_picc | ( | uint32_t | number | ) |
Set the number of picture.
number | - the number of picture. |
true | - success. |
false | - failed. |
bool NexCrop::setPic | ( | uint32_t | number | ) |
Set the number of picture.
number | - the number of picture. |
true | - success. |
false | - failed. |