![]() |
Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
|
Used to add a control bar to Illustrator's UI and contain various UI widgets. More...
#include <hdicoreControlBar.h>


Public Member Functions | |
| ControlBar () | |
| Constructs an empty ControlBar object. | |
| ControlBar (const ControlBar &cb_) | |
| Constructs a new ControlBar object from an existing ControlBar object (copy constructor) | |
| ControlBar (const Rect &frame_, const double minWidth_, const double maxWidth_) | |
| Constructs a new ControlBar object. | |
| virtual | ~ControlBar () |
| Destructs a ControlBar object. | |
| virtual ControlBar & | operator= (const ControlBar &rhs_) |
| Allows one ControlBar object to be assigned from another. | |
| virtual ControlBar * | clone () const |
| Convenience method to clone a ControlBar object on the heap. | |
| virtual void | destroy () |
| Destroys the UI control bar, converting the target object to an empty ControlBar object (see the default constructor for more info on empty ControlBar objects) | |
| virtual PlatformControlBarPtr | platformControlBar () const |
| Gets the platform-specific control bar, around which the target object is wrapped. | |
| virtual void | show () |
| Shows the control bar. | |
| virtual void | hide () |
| Hides the control bar. | |
| virtual bool | visible () const |
| Gets whether the control bar is visible. | |
| virtual void | setVisible (const bool visible_) |
| Sets control bar visibility. | |
| virtual double | width () const |
| Gets the current width of the control bar. | |
| virtual void | setWidth (const double w_) |
| Sets the width of the control bar. | |
| virtual void | move (const Point &loc_) |
| Moves the control bar. | |
| virtual bool | addWidget (const Widget &widget_) |
| Adds a widget (label, button, text field, etc.) to the control bar. | |
| virtual bool | removeWidget (const Widget &widget_) |
| Removes a widget (label, button, text field, etc.) from the control bar. | |
| virtual Callback *const | showCallback () const |
| Gets the registered callback for the control bar showing, or NULL if none. | |
| virtual void | setShowCallback (const Callback &cb_) |
| Sets/updates the callback for the control bar showing. | |
| virtual Callback *const | hideCallback () const |
| Gets the registered callback for the control bar hiding, or NULL if none. | |
| virtual void | setHideCallback (const Callback &cb_) |
| Sets/updates the callback for the control bar hiding. | |
| virtual Callback *const | resizeCallback () const |
| Gets the callback set for the control bar resize, or NULL if none. | |
| virtual void | setResizeCallback (const Callback &cb_) |
| Sets/updates the callback for the control bar resize. | |
| virtual void | update () const |
| Forces the widgets in the control bar to update/redraw. | |
Public Member Functions inherited from hdi::core::Window | |
| virtual | ~Window () |
| Destructs a Window object. | |
| virtual bool | isEmpty () const |
| Gets whether the target Window object is empty (constructed with the default ctor) | |
| virtual WindowType | windowType () |
| Gets the type of window. | |
| virtual bool | operator== (const Window &rhs_) const |
| Tests whether a given Window object is the same as another. | |
| virtual bool | operator!= (const Window &rhs_) const |
| Tests whether a given Window object is not the same as another. | |
| virtual const WidgetVector | widgets () const |
| Gets a list of all widgets contained by the target window. | |
| virtual bool | addWidgetGroup (const WidgetGroup &wg_) |
| Adds a widget group to the window. | |
| virtual bool | removeWidgetGroup (const WidgetGroup &wg_) |
| Removes a widget group from the window. | |
| virtual TabOrder *const | tabOrder () const |
| Gets the tab order object for the window. | |
| virtual double | scalingFactor () const |
| Gets the factor by which the UI is scaled for the given window (i.e. for HiDPI support) | |
Static Public Attributes | |
| static const double | typicalHeight |
| Most Illustrator control bars are this height, at 1x resolution. | |
Additional Inherited Members | |
Public Types inherited from hdi::core::Window | |
| typedef std::vector< std::shared_ptr< Widget > > | WidgetVector |
Protected Member Functions inherited from hdi::core::Window | |
| Window () | |
| Constructs an empty Window object. | |
| Window (const Window &w_) | |
| Constructs a new Window object from an existing Window object (copy constructor) | |
| Window (const WindowType type_) | |
| Constructs a Window object. | |
| virtual Window & | operator= (const Window &) |
| Internal use only. | |
Protected Attributes inherited from hdi::core::Window | |
| void * | _data |
| Private implementation data. | |
Used to add a control bar to Illustrator's UI and contain various UI widgets.
| hdi::core::ControlBar::ControlBar | ( | ) |
Constructs an empty ControlBar object.
| hdi::core::ControlBar::ControlBar | ( | const ControlBar & | cb_ | ) |
Constructs a new ControlBar object from an existing ControlBar object (copy constructor)
| cb_ | Existing ControlBar object |
| hdi::core::ControlBar::ControlBar | ( | const Rect & | frame_, |
| const double | minWidth_, | ||
| const double | maxWidth_ ) |
Constructs a new ControlBar object.
| frame_ | Location and size (width and height) of the control bar, at 1x resolution |
| minWidth_ | Minimum width of the control bar, at 1x resolution |
| maxWidth_ | Maximum width of the control bar, at 1x resolution |
|
virtual |
Destructs a ControlBar object.
|
virtual |
Adds a widget (label, button, text field, etc.) to the control bar.
| widget_ | Widget to place in the control bar |
Reimplemented from hdi::core::Window.
|
virtual |
Convenience method to clone a ControlBar object on the heap.
Implements hdi::core::Window.
|
virtual |
Destroys the UI control bar, converting the target object to an empty ControlBar object (see the default constructor for more info on empty ControlBar objects)
|
virtual |
Hides the control bar.
|
virtual |
Gets the registered callback for the control bar hiding, or NULL if none.
|
virtual |
Moves the control bar.
| loc_ | New top-left position for the control bar, in 1x resolution coordinates |
|
virtual |
Allows one ControlBar object to be assigned from another.
| rhs_ | Righthand side of the = operator; the object to copy values from |
|
virtual |
Gets the platform-specific control bar, around which the target object is wrapped.
|
virtual |
Removes a widget (label, button, text field, etc.) from the control bar.
| widget_ | Widget to remove from the control bar |
Reimplemented from hdi::core::Window.
|
virtual |
Gets the callback set for the control bar resize, or NULL if none.
|
virtual |
Sets/updates the callback for the control bar hiding.
| cb_ | New callback for a user hiding the control bar |
|
virtual |
Sets/updates the callback for the control bar resize.
| cb_ | New callback for a user resizing the control bar |
|
virtual |
Sets/updates the callback for the control bar showing.
| cb_ | New callback for a user showing the control bar |
|
virtual |
|
virtual |
Sets the width of the control bar.
| w_ | New width in pixels, at 1x resolution |
|
virtual |
|
virtual |
Gets the registered callback for the control bar showing, or NULL if none.
|
virtual |
|
virtual |
Gets whether the control bar is visible.
Implements hdi::core::Window.
|
virtual |
Gets the current width of the control bar.