All Classes Files Functions Typedefs Groups Pages
NexCrop Class Reference
Nextion Component

`#include <NexCrop.h>`

Inheritance diagram for NexCrop:

## 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)
Public Member Functions inherited from NexTouch
| NexTouch (uint8_t pid, uint8_t cid, const char *name)
void | attachPush (NexTouchEventCb push, void *ptr=NULL)
void | detachPush (void)
void | attachPop (NexTouchEventCb pop, void *ptr=NULL)
void | detachPop (void)
Public Member Functions inherited from NexObject
| NexObject (uint8_t pid, uint8_t cid, const char *name)
void | printObjInfo (void)

## Additional Inherited Members

Static Public Member Functions inherited from NexTouch
static void | iterate (NexTouch **list, uint8_t pid, uint8_t cid, int32_t event)
Protected Member Functions inherited from NexObject
uint8_t | getObjPid (void)
uint8_t | getObjCid (void)
const char * | getObjName (void)

## Detailed Description

NexCrop component.

## 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.

## Member Function Documentation

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

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.

bool NexCrop::Set_background_crop_picc | ( | uint32_t | number | ) |

Set the number of picture.

Parameters

  number | - the number of picture.

Return values

  true | - success.
  false | - failed.

bool NexCrop::setPic | ( | uint32_t | number | ) |

Set the number of picture.

Parameters

  number | - the number of picture.

Return values

  true | - success.
  false | - failed.

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

- NexCrop.h
- NexCrop.cpp