VSTGUI: IWindow Class Reference

VSTGUI 4.10 Graphical User Interface Framework not only for VST plugins

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
IWindow Class Referenceabstract
Standalone Library

Window interface. More...

Inheritance diagram for IWindow:

## 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 ()

## Detailed Description

Window interface.

Windows are created via IApplication::instance ().createWindow ()

Windows are automatically destroyed when they are closed.

## Member Function Documentation

virtual void activate | ( |  | ) |
| pure virtual

Activate the window.

virtual WindowStyle changeStyle | ( | WindowStyle | stylesToAdd,
|  | WindowStyle | stylesToRemove
| ) |  |
| pure virtual

Change window style.

May not change every style. Depends on the platform. Returns effective style.

virtual void close | ( |  | ) |
| pure virtual

Close the window.

virtual const UTF8String& getAutoSaveFrameName | ( |  | ) | const
| pure virtual

Get the auto save frame name of the window.

virtual const WindowControllerPtr& getController | ( |  | ) | const
| pure virtual

Get the window controller.

Can be nullptr.

virtual CRect getFocusViewRect | ( |  | ) | const
| pure virtual

Get the rect of the current focus view in frame relative coordinates.

virtual CPoint getPosition | ( |  | ) | const
| pure virtual

Get the position in global coordinates.

virtual double getScaleFactor | ( |  | ) | const
| pure virtual

Get the content scale factor.

virtual CPoint getSize | ( |  | ) | const
| pure virtual

Get the size of the client area.

virtual WindowStyle getStyle | ( |  | ) | const
| pure virtual

Get the style of the window.

virtual const UTF8String& getTitle | ( |  | ) | const
| pure virtual

Get the title of the window.

virtual WindowType getType | ( |  | ) | const
| pure virtual

Get the type of the window.

virtual void hide | ( |  | ) |
| pure virtual

Hide the window.

virtual void registerWindowListener | ( | IWindowListener * | listener | ) |
| 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.

virtual void setContentView | ( | const SharedPointer< CFrame > & | frame | ) |
| pure virtual

Set content view.

virtual void setPosition | ( | const CPoint & | newPosition | ) |
| pure virtual

Set the position in global coordinates.

virtual void setRepresentedPath | ( | const UTF8String & | path | ) |
| pure virtual

Set the path the contents of this window represents.

virtual void setSize | ( | const CPoint & | newSize | ) |
| pure virtual

Set the size of the client area.

virtual void setTitle | ( | const UTF8String & | newTitle | ) |
| pure virtual

Set the window title.

virtual void show | ( |  | ) |
| pure virtual

Show the window.

virtual void unregisterWindowListener | ( | IWindowListener * | listener | ) |
| pure virtual

Unregister a window listener.

The documentation for this class was generated from the following file:

- iwindow.h