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

#include <ColorEdit.h>

Inheritance diagram for OvUI::Widgets::Selection::ColorEdit:
OvUI::Widgets::DataWidget< Types::Color > OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 ColorEdit (bool p_enableAlpha=false, const Types::Color &p_defaultColor={})
- Public Member Functions inherited from OvUI::Widgets::DataWidget< Types::Color >
 DataWidget (Types::Color &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 enableAlpha
Types::Color color
OvTools::Eventing::Event< Types::Color & > ColorChangedEvent
- 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 open a color picker on click

Constructor & Destructor Documentation

◆ ColorEdit()

OvUI::Widgets::Selection::ColorEdit::ColorEdit ( bool  p_enableAlpha = false,
const Types::Color p_defaultColor = {} 


p_defaultColor@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::ColorEdit::_Draw_Impl ( )

Member Data Documentation

◆ color

Types::Color OvUI::Widgets::Selection::ColorEdit::color

◆ ColorChangedEvent

OvTools::Eventing::Event<Types::Color&> OvUI::Widgets::Selection::ColorEdit::ColorChangedEvent

◆ enableAlpha

bool OvUI::Widgets::Selection::ColorEdit::enableAlpha

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