Overload  1.1
Game engine with editor
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OvUI::Widgets::Layout::TreeNode Class Reference

#include <TreeNode.h>

Inheritance diagram for OvUI::Widgets::Layout::TreeNode:
OvUI::Widgets::DataWidget< std::string > OvUI::Internal::WidgetContainer OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 TreeNode (const std::string &p_name="", bool p_arrowClickToOpen=false)
 
void Open ()
 
void Close ()
 
- Public Member Functions inherited from OvUI::Widgets::DataWidget< std::string >
 DataWidget (std::string &p_dataHolder)
 
virtual void Draw () override
 
void NotifyChange ()
 
- Public Member Functions inherited from OvUI::Widgets::AWidget
 AWidget ()
 
void LinkTo (const AWidget &p_widget)
 
void Destroy ()
 
bool IsDestroyed () const
 
void SetParent (Internal::WidgetContainer *p_parent)
 
bool HasParent () const
 
Internal::WidgetContainerGetParent ()
 
- Public Member Functions inherited from OvUI::Plugins::Pluginable
 ~Pluginable ()
 
template<typename T , typename... Args>
T & AddPlugin (Args &&... p_args)
 
template<typename T >
T * GetPlugin ()
 
void ExecutePlugins ()
 
void RemoveAllPlugins ()
 
- Public Member Functions inherited from OvUI::Internal::WidgetContainer
void RemoveWidget (Widgets::AWidget &p_widget)
 
void RemoveAllWidgets ()
 
void ConsiderWidget (Widgets::AWidget &p_widget, bool p_manageMemory=true)
 
void UnconsiderWidget (Widgets::AWidget &p_widget)
 
void CollectGarbages ()
 
void DrawWidgets ()
 
template<typename T , typename ... Args>
T & CreateWidget (Args &&... p_args)
 
std::vector< std::pair< OvUI::Widgets::AWidget *, Internal::EMemoryMode > > & GetWidgets ()
 

Public Attributes

std::string name
 
bool selected = false
 
bool leaf = false
 
OvTools::Eventing::Event ClickedEvent
 
OvTools::Eventing::Event OpenedEvent
 
OvTools::Eventing::Event ClosedEvent
 
- Public Attributes inherited from OvUI::Widgets::AWidget
bool enabled = true
 
bool lineBreak = true
 

Protected Member Functions

virtual void _Draw_Impl () override
 

Additional Inherited Members

- Protected Attributes inherited from OvUI::Widgets::AWidget
Internal::WidgetContainerm_parent
 
std::string m_widgetID = "?"
 
bool m_autoExecutePlugins = true
 
- Protected Attributes inherited from OvUI::Internal::WidgetContainer
std::vector< std::pair< OvUI::Widgets::AWidget *, Internal::EMemoryMode > > m_widgets
 

Detailed Description

Widget that allow columnification

Constructor & Destructor Documentation

◆ TreeNode()

OvUI::Widgets::Layout::TreeNode::TreeNode ( const std::string &  p_name = "",
bool  p_arrowClickToOpen = false 
)

Constructor

Parameters
p_name
p_arrowClickToOpen@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ _Draw_Impl()

void OvUI::Widgets::Layout::TreeNode::_Draw_Impl ( )
overrideprotectedvirtual

◆ Close()

void OvUI::Widgets::Layout::TreeNode::Close ( )

Close the tree node

◆ Open()

void OvUI::Widgets::Layout::TreeNode::Open ( )

Open the tree node

Member Data Documentation

◆ ClickedEvent

OvTools::Eventing::Event OvUI::Widgets::Layout::TreeNode::ClickedEvent

◆ ClosedEvent

OvTools::Eventing::Event OvUI::Widgets::Layout::TreeNode::ClosedEvent

◆ leaf

bool OvUI::Widgets::Layout::TreeNode::leaf = false

◆ name

std::string OvUI::Widgets::Layout::TreeNode::name

◆ OpenedEvent

OvTools::Eventing::Event OvUI::Widgets::Layout::TreeNode::OpenedEvent

◆ selected

bool OvUI::Widgets::Layout::TreeNode::selected = false

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