Overload  1.1
Game engine with editor
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
OvUI::Panels::APanelTransformable Class Referenceabstract

#include <APanelTransformable.h>

Inheritance diagram for OvUI::Panels::APanelTransformable:
OvUI::Panels::APanel OvUI::API::IDrawable OvUI::Internal::WidgetContainer OvUI::Panels::PanelUndecorated OvUI::Panels::PanelWindow OvGame::Utils::FPSCounter OvEditor::Panels::AssetBrowser OvEditor::Panels::AView OvEditor::Panels::Console OvEditor::Panels::HardwareInfo OvEditor::Panels::HelpWindow OvEditor::Panels::Hierarchy OvEditor::Panels::Inspector OvEditor::Panels::MaterialEditor OvEditor::Panels::Profiler OvEditor::Panels::ProjectSettings OvEditor::Panels::Toolbar ProjectHubPanel

Public Member Functions

 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

bool autoSize = true
 
- Public Attributes inherited from OvUI::Panels::APanel
bool enabled = true
 

Protected Member Functions

void Update ()
 
virtual void _Draw_Impl ()=0
 

Protected Attributes

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
 

Detailed Description

APanelTransformable is a panel that is localized in the canvas

Constructor & Destructor Documentation

◆ APanelTransformable()

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 
)

Create a APanelTransformable

Parameters
p_defaultPosition
p_defaultSize
p_defaultHorizontalAlignment
p_defaultVerticalAlignment
p_ignoreConfigFile@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()

virtual void OvUI::Panels::APanelTransformable::_Draw_Impl ( )
protectedpure virtual

◆ GetHorizontalAlignment()

OvUI::Settings::EHorizontalAlignment OvUI::Panels::APanelTransformable::GetHorizontalAlignment ( ) const

Returns the current horizontal alignment of the panel

◆ GetPosition()

const OvMaths::FVector2 & OvUI::Panels::APanelTransformable::GetPosition ( ) const

Returns the current position of the panel

◆ GetSize()

const OvMaths::FVector2 & OvUI::Panels::APanelTransformable::GetSize ( ) const

Returns the current size of the panel

◆ GetVerticalAlignment()

OvUI::Settings::EVerticalAlignment OvUI::Panels::APanelTransformable::GetVerticalAlignment ( ) const

Returns the current vertical alignment of the panel

◆ SetAlignment()

void OvUI::Panels::APanelTransformable::SetAlignment ( Settings::EHorizontalAlignment  p_horizontalAlignment,
Settings::EVerticalAlignment  p_verticalAligment 
)

Defines the alignment of the panel

Parameters
p_horizontalAlignment
p_verticalAligment

◆ SetPosition()

void OvUI::Panels::APanelTransformable::SetPosition ( const OvMaths::FVector2 p_position)

Defines the position of the panel

Parameters
p_position

◆ SetSize()

void OvUI::Panels::APanelTransformable::SetSize ( const OvMaths::FVector2 p_size)

Defines the size of the panel

Parameters
p_size

◆ Update()

void OvUI::Panels::APanelTransformable::Update ( )
protected

Member Data Documentation

◆ autoSize

bool OvUI::Panels::APanelTransformable::autoSize = true

◆ m_alignmentChanged

bool OvUI::Panels::APanelTransformable::m_alignmentChanged = false
protected

◆ m_defaultHorizontalAlignment

Settings::EHorizontalAlignment OvUI::Panels::APanelTransformable::m_defaultHorizontalAlignment
protected

◆ m_defaultPosition

OvMaths::FVector2 OvUI::Panels::APanelTransformable::m_defaultPosition
protected

◆ m_defaultSize

OvMaths::FVector2 OvUI::Panels::APanelTransformable::m_defaultSize
protected

◆ m_defaultVerticalAlignment

Settings::EVerticalAlignment OvUI::Panels::APanelTransformable::m_defaultVerticalAlignment
protected

◆ m_firstFrame

bool OvUI::Panels::APanelTransformable::m_firstFrame = true
protected

◆ m_horizontalAlignment

Settings::EHorizontalAlignment OvUI::Panels::APanelTransformable::m_horizontalAlignment = Settings::EHorizontalAlignment::LEFT
protected

◆ m_ignoreConfigFile

bool OvUI::Panels::APanelTransformable::m_ignoreConfigFile
protected

◆ m_position

OvMaths::FVector2 OvUI::Panels::APanelTransformable::m_position = OvMaths::FVector2(0.0f, 0.0f)
protected

◆ m_positionChanged

bool OvUI::Panels::APanelTransformable::m_positionChanged = false
protected

◆ m_size

OvMaths::FVector2 OvUI::Panels::APanelTransformable::m_size = OvMaths::FVector2(0.0f, 0.0f)
protected

◆ m_sizeChanged

bool OvUI::Panels::APanelTransformable::m_sizeChanged = false
protected

◆ m_verticalAlignment

Settings::EVerticalAlignment OvUI::Panels::APanelTransformable::m_verticalAlignment = Settings::EVerticalAlignment::TOP
protected

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