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

#include <Toolbar.h>

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

Public Member Functions

 Toolbar (const std::string &p_title, bool p_opened, const OvUI::Settings::PanelWindowSettings &p_windowSettings)
 
void _Draw_Impl () override
 
- 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 ()
 

Additional Inherited Members

- 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
 
- 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

◆ Toolbar()

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

Constructor

Parameters
p_title
p_opened
p_windowSettings@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 OvEditor::Panels::Toolbar::_Draw_Impl ( )
overridevirtual

Custom implementation of the draw method

Implements OvUI::Panels::APanelTransformable.


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