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

#include <ButtonColored.h>

Inheritance diagram for OvUI::Widgets::Buttons::ButtonColored:
OvUI::Widgets::Buttons::AButton OvUI::Widgets::AWidget OvUI::API::IDrawable OvUI::Plugins::Pluginable

Public Member Functions

 ButtonColored (const std::string &p_label="", const Types::Color &p_color={}, const OvMaths::FVector2 &p_size=OvMaths::FVector2(0.f, 0.f), bool p_enableAlpha=true)
- Public Member Functions inherited from OvUI::Widgets::AWidget
 AWidget ()
virtual void Draw () override
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
Types::Color color
OvMaths::FVector2 size
bool enableAlpha
- Public Attributes inherited from OvUI::Widgets::Buttons::AButton
OvTools::Eventing::Event 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
std::string m_widgetID = "?"
bool m_autoExecutePlugins = true

Detailed Description

Button widget of a single color (Color palette element)

Constructor & Destructor Documentation

◆ ButtonColored()

OvUI::Widgets::Buttons::ButtonColored::ButtonColored ( const std::string &  p_label = "",
const Types::Color p_color = {},
const OvMaths::FVector2 p_size = OvMaths::FVector2(0.f, 0.f),
bool  p_enableAlpha = true 


p_enableAlpha@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::Buttons::ButtonColored::_Draw_Impl ( )

Member Data Documentation

◆ color

Types::Color OvUI::Widgets::Buttons::ButtonColored::color

◆ enableAlpha

bool OvUI::Widgets::Buttons::ButtonColored::enableAlpha

◆ label

std::string OvUI::Widgets::Buttons::ButtonColored::label

◆ size

OvMaths::FVector2 OvUI::Widgets::Buttons::ButtonColored::size

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