FabGL
ESP32 VGA Controller and Graphics Library
fabgl::uiButtonStyle Struct Reference

Contains the button style. More...

#include <fabui.h>

Collaboration diagram for fabgl::uiButtonStyle:

Public Attributes

RGB backgroundColor = RGB(2, 2, 2)
 
Bitmap const * bitmap = nullptr
 
uint8_t bitmapTextSpace = 4
 
RGB downBackgroundColor = RGB(2, 2, 3)
 
Bitmap const * downBitmap = nullptr
 
RGB mouseDownBackgroundColor = RGB(3, 3, 3)
 
RGB mouseOverBackgroundColor = RGB(2, 2, 3)
 
RGB textColor = RGB(0, 0, 0)
 
FontInfo const * textFont = Canvas.getPresetFontInfoFromHeight(14, false)
 

Detailed Description

Contains the button style.

Member Data Documentation

◆ backgroundColor

RGB fabgl::uiButtonStyle::backgroundColor = RGB(2, 2, 2)

Background color

◆ bitmap

Bitmap const* fabgl::uiButtonStyle::bitmap = nullptr

Bitmap to display

◆ bitmapTextSpace

uint8_t fabgl::uiButtonStyle::bitmapTextSpace = 4

Spaces between image and text

◆ downBackgroundColor

RGB fabgl::uiButtonStyle::downBackgroundColor = RGB(2, 2, 3)

Background color when button is down

◆ downBitmap

Bitmap const* fabgl::uiButtonStyle::downBitmap = nullptr

Bitmap to display when button is down

◆ mouseDownBackgroundColor

RGB fabgl::uiButtonStyle::mouseDownBackgroundColor = RGB(3, 3, 3)

Background color when mouse is down

◆ mouseOverBackgroundColor

RGB fabgl::uiButtonStyle::mouseOverBackgroundColor = RGB(2, 2, 3)

Background color when mouse is over

◆ textColor

RGB fabgl::uiButtonStyle::textColor = RGB(0, 0, 0)

Text color

◆ textFont

FontInfo const* fabgl::uiButtonStyle::textFont = Canvas.getPresetFontInfoFromHeight(14, false)

Text font


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