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

#include <RadioButton.h>

Inheritance diagram for OvUI::Widgets::Selection::RadioButton:
OvUI::Widgets::DataWidget< bool > OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 RadioButton (bool p_selected=false, const std::string &p_label="")
 
void Select ()
 
bool IsSelected () const
 
bool GetRadioID () const
 
- Public Member Functions inherited from OvUI::Widgets::DataWidget< bool >
 DataWidget (bool &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

std::string label
 
OvTools::Eventing::Event< int > ClickedEvent
 
- 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
Internal::WidgetContainerm_parent
 
std::string m_widgetID = "?"
 
bool m_autoExecutePlugins = true
 

Detailed Description

Widget that represent a button that is selectable. Only one radio button can be selected in the same RadioButtonLinker

Constructor & Destructor Documentation

◆ RadioButton()

OvUI::Widgets::Selection::RadioButton::RadioButton ( bool  p_selected = false,
const std::string &  p_label = "" 
)

Constructor

Parameters
p_selected
p_label@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 OvUI::Widgets::Selection::RadioButton::_Draw_Impl ( )
overrideprotectedvirtual

◆ GetRadioID()

bool OvUI::Widgets::Selection::RadioButton::GetRadioID ( ) const

Returns the radio button ID

◆ IsSelected()

bool OvUI::Widgets::Selection::RadioButton::IsSelected ( ) const

Returns true if the radio button is selected

◆ Select()

void OvUI::Widgets::Selection::RadioButton::Select ( )

Make the radio button selected

Member Data Documentation

◆ ClickedEvent

OvTools::Eventing::Event<int> OvUI::Widgets::Selection::RadioButton::ClickedEvent

◆ label

std::string OvUI::Widgets::Selection::RadioButton::label

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