26#ifndef TGUI_CHECK_BOX_HPP 
   27#define TGUI_CHECK_BOX_HPP 
   30#include <TGUI/Renderers/CheckBoxRenderer.hpp> 
   31#include <TGUI/Widgets/RadioButton.hpp> 
   44        typedef std::shared_ptr<CheckBox> 
Ptr; 
 
   45        typedef std::shared_ptr<const CheckBox> 
ConstPtr; 
 
  112        void leftMouseReleased(
Vector2f pos) 
override;
 
  117        void keyPressed(
const sf::Event::KeyEvent& event) 
override;
 
  127        void draw(sf::RenderTarget& target, sf::RenderStates states) 
const override;
 
  145        void updateTextureSizes() 
override;
 
  153            return std::make_shared<CheckBox>(*
this);
 
  160        Texture m_textureUncheckedCached;
 
  161        Texture m_textureCheckedCached;
 
CheckBox widget.
Definition: CheckBox.hpp:41
 
Vector2f getWidgetOffset() const override
Returns the distance between the position where the widget is drawn and where the widget is placed.
 
std::shared_ptr< CheckBox > Ptr
Shared widget pointer.
Definition: CheckBox.hpp:44
 
void setChecked(bool checked) override
Checks or unchecks the check box.
 
std::shared_ptr< const CheckBox > ConstPtr
Shared constant widget pointer.
Definition: CheckBox.hpp:45
 
static CheckBox::Ptr copy(CheckBox::ConstPtr checkbox)
Makes a copy of another checkbox.
 
static CheckBox::Ptr create(sf::String text="")
Creates a new check box widget.
 
void rendererChanged(const std::string &property) override
Function called when one of the properties of the renderer is changed.
 
void draw(sf::RenderTarget &target, sf::RenderStates states) const override
Draw the widget to a render target.
 
Vector2f getFullSize() const override
Returns the full size of the radio button.
 
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
Definition: CheckBox.hpp:151
 
Definition: Texture.hpp:42
 
Definition: Vector2f.hpp:39
 
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37