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

#include <TextSelectable.h>

Inheritance diagram for OvUI::Widgets::Texts::TextSelectable:
OvUI::Widgets::Texts::Text OvUI::Widgets::DataWidget< std::string > OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 TextSelectable (const std::string &p_content="", bool p_selected=false, bool p_disabled=false)
 
- Public Member Functions inherited from OvUI::Widgets::Texts::Text
 Text (const std::string &p_content="")
 
- Public Member Functions inherited from OvUI::Widgets::DataWidget< std::string >
 DataWidget (std::string &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

bool selected
 
bool disabled
 
OvTools::Eventing::Event< bool > ClickedEvent
 
OvTools::Eventing::Event SelectedEvent
 
OvTools::Eventing::Event UnselectedEvent
 
- Public Attributes inherited from OvUI::Widgets::Texts::Text
std::string content
 
- Public Attributes inherited from OvUI::Widgets::AWidget
bool enabled = true
 
bool lineBreak = true
 

Protected Member Functions

virtual 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

Simple widget to display a selectable text on a panel

Constructor & Destructor Documentation

◆ TextSelectable()

OvUI::Widgets::Texts::TextSelectable::TextSelectable ( const std::string &  p_content = "",
bool  p_selected = false,
bool  p_disabled = false 
)

Constructor

Parameters
p_content
p_selected
p_disabled@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::Texts::TextSelectable::_Draw_Impl ( )
overrideprotectedvirtual

Reimplemented from OvUI::Widgets::Texts::Text.

Member Data Documentation

◆ ClickedEvent

OvTools::Eventing::Event<bool> OvUI::Widgets::Texts::TextSelectable::ClickedEvent

◆ disabled

bool OvUI::Widgets::Texts::TextSelectable::disabled

◆ selected

bool OvUI::Widgets::Texts::TextSelectable::selected

◆ SelectedEvent

OvTools::Eventing::Event OvUI::Widgets::Texts::TextSelectable::SelectedEvent

◆ UnselectedEvent

OvTools::Eventing::Event OvUI::Widgets::Texts::TextSelectable::UnselectedEvent

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