Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvUI::Widgets::DataWidget< T > Class Template Reference

#include <DataWidget.h>

Inheritance diagram for OvUI::Widgets::DataWidget< T >:
OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable OvUI::Widgets::Drags::DragSingleScalar< T > OvUI::Widgets::InputFields::InputSingleScalar< T > OvUI::Widgets::Sliders::SliderSingleScalar< T >

Public Member Functions

 DataWidget (T &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 ()
 

Additional Inherited Members

- Public Attributes inherited from OvUI::Widgets::AWidget
bool enabled = true
 
bool lineBreak = true
 
- Protected Member Functions inherited from OvUI::Widgets::AWidget
virtual void _Draw_Impl ()=0
 
- Protected Attributes inherited from OvUI::Widgets::AWidget
Internal::WidgetContainerm_parent
 
std::string m_widgetID = "?"
 
bool m_autoExecutePlugins = true
 

Detailed Description

template<typename T>
class OvUI::Widgets::DataWidget< T >

DataWidget are widgets that contains a value. It is very usefull in combination with DataDispatcher plugin

Constructor & Destructor Documentation

◆ DataWidget()

template<typename T>
OvUI::Widgets::DataWidget< T >::DataWidget ( T &  p_dataHolder)
inline

Create a DataWidget with the data specification

Parameters
p_dataHolder

Member Function Documentation

◆ Draw()

template<typename T >
void OvUI::Widgets::DataWidget< T >::Draw ( )
inlineoverridevirtual

Draw the widget

Reimplemented from OvUI::Widgets::AWidget.

◆ NotifyChange()

template<typename T >
void OvUI::Widgets::DataWidget< T >::NotifyChange ( )
inline

Notify that the widget data has changed to allow the data dispatcher to execute its behaviour


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