Overload  1.1
Game engine with editor
Public Member Functions | Public Attributes | List of all members
OvEditor::Panels::Hierarchy Class Reference

#include <Hierarchy.h>

Inheritance diagram for OvEditor::Panels::Hierarchy:
OvUI::Panels::PanelWindow OvUI::Panels::APanelTransformable OvUI::Panels::APanel OvUI::API::IDrawable OvUI::Internal::WidgetContainer

Public Member Functions

 Hierarchy (const std::string &p_title, bool p_opened, const OvUI::Settings::PanelWindowSettings &p_windowSettings)
 
void Clear ()
 
void UnselectActorsWidgets ()
 
void SelectActorByInstance (OvCore::ECS::Actor &p_actor)
 
void SelectActorByWidget (OvUI::Widgets::Layout::TreeNode &p_widget)
 
void AttachActorToParent (OvCore::ECS::Actor &p_actor)
 
void DetachFromParent (OvCore::ECS::Actor &p_actor)
 
void DeleteActorByInstance (OvCore::ECS::Actor &p_actor)
 
void AddActorByInstance (OvCore::ECS::Actor &p_actor)
 
- Public Member Functions inherited from OvUI::Panels::PanelWindow
 PanelWindow (const std::string &p_name="", bool p_opened=true, const Settings::PanelWindowSettings &p_panelSettings=Settings::PanelWindowSettings{})
 
void Open ()
 
void Close ()
 
void Focus ()
 
void SetOpened (bool p_value)
 
bool IsOpened () const
 
bool IsHovered () const
 
bool IsFocused () const
 
bool IsAppearing () const
 
- Public Member Functions inherited from OvUI::Panels::APanelTransformable
 APanelTransformable (const OvMaths::FVector2 &p_defaultPosition=OvMaths::FVector2(-1.f, -1.f), const OvMaths::FVector2 &p_defaultSize=OvMaths::FVector2(-1.f, -1.f), Settings::EHorizontalAlignment p_defaultHorizontalAlignment=Settings::EHorizontalAlignment::LEFT, Settings::EVerticalAlignment p_defaultVerticalAlignment=Settings::EVerticalAlignment::TOP, bool p_ignoreConfigFile=false)
 
void SetPosition (const OvMaths::FVector2 &p_position)
 
void SetSize (const OvMaths::FVector2 &p_size)
 
void SetAlignment (Settings::EHorizontalAlignment p_horizontalAlignment, Settings::EVerticalAlignment p_verticalAligment)
 
const OvMaths::FVector2GetPosition () const
 
const OvMaths::FVector2GetSize () const
 
Settings::EHorizontalAlignment GetHorizontalAlignment () const
 
Settings::EVerticalAlignment GetVerticalAlignment () const
 
- Public Member Functions inherited from OvUI::Panels::APanel
 APanel ()
 
void Draw () override
 
const std::string & GetPanelID () const
 
- 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

OvTools::Eventing::Event< OvCore::ECS::Actor & > ActorSelectedEvent
 
OvTools::Eventing::Event< OvCore::ECS::Actor & > ActorUnselectedEvent
 
- Public Attributes inherited from OvUI::Panels::PanelWindow
std::string name
 
OvMaths::FVector2 minSize = { 0.f, 0.f }
 
OvMaths::FVector2 maxSize = { 0.f, 0.f }
 
bool resizable = true
 
bool closable = false
 
bool movable = true
 
bool dockable = false
 
bool hideBackground = false
 
bool forceHorizontalScrollbar = false
 
bool forceVerticalScrollbar = false
 
bool allowHorizontalScrollbar = false
 
bool bringToFrontOnFocus = true
 
bool collapsable = false
 
bool allowInputs = true
 
OvTools::Eventing::Event OpenEvent
 
OvTools::Eventing::Event CloseEvent
 
- Public Attributes inherited from OvUI::Panels::APanelTransformable
bool autoSize = true
 
- Public Attributes inherited from OvUI::Panels::APanel
bool enabled = true
 

Additional Inherited Members

- Protected Member Functions inherited from OvUI::Panels::PanelWindow
void _Draw_Impl () override
 
- Protected Member Functions inherited from OvUI::Panels::APanelTransformable
void Update ()
 
- Protected Attributes inherited from OvUI::Panels::APanelTransformable
OvMaths::FVector2 m_defaultPosition
 
OvMaths::FVector2 m_defaultSize
 
Settings::EHorizontalAlignment m_defaultHorizontalAlignment
 
Settings::EVerticalAlignment m_defaultVerticalAlignment
 
bool m_ignoreConfigFile
 
OvMaths::FVector2 m_position = OvMaths::FVector2(0.0f, 0.0f)
 
OvMaths::FVector2 m_size = OvMaths::FVector2(0.0f, 0.0f)
 
bool m_positionChanged = false
 
bool m_sizeChanged = false
 
Settings::EHorizontalAlignment m_horizontalAlignment = Settings::EHorizontalAlignment::LEFT
 
Settings::EVerticalAlignment m_verticalAlignment = Settings::EVerticalAlignment::TOP
 
bool m_alignmentChanged = false
 
bool m_firstFrame = true
 
- Protected Attributes inherited from OvUI::Panels::APanel
std::string m_panelID
 
- Protected Attributes inherited from OvUI::Internal::WidgetContainer
std::vector< std::pair< OvUI::Widgets::AWidget *, Internal::EMemoryMode > > m_widgets
 

Constructor & Destructor Documentation

◆ Hierarchy()

OvEditor::Panels::Hierarchy::Hierarchy ( const std::string &  p_title,
bool  p_opened,
const OvUI::Settings::PanelWindowSettings p_windowSettings 
)

Constructor

Parameters
p_title
p_opened
p_windowSettings

Member Function Documentation

◆ AddActorByInstance()

void OvEditor::Panels::Hierarchy::AddActorByInstance ( OvCore::ECS::Actor p_actor)

Add a widget referencing the given actor

Parameters
p_actor

◆ AttachActorToParent()

void OvEditor::Panels::Hierarchy::AttachActorToParent ( OvCore::ECS::Actor p_actor)

Attach the given actor linked widget to its parent widget

Parameters
p_actor

◆ Clear()

void OvEditor::Panels::Hierarchy::Clear ( )

Clear hierarchy nodes

◆ DeleteActorByInstance()

void OvEditor::Panels::Hierarchy::DeleteActorByInstance ( OvCore::ECS::Actor p_actor)

Delete the widget referencing the given actor

Parameters
p_actor

◆ DetachFromParent()

void OvEditor::Panels::Hierarchy::DetachFromParent ( OvCore::ECS::Actor p_actor)

Detach the given actor linked widget from its parent widget

Parameters
p_actor

◆ SelectActorByInstance()

void OvEditor::Panels::Hierarchy::SelectActorByInstance ( OvCore::ECS::Actor p_actor)

Select the widget corresponding to the given actor

Parameters
p_actor

◆ SelectActorByWidget()

void OvEditor::Panels::Hierarchy::SelectActorByWidget ( OvUI::Widgets::Layout::TreeNode p_widget)

Select the widget

Parameters
p_actor

◆ UnselectActorsWidgets()

void OvEditor::Panels::Hierarchy::UnselectActorsWidgets ( )

Unselect every widgets

Member Data Documentation

◆ ActorSelectedEvent

OvTools::Eventing::Event<OvCore::ECS::Actor&> OvEditor::Panels::Hierarchy::ActorSelectedEvent

◆ ActorUnselectedEvent

OvTools::Eventing::Event<OvCore::ECS::Actor&> OvEditor::Panels::Hierarchy::ActorUnselectedEvent

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