Player12
An open source football management simulator
Loading...
Searching...
No Matches
Button Struct Reference

Represents a single UI button. More...

#include <button_manager.h>

Public Attributes

SDL_FRect rect {}
 
SDL_Texture * textTexture = nullptr
 
SDL_FRect textRect {}
 
std::string label
 
std::function< void()> onClick
 
bool isHovered = false
 
bool isVisible = true
 
bool isSelected = false
 
ButtonStyle style
 
int id = -1
 

Detailed Description

Represents a single UI button.

Member Data Documentation

◆ id

int Button::id = -1

◆ isHovered

bool Button::isHovered = false

◆ isSelected

bool Button::isSelected = false

◆ isVisible

bool Button::isVisible = true

◆ label

std::string Button::label

◆ onClick

std::function<void()> Button::onClick

◆ rect

SDL_FRect Button::rect {}

◆ style

ButtonStyle Button::style

◆ textRect

SDL_FRect Button::textRect {}

◆ textTexture

SDL_Texture* Button::textTexture = nullptr

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