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

Defines a widget instance in a panel layout. More...

#include <widget_definition.h>

Public Member Functions

void AddProperty (const std::string &name, WidgetProperty::Type type)
 
WidgetPropertyGetProperty (const std::string &name)
 
void AddChild (std::unique_ptr< WidgetDefinition > child)
 
bool IsContainer () const
 
bool CanHaveChildren () const
 
bool RequiresEnd () const
 

Public Attributes

std::string id
 
WidgetType type
 
std::string label
 
ImVec2 position = ImVec2(0, 0)
 
ImVec2 size = ImVec2(-1, 0)
 
std::vector< WidgetPropertyproperties
 
std::vector< std::unique_ptr< WidgetDefinition > > children
 
std::string callback_name
 
std::string tooltip
 
bool same_line = false
 
bool selected = false
 
ImVec4 border_color = ImVec4(0.5f, 0.5f, 0.5f, 1.0f)
 

Detailed Description

Defines a widget instance in a panel layout.

Definition at line 111 of file widget_definition.h.

Member Function Documentation

◆ AddProperty()

void yaze::editor::layout_designer::WidgetDefinition::AddProperty ( const std::string & name,
WidgetProperty::Type type )

◆ GetProperty()

WidgetProperty * yaze::editor::layout_designer::WidgetDefinition::GetProperty ( const std::string & name)

◆ AddChild()

void yaze::editor::layout_designer::WidgetDefinition::AddChild ( std::unique_ptr< WidgetDefinition > child)

Definition at line 32 of file widget_definition.cc.

References CanHaveChildren(), and children.

Here is the call graph for this function:

◆ IsContainer()

bool yaze::editor::layout_designer::WidgetDefinition::IsContainer ( ) const

Definition at line 38 of file widget_definition.cc.

References yaze::editor::layout_designer::IsContainerWidget(), and type.

Here is the call graph for this function:

◆ CanHaveChildren()

bool yaze::editor::layout_designer::WidgetDefinition::CanHaveChildren ( ) const

Definition at line 42 of file widget_definition.cc.

References yaze::editor::layout_designer::IsContainerWidget(), and type.

Referenced by AddChild().

Here is the call graph for this function:

◆ RequiresEnd()

bool yaze::editor::layout_designer::WidgetDefinition::RequiresEnd ( ) const

Definition at line 46 of file widget_definition.cc.

References yaze::editor::layout_designer::RequiresEndCall(), and type.

Here is the call graph for this function:

Member Data Documentation

◆ id

◆ type

◆ label

std::string yaze::editor::layout_designer::WidgetDefinition::label

Definition at line 114 of file widget_definition.h.

◆ position

ImVec2 yaze::editor::layout_designer::WidgetDefinition::position = ImVec2(0, 0)

Definition at line 115 of file widget_definition.h.

◆ size

ImVec2 yaze::editor::layout_designer::WidgetDefinition::size = ImVec2(-1, 0)

Definition at line 116 of file widget_definition.h.

◆ properties

std::vector<WidgetProperty> yaze::editor::layout_designer::WidgetDefinition::properties

Definition at line 119 of file widget_definition.h.

Referenced by AddProperty(), and GetProperty().

◆ children

std::vector<std::unique_ptr<WidgetDefinition> > yaze::editor::layout_designer::WidgetDefinition::children

◆ callback_name

std::string yaze::editor::layout_designer::WidgetDefinition::callback_name

◆ tooltip

std::string yaze::editor::layout_designer::WidgetDefinition::tooltip

◆ same_line

bool yaze::editor::layout_designer::WidgetDefinition::same_line = false

◆ selected

bool yaze::editor::layout_designer::WidgetDefinition::selected = false

Definition at line 130 of file widget_definition.h.

◆ border_color

ImVec4 yaze::editor::layout_designer::WidgetDefinition::border_color = ImVec4(0.5f, 0.5f, 0.5f, 1.0f)

Definition at line 131 of file widget_definition.h.


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