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

#include <Button.h>

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

Public Member Functions

 Button (const std::string &p_label="", const OvMaths::FVector2 &p_size=OvMaths::FVector2(0.f, 0.f), bool p_disabled=false)
- 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
OvMaths::FVector2 size
bool disabled = false
Types::Color idleBackgroundColor
Types::Color hoveredBackgroundColor
Types::Color clickedBackgroundColor
Types::Color textColor
- 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

Simple button widget

Constructor & Destructor Documentation

◆ Button()

OvUI::Widgets::Buttons::Button::Button ( const std::string &  p_label = "",
const OvMaths::FVector2 p_size = OvMaths::FVector2(0.f, 0.f),
bool  p_disabled = false 


p_disabled@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::Button::_Draw_Impl ( )

Member Data Documentation

◆ clickedBackgroundColor

Types::Color OvUI::Widgets::Buttons::Button::clickedBackgroundColor

◆ disabled

bool OvUI::Widgets::Buttons::Button::disabled = false

◆ hoveredBackgroundColor

Types::Color OvUI::Widgets::Buttons::Button::hoveredBackgroundColor

◆ idleBackgroundColor

Types::Color OvUI::Widgets::Buttons::Button::idleBackgroundColor

◆ label

std::string OvUI::Widgets::Buttons::Button::label

◆ size

OvMaths::FVector2 OvUI::Widgets::Buttons::Button::size

◆ textColor

Types::Color OvUI::Widgets::Buttons::Button::textColor

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