yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::layout_designer::WidgetProperty Struct Reference

Represents a configurable property of a widget. More...

#include <widget_definition.h>

Public Types

enum class  Type {
  String , Int , Float , Bool ,
  Color , Vec2 , Flags
}
 

Public Attributes

std::string name
 
enum yaze::editor::layout_designer::WidgetProperty::Type type
 
std::string string_value
 
int int_value = 0
 
float float_value = 0.0f
 
bool bool_value = false
 
ImVec4 color_value = ImVec4(1, 1, 1, 1)
 
ImVec2 vec2_value = ImVec2(0, 0)
 
int flags_value = 0
 

Detailed Description

Represents a configurable property of a widget.

Definition at line 85 of file widget_definition.h.

Member Enumeration Documentation

◆ Type

Enumerator
String 
Int 
Float 
Bool 
Color 
Vec2 
Flags 

Definition at line 87 of file widget_definition.h.

Member Data Documentation

◆ name

◆ type

◆ string_value

std::string yaze::editor::layout_designer::WidgetProperty::string_value

◆ int_value

◆ float_value

float yaze::editor::layout_designer::WidgetProperty::float_value = 0.0f

Definition at line 100 of file widget_definition.h.

◆ bool_value

bool yaze::editor::layout_designer::WidgetProperty::bool_value = false

◆ color_value

ImVec4 yaze::editor::layout_designer::WidgetProperty::color_value = ImVec4(1, 1, 1, 1)

◆ vec2_value

ImVec2 yaze::editor::layout_designer::WidgetProperty::vec2_value = ImVec2(0, 0)

◆ flags_value

int yaze::editor::layout_designer::WidgetProperty::flags_value = 0

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