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

#include <ComboBox.h>

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

Public Member Functions

 ComboBox (int p_currentChoice=0)
- 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

std::map< int, std::string > choices
int currentChoice
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

Widget that can display a list of values that the user can select

Constructor & Destructor Documentation

◆ ComboBox()

OvUI::Widgets::Selection::ComboBox::ComboBox ( int  p_currentChoice = 0)


p_currentChoice@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::ComboBox::_Draw_Impl ( )

Member Data Documentation

◆ choices

std::map<int, std::string> OvUI::Widgets::Selection::ComboBox::choices

◆ currentChoice

int OvUI::Widgets::Selection::ComboBox::currentChoice

◆ ValueChangedEvent

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

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