NexButton.h
Go to the documentation of this file.
#ifndef __NEXBUTTON_H__
#define __NEXBUTTON_H__
#include "NexTouch.h"
#include "NexHardware.h"
class NexButton: public NexTouch
{
public: /* methods */
NexButton(uint8_t pid, uint8_t cid, const char *name);
uint16_t getText(char *buffer, uint16_t len);
bool setText(const char *buffer);
uint32_t Get_background_color_bco(uint32_t *number);
bool Set_background_color_bco(uint32_t number);
uint32_t Get_press_background_color_bco2(uint32_t *number);
bool Set_press_background_color_bco2(uint32_t number);
uint32_t Get_font_color_pco(uint32_t *number);
bool Set_font_color_pco(uint32_t number);
uint32_t Get_press_font_color_pco2(uint32_t *number);
bool Set_press_font_color_pco2(uint32_t number);
uint32_t Get_place_xcen(uint32_t *number);
bool Set_place_xcen(uint32_t number);
uint32_t Get_place_ycen(uint32_t *number);
bool Set_place_ycen(uint32_t number);
uint32_t getFont(uint32_t *number);
bool setFont(uint32_t number);
uint32_t Get_background_cropi_picc(uint32_t *number);
bool Set_background_crop_picc(uint32_t number);
uint32_t Get_press_background_crop_picc2(uint32_t *number);
bool Set_press_background_crop_picc2(uint32_t number);
uint32_t Get_background_image_pic(uint32_t *number);
bool Set_background_image_pic(uint32_t number);
uint32_t Get_press_background_image_pic2(uint32_t *number);
bool Set_press_background_image_pic2(uint32_t number);
};
#endif /* #ifndef __NEXBUTTON_H__ */
NexButton::Get_place_ycen
uint32_t Get_place_ycen(uint32_t *number)
Get ycen attribute of component.
Definition: NexButton.cpp:185
NexButton::Set_place_ycen
bool Set_place_ycen(uint32_t number)
Set ycen attribute of component.
Definition: NexButton.cpp:195
NexButton::Set_background_image_pic
bool Set_background_image_pic(uint32_t number)
Set pic attribute of component.
Definition: NexButton.cpp:307
NexButton::NexButton
NexButton(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexButton.cpp:18
NexButton::getText
uint16_t getText(char *buffer, uint16_t len)
Get text attribute of component.
Definition: NexButton.cpp:23
NexButton::Set_press_background_image_pic2
bool Set_press_background_image_pic2(uint32_t number)
Set pic2 attribute of component.
Definition: NexButton.cpp:335
NexButton::Get_background_cropi_picc
uint32_t Get_background_cropi_picc(uint32_t *number)
Get picc attribute of component.
Definition: NexButton.cpp:241
NexButton::Set_place_xcen
bool Set_place_xcen(uint32_t number)
Set xcen attribute of component.
Definition: NexButton.cpp:167
NexButton::Get_press_background_color_bco2
uint32_t Get_press_background_color_bco2(uint32_t *number)
Get bco2 attribute of component.
Definition: NexButton.cpp:73
NexButton::Get_background_image_pic
uint32_t Get_background_image_pic(uint32_t *number)
Get pic attribute of component.
Definition: NexButton.cpp:297
NexButton::Set_background_color_bco
bool Set_background_color_bco(uint32_t number)
Set bco attribute of component.
Definition: NexButton.cpp:55
NexButton::Set_press_background_crop_picc2
bool Set_press_background_crop_picc2(uint32_t number)
Set picc2 attribute of component.
Definition: NexButton.cpp:279
NexButton
NexButton component.
Definition: NexButton.h:35
NexButton::Set_background_crop_picc
bool Set_background_crop_picc(uint32_t number)
Set picc attribute of component.
Definition: NexButton.cpp:251
NexButton::setText
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexButton.cpp:33
NexButton::Get_press_background_image_pic2
uint32_t Get_press_background_image_pic2(uint32_t *number)
Get pic2 attribute of component.
Definition: NexButton.cpp:325
NexButton::Get_press_background_crop_picc2
uint32_t Get_press_background_crop_picc2(uint32_t *number)
Get picc2 attribute of component.
Definition: NexButton.cpp:269
NexTouch.h
The definition of class NexTouch.
NexButton::getFont
uint32_t getFont(uint32_t *number)
Get font attribute of component.
Definition: NexButton.cpp:213
NexHardware.h
The definition of base API for using Nextion.
NexButton::setFont
bool setFont(uint32_t number)
Set font attribute of component.
Definition: NexButton.cpp:223
NexButton::Set_font_color_pco
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
Definition: NexButton.cpp:111
NexButton::Set_press_background_color_bco2
bool Set_press_background_color_bco2(uint32_t number)
Set bco2 attribute of component.
Definition: NexButton.cpp:83
NexButton::Get_font_color_pco
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
Definition: NexButton.cpp:101
NexButton::Get_place_xcen
uint32_t Get_place_xcen(uint32_t *number)
Get xcen attribute of component.
Definition: NexButton.cpp:157
NexButton::Get_background_color_bco
uint32_t Get_background_color_bco(uint32_t *number)
Get bco attribute of component.
Definition: NexButton.cpp:45
NexButton::Get_press_font_color_pco2
uint32_t Get_press_font_color_pco2(uint32_t *number)
Get pco2 attribute of component.
Definition: NexButton.cpp:129
NexButton::Set_press_font_color_pco2
bool Set_press_font_color_pco2(uint32_t number)
Set pco2 attribute of component.
Definition: NexButton.cpp:139
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53