NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
NextionCrop.h
Go to the documentation of this file.
1 
3 #ifndef __NEONEXTION_NEXTIONCROP
4 #define __NEONEXTION_NEXTIONCROP
5 
6 #include "Nextion.h"
7 #include "INextionTouchable.h"
8 
14 {
15 public:
16  NextionCrop(Nextion &nex, uint8_t page, uint8_t component, const char *name);
17 
18  uint16_t getPictureID();
19  bool setPictureID(uint16_t id);
20 };
21 
22 #endif
NextionCrop(Nextion &nex, uint8_t page, uint8_t component, const char *name)
Create a new widget adapter.
Definition: NextionCrop.cpp:9
Interface for widgets that can be touched.
Definition: INextionTouchable.h:15
bool setPictureID(uint16_t id)
Sets the picture to be displayed.
Definition: NextionCrop.cpp:27
uint16_t getPictureID()
Gets the ID of the currently displayed picture.
Definition: NextionCrop.cpp:19
Represents a cropped picture widget.
Definition: NextionCrop.h:13
Driver for a physical Nextion device.
Definition: Nextion.h:31