VSTGUI
4.10
Graphical User Interface Framework not only for VST plugins
|
Window interface. More...
Public Member Functions | |
virtual const WindowControllerPtr & | getController () const =0 |
Get the window controller. | |
virtual CPoint | getSize () const =0 |
Get the size of the client area. | |
virtual CPoint | getPosition () const =0 |
Get the position in global coordinates. | |
virtual double | getScaleFactor () const =0 |
Get the content scale factor. | |
virtual CRect | getFocusViewRect () const =0 |
Get the rect of the current focus view in frame relative coordinates. | |
virtual const UTF8String & | getTitle () const =0 |
Get the title of the window. | |
virtual WindowType | getType () const =0 |
Get the type of the window. | |
virtual WindowStyle | getStyle () const =0 |
Get the style of the window. | |
virtual const UTF8String & | getAutoSaveFrameName () const =0 |
Get the auto save frame name of the window. | |
virtual void | setSize (const CPoint &newSize)=0 |
Set the size of the client area. | |
virtual void | setPosition (const CPoint &newPosition)=0 |
Set the position in global coordinates. | |
virtual void | setTitle (const UTF8String &newTitle)=0 |
Set the window title. | |
virtual void | setContentView (const SharedPointer< CFrame > &frame)=0 |
Set content view. | |
virtual void | setRepresentedPath (const UTF8String &path)=0 |
Set the path the contents of this window represents. | |
virtual WindowStyle | changeStyle (WindowStyle stylesToAdd, WindowStyle stylesToRemove)=0 |
Change window style. | |
virtual void | show ()=0 |
Show the window. | |
virtual void | hide ()=0 |
Hide the window. | |
virtual void | close ()=0 |
Close the window. | |
virtual void | activate ()=0 |
Activate the window. | |
virtual void | registerWindowListener (IWindowListener *listener)=0 |
Register a window listener. | |
virtual void | unregisterWindowListener (IWindowListener *listener)=0 |
Unregister a window listener. | |
Public Member Functions inherited from Interface | |
virtual | ~Interface () noexcept |
Interface ()=default | |
Interface (const Interface &)=delete | |
Interface (Interface &&)=delete | |
Interface & | operator= (const Interface &)=delete |
Interface & | operator= (Interface &&)=delete |
template<typename T > | |
const auto | dynamicCast () const |
template<typename T > | |
auto | dynamicCast () |
Window interface.
Windows are created via IApplication::instance ().createWindow ()
Windows are automatically destroyed when they are closed.
|
pure virtual |
Activate the window.
|
pure virtual |
Change window style.
May not change every style. Depends on the platform. Returns effective style.
|
pure virtual |
Close the window.
|
pure virtual |
Get the auto save frame name of the window.
|
pure virtual |
Get the window controller.
Can be nullptr.
|
pure virtual |
Get the rect of the current focus view in frame relative coordinates.
|
pure virtual |
Get the position in global coordinates.
|
pure virtual |
Get the content scale factor.
|
pure virtual |
Get the size of the client area.
|
pure virtual |
Get the style of the window.
|
pure virtual |
Get the title of the window.
|
pure virtual |
Get the type of the window.
|
pure virtual |
Hide the window.
|
pure virtual |
Register a window listener.
There is no ownership involved here, so you have to make sure the listener is alive as long as the window lives. Listeners are automatically removed when the window is closed.
|
pure virtual |
Set content view.
|
pure virtual |
Set the position in global coordinates.
|
pure virtual |
Set the path the contents of this window represents.
|
pure virtual |
Set the size of the client area.
|
pure virtual |
Set the window title.
|
pure virtual |
Show the window.
|
pure virtual |
Unregister a window listener.