3 #ifndef __NEONEXTION_INEXTIONCOLOURABLE
4 #define __NEONEXTION_INEXTIONCOLOURABLE
32 bool setColour(
char *type, uint32_t colour,
bool refresh);
35 bool afterSet(
bool result,
bool refresh);
uint32_t getForegroundColour()
Gets the normal foreground colour.
Definition: INextionColourable.cpp:31
bool afterSet(bool result, bool refresh)
Handles refreshing the page after a colour has been changed.
Definition: INextionColourable.cpp:132
uint32_t getEventForegroundColour()
Gets the foreground colour when a touch event is active.
Definition: INextionColourable.cpp:53
bool setForegroundColour(uint32_t colour, bool refresh=true)
Sets the normal foreground colour.
Definition: INextionColourable.cpp:21
INextionColourable(Nextion &nex, uint8_t page, uint8_t component, const char *name)
Create a new widget adapter.
Definition: INextionColourable.cpp:8
bool setEventForegroundColour(uint32_t colour, bool refresh=true)
Sets the foreground colour when a touch event is active.
Definition: INextionColourable.cpp:43
uint32_t getEventBackgroundColour()
Sets the background colour when a touch event is active.
Definition: INextionColourable.cpp:97
uint32_t getBackgroundColour()
Gets the normal background colour.
Definition: INextionColourable.cpp:75
bool setEventBackgroundColour(uint32_t colour, bool refresh=true)
Sets the background colour when a touch event is active.
Definition: INextionColourable.cpp:87
Interface for widgets that can be coloured.
Definition: INextionColourable.h:14
bool setColour(char *type, uint32_t colour, bool refresh)
Sets a colour by its property name.
Definition: INextionColourable.cpp:109
bool setBackgroundColour(uint32_t colour, bool refresh=true)
Sets the normal background colour.
Definition: INextionColourable.cpp:65
uint32_t getColour(char *type)
Gets a colour by its property name.
Definition: INextionColourable.cpp:120
Driver for a physical Nextion device.
Definition: Nextion.h:31