7#ifndef __HDI_CORE_BOX__
8#define __HDI_CORE_BOX__
51 Box(
const Rect& frame_,
const std::string& title_ =
"");
113 virtual std::string
text()
const;
122 virtual void setText(
const std::string& text_);
143 typedef std::unique_ptr<Box> BoxUP;
144 typedef std::shared_ptr<Box> BoxSP;
145 typedef std::weak_ptr<Box> BoxWP;
Box class for UI boxes, which form a thin labeled border around a group of other widgets.
Definition: hdicoreBox.h:20
Box(const Box &box_)
Constructs a new Box object from an existing Box object (copy constructor)
virtual Box & operator=(const Box &rhs_)
Allows one Box object to be assigned from another.
virtual Type type() const
Returns BoxType, as boxes are always boxes!
virtual Box * duplicate() const
Convenience method to duplicate a Box object, creating a new and identical UI element to the target (...
virtual bool enabled()
Returns true, because boxes are always enabled.
virtual void setEnabled(const bool enable_)
Overrides Widget::setEnabled() because boxes are always enabled.
virtual std::string text() const
Gets the current text value of the box.
virtual void setText(const std::string &text_)
Sets the current text value of the box.
virtual Box * clone() const
Convenience method to clone a Box object on the heap.
Box(const Rect &frame_, const std::string &title_="")
Constructs a box with an optional title.
Box()
Constructs an empty Box object.
virtual ~Box()
Box destructor.
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:34