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

#include <ui.hpp>

Public Member Functions

 UIInputBox (std::function< void(std::string)> on_confirm, draw_info::IVPColor background_ivpsc, draw_info::IVPColor text_drawing_data, std::string placeholder_text, std::string contents, glm::vec3 regular_color, glm::vec3 focused_color, vertex_geometry::Rectangle rect, int id=GlobalUIDGenerator::get_id())
 

Public Attributes

int id
 
std::function< void(std::string)> on_confirm
 
draw_info::IVPColor background_ivpsc
 
draw_info::IVPColor text_drawing_ivpsc
 
std::string placeholder_text
 
std::string contents
 
glm::vec3 regular_color
 
glm::vec3 focused_color
 
vertex_geometry::Rectangle rect
 
bool focused = false
 
TemporalBinarySignal modified_signal
 

Constructor & Destructor Documentation

◆ UIInputBox()

UIInputBox::UIInputBox ( std::function< void(std::string)> on_confirm,
draw_info::IVPColor background_ivpsc,
draw_info::IVPColor text_drawing_data,
std::string placeholder_text,
std::string contents,
glm::vec3 regular_color,
glm::vec3 focused_color,
vertex_geometry::Rectangle rect,
int id = GlobalUIDGenerator::get_id() )
inline

Member Data Documentation

◆ background_ivpsc

draw_info::IVPColor UIInputBox::background_ivpsc

◆ contents

std::string UIInputBox::contents

◆ focused

bool UIInputBox::focused = false

◆ focused_color

glm::vec3 UIInputBox::focused_color

◆ id

int UIInputBox::id

◆ modified_signal

TemporalBinarySignal UIInputBox::modified_signal

◆ on_confirm

std::function<void(std::string)> UIInputBox::on_confirm

◆ placeholder_text

std::string UIInputBox::placeholder_text

◆ rect

vertex_geometry::Rectangle UIInputBox::rect

◆ regular_color

glm::vec3 UIInputBox::regular_color

◆ text_drawing_ivpsc

draw_info::IVPColor UIInputBox::text_drawing_ivpsc

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