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

#include <olcPGEX_QuickGUI.h>

Inheritance diagram for olc::QuickGUI::ImageCheckBox:
olc::QuickGUI::ImageButton olc::QuickGUI::Button olc::QuickGUI::BaseControl

Public Member Functions

 ImageCheckBox (olc::QuickGUI::Manager &manager, const olc::Renderable &icon, const bool check, const olc::vf2d &pos, const olc::vf2d &size)
 
void Update (olc::PixelGameEngine *pge) override
 
void Draw (olc::PixelGameEngine *pge) override
 
void DrawDecal (olc::PixelGameEngine *pge) override
 
- Public Member Functions inherited from olc::QuickGUI::ImageButton
 ImageButton (olc::QuickGUI::Manager &manager, const olc::Renderable &icon, const olc::vf2d &pos, const olc::vf2d &size)
 
- Public Member Functions inherited from olc::QuickGUI::Button
 Button (olc::QuickGUI::Manager &manager, const std::string &text, const olc::vf2d &pos, const olc::vf2d &size)
 
- Public Member Functions inherited from olc::QuickGUI::BaseControl
 BaseControl (olc::QuickGUI::Manager &manager)
 
virtual ~BaseControl ()
 
void Enable (const bool bEnable)
 

Public Attributes

bool bChecked = false
 
- Public Attributes inherited from olc::QuickGUI::ImageButton
const olc::RenderablepIcon
 
- Public Attributes inherited from olc::QuickGUI::Button
olc::vf2d vPos
 
olc::vf2d vSize
 
std::string sText
 
- Public Attributes inherited from olc::QuickGUI::BaseControl
bool bVisible = true
 
bool bPressed = false
 
bool bHeld = false
 
bool bReleased = false
 

Additional Inherited Members

- Protected Types inherited from olc::QuickGUI::BaseControl
enum class  State { Disabled , Normal , Hover , Click }
 
- Protected Attributes inherited from olc::QuickGUI::BaseControl
olc::QuickGUI::Managerm_manager
 
enum olc::QuickGUI::BaseControl::State m_state = State::Normal
 
float m_fTransition = 0.0
 

Constructor & Destructor Documentation

◆ ImageCheckBox()

olc::QuickGUI::ImageCheckBox::ImageCheckBox ( olc::QuickGUI::Manager & manager,
const olc::Renderable & icon,
const bool check,
const olc::vf2d & pos,
const olc::vf2d & size )

Member Function Documentation

◆ Draw()

void olc::QuickGUI::ImageCheckBox::Draw ( olc::PixelGameEngine * pge)
overridevirtual

Reimplemented from olc::QuickGUI::ImageButton.

◆ DrawDecal()

void olc::QuickGUI::ImageCheckBox::DrawDecal ( olc::PixelGameEngine * pge)
overridevirtual

Reimplemented from olc::QuickGUI::ImageButton.

◆ Update()

void olc::QuickGUI::ImageCheckBox::Update ( olc::PixelGameEngine * pge)
overridevirtual

Reimplemented from olc::QuickGUI::Button.

Member Data Documentation

◆ bChecked

bool olc::QuickGUI::ImageCheckBox::bChecked = false

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