Data Fields
Graphics_Button Struct Reference

This structure defines the characteristics of a Button. More...

#include <button.h>

Data Fields

uint16_t xMin
 
uint16_t xMax
 
uint16_t yMin
 
uint16_t yMax
 
uint8_t borderWidth
 
bool selected
 
uint32_t fillColor
 
uint32_t borderColor
 
uint32_t selectedColor
 
uint32_t textColor
 
uint32_t selectedTextColor
 
uint16_t textXPos
 
uint16_t textYPos
 
int8_t * text
 
const Graphics_Fontfont
 

Detailed Description

This structure defines the characteristics of a Button.

Field Documentation

uint16_t Graphics_Button::xMin

x coordinate for upper left corner of button

Referenced by Graphics_drawButton(), Graphics_drawReleasedButton(), Graphics_drawSelectedButton(), and Graphics_isButtonSelected().

uint16_t Graphics_Button::xMax

x coordinate for lower right corner of button

Referenced by Graphics_drawButton(), Graphics_drawReleasedButton(), Graphics_drawSelectedButton(), and Graphics_isButtonSelected().

uint16_t Graphics_Button::yMin

y coordinate for upper left corner of button

Referenced by Graphics_drawButton(), Graphics_drawReleasedButton(), Graphics_drawSelectedButton(), and Graphics_isButtonSelected().

uint16_t Graphics_Button::yMax

y coordinate for lower right corner of button

Referenced by Graphics_drawButton(), Graphics_drawReleasedButton(), Graphics_drawSelectedButton(), and Graphics_isButtonSelected().

uint8_t Graphics_Button::borderWidth
bool Graphics_Button::selected

draws button with selected colors enabled

uint32_t Graphics_Button::fillColor

Background button color when not selected

uint32_t Graphics_Button::borderColor

Border color, border is drawn if borderWidth >0

uint32_t Graphics_Button::selectedColor

Background button color when selected

uint32_t Graphics_Button::textColor

Text color

uint32_t Graphics_Button::selectedTextColor

Selected text color

uint16_t Graphics_Button::textXPos

x coordinate for text upper left corner

uint16_t Graphics_Button::textYPos

y coordinate for text upper left corner

int8_t* Graphics_Button::text

Text to be displayed in button

const Graphics_Font* Graphics_Button::font

Font for text to be displayed in button


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

Copyright 2016, Texas Instruments Incorporated