7#ifndef __HDI_CORE_FLOATING_DIALOG__
8#define __HDI_CORE_FLOATING_DIALOG__
260 typedef std::unique_ptr<FloatingDialog> FloatingDialogUP;
261 typedef std::shared_ptr<FloatingDialog> FloatingDialogSP;
262 typedef std::weak_ptr<FloatingDialog> FloatingDialogWP;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Used to create and display a floating dialog to the user, which is similar to a modal dialog but non-...
Definition: hdicoreFloatingDialog.h:25
virtual void setCloseCallback(const Callback &cb_)
Sets the close button callback for the dialog.
virtual Callback *const blurCallback() const
Gets the current dialog blur callback.
virtual Callback *const closeCallback() const
Gets the current close button callback.
virtual FloatingDialog * clone() const
Convenience method to clone a FloatingDialog object on the heap.
virtual FloatingDialog & operator=(const FloatingDialog &rhs_)
Allows one FloatingDialog object to be assigned from another.
FloatingDialog(const FloatingDialog &fd_)
Constructs a new FloatingDialog object from an existing FloatingDialog object (copy constructor)
virtual Size size() const
Gets the floating dialog's size.
virtual void setTitle(const std::string &title_)
Sets the current floating dialog title.
virtual void hide()
Hides the floating dialog.
virtual ~FloatingDialog()
Destructs a FloatingDialog object.
FloatingDialog()
Constructs an empty FloatingDialog object.
virtual void update() const
Forces the widgets in the floating dialog to update/redraw.
virtual void show()
Shows the floating dialog.
virtual bool addWidget(const Widget &widget_)
Adds a widget (label, button, text field, etc.) to the floating dialog.
virtual PlatformFloatingDialogPtr platformFloatingDialog() const
Gets the platform-specific floating dialog, around which the target object is wrapped.
virtual bool removeWidget(const Widget &widget_)
Removes a widget (label, button, text field, etc.) from the floating dialog.
virtual void destroy()
Destroys the UI floating dialog, converting the target object to an empty FloatingDialog object (see ...
virtual bool visible() const
Gets whether the dialog is visible.
virtual void setSize(const Size &size_)
Sets the floating dialog's size.
virtual std::string title() const
Gets the current floating dialog title.
void setBlurCallback(const Callback &cb_)
Sets the dialog blur callback.
FloatingDialog(const std::string &name_, const Size &size_)
Constructs a FloatingDialog object with a given name and size.
void setFocusCallback(const Callback &cb_)
Sets the dialog focus callback.
virtual Callback *const focusCallback() const
Gets the current dialog focus callback.
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:25
Used as a base class for modal dialogs, panels, and control bars.
Definition: hdicoreWindow.h:26
Header file for describing 2D dimensions (width and height)
Header file for a class to create and manipulate plugin windows.