Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Used as a base class for modal dialogs, panels, and control bars. More...
#include <hdicoreWindow.h>
Public Types | |
typedef std::vector< std::shared_ptr< Widget > > | WidgetVector |
Public Member Functions | |
virtual | ~Window () |
Destructs a Window object. | |
virtual Window * | clone () const =0 |
Convenience method to clone a Window object, taking its subclass type into account for proper memory management. | |
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 bool | visible () const =0 |
Gets whether the window is visible. | |
virtual void | show ()=0 |
Shows the window. | |
virtual const WidgetVector | widgets () const |
Gets a list of all widgets contained by the target window. | |
virtual bool | addWidget (const Widget &widget_) |
Adds a widget (label, button, text field, etc.) to the window. | |
virtual bool | removeWidget (const Widget &widget_) |
Removes a widget (label, button, text field, etc.) from the 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 void | update () const =0 |
Forces the widgets in the modal dialog to update/redraw. | |
virtual double | scalingFactor () const |
Gets the factor by which the UI is scaled for the given window (i.e. for HiDPI support) | |
Protected Member Functions | |
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 | |
void * | _data |
Private implementation data. | |
Used as a base class for modal dialogs, panels, and control bars.
|
virtual |
Destructs a Window object.
|
protected |
Constructs an empty Window object.
|
protected |
|
protected |
|
virtual |
Adds a widget (label, button, text field, etc.) to the window.
widget_ | Widget to place in the window |
Reimplemented in hdi::core::ControlBar, hdi::core::FloatingDialog, hdi::core::ModalDialog, and hdi::core::Panel.
|
virtual |
Adds a widget group to the window.
wg_ | Widget group to place in the window |
|
pure virtual |
Convenience method to clone a Window object, taking its subclass type into account for proper memory management.
Implemented in hdi::core::ControlBar, hdi::core::FloatingDialog, hdi::core::ModalDialog, and hdi::core::Panel.
|
virtual |
|
virtual |
Internal use only.
|
virtual |
|
virtual |
Removes a widget (label, button, text field, etc.) from the window.
widget_ | Widget to remove from the window |
Reimplemented in hdi::core::ControlBar, hdi::core::FloatingDialog, hdi::core::ModalDialog, and hdi::core::Panel.
|
virtual |
Removes a widget group from the window.
wg_ | Widget group to remove from the window |
|
virtual |
Gets the factor by which the UI is scaled for the given window (i.e. for HiDPI support)
|
pure virtual |
Shows the window.
Implemented in hdi::core::ControlBar, hdi::core::FloatingDialog, hdi::core::ModalDialog, and hdi::core::Panel.
|
virtual |
|
pure virtual |
Forces the widgets in the modal dialog to update/redraw.
Implemented in hdi::core::ControlBar, hdi::core::FloatingDialog, hdi::core::ModalDialog, and hdi::core::Panel.
|
pure virtual |
Gets whether the window is visible.
Implemented in hdi::core::ControlBar, hdi::core::FloatingDialog, hdi::core::ModalDialog, and hdi::core::Panel.
|
virtual |
Gets a list of all widgets contained by the target window.
|
virtual |
Gets the type of window.