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

#include <RadioButtonLinker.h>

Inheritance diagram for OvUI::Widgets::Selection::RadioButtonLinker:
OvUI::Widgets::DataWidget< int > OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 RadioButtonLinker ()
void Link (RadioButton &p_radioButton)
void Unlink (RadioButton &p_radioButton)
int GetSelected () const
- Public Member Functions inherited from OvUI::Widgets::DataWidget< int >
 DataWidget (int &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 ()

Public Attributes

OvTools::Eventing::Event< int > ValueChangedEvent
- Public Attributes inherited from OvUI::Widgets::AWidget
bool enabled = true
bool lineBreak = true

Protected Member Functions

void _Draw_Impl () override

Additional Inherited Members

- Protected Attributes inherited from OvUI::Widgets::AWidget
std::string m_widgetID = "?"
bool m_autoExecutePlugins = true

Detailed Description

Handle the link of radio buttons. Necessary to enable the correct behaviour of radio buttons

Constructor & Destructor Documentation

◆ RadioButtonLinker()

OvUI::Widgets::Selection::RadioButtonLinker::RadioButtonLinker ( )


@project: Overload

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

Member Function Documentation

◆ _Draw_Impl()

void OvUI::Widgets::Selection::RadioButtonLinker::_Draw_Impl ( )

◆ GetSelected()

int OvUI::Widgets::Selection::RadioButtonLinker::GetSelected ( ) const

Returns the id of the selected radio button

◆ Link()

void OvUI::Widgets::Selection::RadioButtonLinker::Link ( RadioButton p_radioButton)

Link the given radio button

◆ Unlink()

void OvUI::Widgets::Selection::RadioButtonLinker::Unlink ( RadioButton p_radioButton)

Unlink the given radio button

Member Data Documentation

◆ ValueChangedEvent

OvTools::Eventing::Event<int> OvUI::Widgets::Selection::RadioButtonLinker::ValueChangedEvent

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