CPP-TOOLBOX
Loading...
Searching...
No Matches
UIDropdown Struct Reference

#include <ui.hpp>

Public Member Functions

 UIDropdown (std::function< void()> on_click, std::function< void()> on_hover, draw_info::IVPColor dropdown_background, draw_info::IVPColor dropdown_text_data, glm::vec3 regular_color, glm::vec3 hover_color, vertex_geometry::Rectangle dropdown_rect, std::vector< UIDropdownOption > ui_dropdown_options, int id=GlobalUIDGenerator::get_id())
 

Public Attributes

int id
 
std::string selected_option
 
glm::vec3 regular_color
 
glm::vec3 hover_color
 
std::function< void()> on_click
 
std::function< void()> on_hover
 
draw_info::IVPColor dropdown_background
 
draw_info::IVPColor dropdown_text_ivpsc
 
vertex_geometry::Rectangle dropdown_rect
 
std::vector< UIDropdownOptionui_dropdown_options
 
bool mouse_inside = false
 
bool dropdown_open = false
 
TemporalBinarySignal modified_signal
 

Constructor & Destructor Documentation

◆ UIDropdown()

UIDropdown::UIDropdown ( std::function< void()> on_click,
std::function< void()> on_hover,
draw_info::IVPColor dropdown_background,
draw_info::IVPColor dropdown_text_data,
glm::vec3 regular_color,
glm::vec3 hover_color,
vertex_geometry::Rectangle dropdown_rect,
std::vector< UIDropdownOption > ui_dropdown_options,
int id = GlobalUIDGenerator::get_id() )
inline

Member Data Documentation

◆ dropdown_background

draw_info::IVPColor UIDropdown::dropdown_background

◆ dropdown_open

bool UIDropdown::dropdown_open = false

◆ dropdown_rect

vertex_geometry::Rectangle UIDropdown::dropdown_rect

◆ dropdown_text_ivpsc

draw_info::IVPColor UIDropdown::dropdown_text_ivpsc

◆ hover_color

glm::vec3 UIDropdown::hover_color

◆ id

int UIDropdown::id

◆ modified_signal

TemporalBinarySignal UIDropdown::modified_signal

◆ mouse_inside

bool UIDropdown::mouse_inside = false

◆ on_click

std::function<void()> UIDropdown::on_click

◆ on_hover

std::function<void()> UIDropdown::on_hover

◆ regular_color

glm::vec3 UIDropdown::regular_color

◆ selected_option

std::string UIDropdown::selected_option

◆ ui_dropdown_options

std::vector<UIDropdownOption> UIDropdown::ui_dropdown_options

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