olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::QuickGUI::BaseControl Class Referenceabstract

#include <olcPGEX_QuickGUI.h>

Inheritance diagram for olc::QuickGUI::BaseControl:
olc::QuickGUI::Button olc::QuickGUI::Label olc::QuickGUI::ListBox olc::QuickGUI::Slider olc::QuickGUI::CheckBox olc::QuickGUI::ImageButton olc::QuickGUI::TextBox olc::QuickGUI::ImageCheckBox

Public Member Functions

 BaseControl (olc::QuickGUI::Manager &manager)
 
virtual ~BaseControl ()
 
void Enable (const bool bEnable)
 
virtual void Update (olc::PixelGameEngine *pge)=0
 
virtual void Draw (olc::PixelGameEngine *pge)=0
 
virtual void DrawDecal (olc::PixelGameEngine *pge)=0
 

Public Attributes

bool bVisible = true
 
bool bPressed = false
 
bool bHeld = false
 
bool bReleased = false
 

Protected Types

enum class  State { Disabled , Normal , Hover , Click }
 

Protected Attributes

olc::QuickGUI::Managerm_manager
 
enum olc::QuickGUI::BaseControl::State m_state = State::Normal
 
float m_fTransition = 0.0
 

Member Enumeration Documentation

◆ State

enum class olc::QuickGUI::BaseControl::State
strongprotected
Enumerator
Disabled 
Normal 
Hover 
Click 

Constructor & Destructor Documentation

◆ BaseControl()

olc::QuickGUI::BaseControl::BaseControl ( olc::QuickGUI::Manager & manager)

◆ ~BaseControl()

virtual olc::QuickGUI::BaseControl::~BaseControl ( )
virtual

Member Function Documentation

◆ Draw()

◆ DrawDecal()

◆ Enable()

void olc::QuickGUI::BaseControl::Enable ( const bool bEnable)

◆ Update()

Member Data Documentation

◆ bHeld

bool olc::QuickGUI::BaseControl::bHeld = false

◆ bPressed

bool olc::QuickGUI::BaseControl::bPressed = false

◆ bReleased

bool olc::QuickGUI::BaseControl::bReleased = false

◆ bVisible

bool olc::QuickGUI::BaseControl::bVisible = true

◆ m_fTransition

float olc::QuickGUI::BaseControl::m_fTransition = 0.0
protected

◆ m_manager

olc::QuickGUI::Manager& olc::QuickGUI::BaseControl::m_manager
protected

◆ m_state

enum olc::QuickGUI::BaseControl::State olc::QuickGUI::BaseControl::m_state = State::Normal
protected

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