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

#include <MenuItem.h>

Inheritance diagram for OvUI::Widgets::Menu::MenuItem:
OvUI::Widgets::DataWidget< bool > OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 MenuItem (const std::string &p_name, const std::string &p_shortcut="", bool p_checkable=false, bool p_checked=false)
 
- 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 name
 
std::string shortcut
 
bool checkable
 
bool checked
 
OvTools::Eventing::Event ClickedEvent
 
OvTools::Eventing::Event< bool > 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
Internal::WidgetContainerm_parent
 
std::string m_widgetID = "?"
 
bool m_autoExecutePlugins = true
 

Detailed Description

Widget that can be added to a menu list. It is clickable and can be checkable

Constructor & Destructor Documentation

◆ MenuItem()

OvUI::Widgets::Menu::MenuItem::MenuItem ( const std::string &  p_name,
const std::string &  p_shortcut = "",
bool  p_checkable = false,
bool  p_checked = false 
)

Constructor

Parameters
p_name
p_shortcut
p_checkable
p_checked@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::Menu::MenuItem::_Draw_Impl ( )
overrideprotectedvirtual

Member Data Documentation

◆ checkable

bool OvUI::Widgets::Menu::MenuItem::checkable

◆ checked

bool OvUI::Widgets::Menu::MenuItem::checked

◆ ClickedEvent

OvTools::Eventing::Event OvUI::Widgets::Menu::MenuItem::ClickedEvent

◆ name

std::string OvUI::Widgets::Menu::MenuItem::name

◆ shortcut

std::string OvUI::Widgets::Menu::MenuItem::shortcut

◆ ValueChangedEvent

OvTools::Eventing::Event<bool> OvUI::Widgets::Menu::MenuItem::ValueChangedEvent

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