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

#include <WidgetContainer.h>

Inheritance diagram for OvUI::Internal::WidgetContainer:
OvUI::Widgets::Layout::Columns< 2 > OvUI::Widgets::Layout::Columns< 5 > OvUI::Panels::APanel OvUI::Plugins::ContextualMenu OvUI::Widgets::Layout::Columns< _Size > OvUI::Widgets::Layout::Group OvUI::Widgets::Layout::TreeNode OvUI::Panels::APanelTransformable OvUI::Panels::PanelMenuBar BrowserItemContextualMenu HierarchyActorContextualMenu OvUI::Widgets::Layout::GroupCollapsable OvUI::Widgets::Menu::MenuList OvUI::Panels::PanelUndecorated OvUI::Panels::PanelWindow OvEditor::Panels::MenuBar FileContextualMenu FolderContextualMenu 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 PreviewableContextualMenu< Resource, ResourceLoader > PreviewableContextualMenu< OvCore::Resources::Material, OvCore::ResourceManagement::MaterialManager > PreviewableContextualMenu< OvRendering::Resources::Model, OvCore::ResourceManagement::ModelManager > PreviewableContextualMenu< OvRendering::Resources::Texture, OvCore::ResourceManagement::TextureManager > SceneContextualMenu ShaderContextualMenu ScriptFolderContextualMenu

Public Member Functions

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

Protected Attributes

std::vector< std::pair< OvUI::Widgets::AWidget *, Internal::EMemoryMode > > m_widgets
 

Detailed Description

The base class for any widget container

Member Function Documentation

◆ CollectGarbages()

void OvUI::Internal::WidgetContainer::CollectGarbages ( )

Collect garbages by removing widgets marked as "Destroyed"

◆ ConsiderWidget()

void OvUI::Internal::WidgetContainer::ConsiderWidget ( Widgets::AWidget p_widget,
bool  p_manageMemory = true 
)

Consider a widget

Parameters
p_manageMemory

◆ CreateWidget()

template<typename T , typename ... Args>
T& OvUI::Internal::WidgetContainer::CreateWidget ( Args &&...  p_args)
inline

Create a widget

Parameters
p_args

◆ DrawWidgets()

void OvUI::Internal::WidgetContainer::DrawWidgets ( )

Draw every widgets

◆ GetWidgets()

std::vector< std::pair< OvUI::Widgets::AWidget *, OvUI::Internal::EMemoryMode > > & OvUI::Internal::WidgetContainer::GetWidgets ( )

Returns the widgets and their memory management mode

◆ RemoveAllWidgets()

void OvUI::Internal::WidgetContainer::RemoveAllWidgets ( )

Remove all widgets from the container

◆ RemoveWidget()

void OvUI::Internal::WidgetContainer::RemoveWidget ( Widgets::AWidget p_widget)

Remove a widget from the container

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

◆ UnconsiderWidget()

void OvUI::Internal::WidgetContainer::UnconsiderWidget ( Widgets::AWidget p_widget)

Unconsider a widget

Parameters
p_widget

Member Data Documentation

◆ m_widgets

std::vector<std::pair<OvUI::Widgets::AWidget*, Internal::EMemoryMode> > OvUI::Internal::WidgetContainer::m_widgets
protected

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