discoverpixy
Data Fields
BUTTON_STRUCT Struct Reference

#include <button.h>

Collaboration diagram for BUTTON_STRUCT:
Collaboration graph
[legend]

Data Fields

TOUCH_AREA_STRUCT base
 Basic geometry of the button. You only need to set the x1, y1, x2, y2 members of this struct. More...
 
uint16_t bgcolor
 The 16-bit background color of the button. More...
 
BUTTON_CALLBACK callback
 Callback which is executed when the button is pressed. More...
 
uint16_t txtcolor
 The 16-bit text color. More...
 
uint8_t font
 The number of the font to use. More...
 
const char * text
 The label of the button. More...
 

Detailed Description

Structure to configure the Button

Definition at line 55 of file button.h.

Field Documentation

Basic geometry of the button. You only need to set the x1, y1, x2, y2 members of this struct.

Definition at line 56 of file button.h.

uint16_t bgcolor

The 16-bit background color of the button.

Definition at line 57 of file button.h.

BUTTON_CALLBACK callback

Callback which is executed when the button is pressed.

Definition at line 58 of file button.h.

uint8_t font

The number of the font to use.

Definition at line 60 of file button.h.

const char* text

The label of the button.

Definition at line 61 of file button.h.

uint16_t txtcolor

The 16-bit text color.

Definition at line 59 of file button.h.


The documentation for this struct was generated from the following file: