7#ifndef __HDI_CORE_CHECKBOX__
8#define __HDI_CORE_CHECKBOX__
72 const std::string& label_,
89 const std::string& label_,
205 typedef std::unique_ptr<Checkbox> CheckboxUP;
206 typedef std::shared_ptr<Checkbox> CheckboxSP;
207 typedef std::weak_ptr<Checkbox> CheckboxWP;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Checkbox widget, which has both a checkbox "button" and a text label to its right.
Definition: hdicoreCheckbox.h:22
virtual Checkbox * clone() const
Convenience method to clone a Checkbox object on the heap.
virtual void setChecked(const bool checked_)
Alternate setter for the checkbox state.
static double idealWidth(const std::string &text_, const double height_, const WindowType containerType_)
Gets the ideal width for a checkbox, given its label and a known height.
virtual Callback *const clickCallback() const
Gets the current click callback for the checkbox.
virtual void setClickCallback(const Callback &callback_)
Sets the click callback for the checkbox.
virtual StateType state() const
Gets the checkbox state.
virtual Checkbox & operator=(const Checkbox &rhs_)
Allows one Checkbox object to be assigned from another.
virtual ~Checkbox()
Checkbox destructor.
Checkbox(const Point &loc_, const std::string &label_, const WindowType containerType_, const StateType state_=StateOff)
Constructs a checkbox (using a StateType) and a window container type.
virtual void click()
Simulates a click on the checkbox.
virtual void setState(const StateType state_)
Sets the checkbox state.
StateType
Describes the state of a checkbox.
Definition: hdicoreCheckbox.h:28
Checkbox(const Point &loc_, const std::string &label_, const double width_, const StateType state_=StateOff)
Constructs a checkbox (using a StateType)
Checkbox()
Constructs an empty Checkbox object.
virtual Checkbox * duplicate() const
Convenience method to duplicate a Checkbox object, creating a new and identical UI element to the tar...
Checkbox(const Checkbox &checkbox_)
Constructs a new Checkbox object from an existing Checkbox object (copy constructor)
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:38
WindowType
Describes the type of a Window object, allowing for proper casting to its subclass.
Definition: hdicoreTypes.h:822