Window interface.
More...
#include <iwindow.h>
Window interface.
Windows are created via IApplication::instance ().createWindow ()
Windows are automatically destroyed when they are closed.
◆ activate()
virtual void activate |
( |
| ) |
|
|
pure virtual |
◆ changeStyle()
Change window style.
May not change every style. Depends on the platform. Returns effective style.
◆ close()
◆ getAutoSaveFrameName()
virtual const UTF8String & getAutoSaveFrameName |
( |
| ) |
const |
|
pure virtual |
Get the auto save frame name of the window.
◆ getController()
Get the window controller.
Can be nullptr.
◆ getFocusViewRect()
virtual CRect getFocusViewRect |
( |
| ) |
const |
|
pure virtual |
Get the rect of the current focus view in frame relative coordinates.
◆ getPosition()
virtual CPoint getPosition |
( |
| ) |
const |
|
pure virtual |
Get the position in global coordinates.
◆ getScaleFactor()
virtual double getScaleFactor |
( |
| ) |
const |
|
pure virtual |
Get the content scale factor.
◆ getSize()
virtual CPoint getSize |
( |
| ) |
const |
|
pure virtual |
Get the size of the client area.
◆ getStyle()
Get the style of the window.
◆ getTitle()
Get the title of the window.
◆ getType()
Get the type of the window.
◆ hide()
◆ registerWindowListener()
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.
◆ setContentView()
◆ setPosition()
virtual void setPosition |
( |
const CPoint & | newPosition | ) |
|
|
pure virtual |
Set the position in global coordinates.
◆ setRepresentedPath()
virtual void setRepresentedPath |
( |
const UTF8String & | path | ) |
|
|
pure virtual |
Set the path the contents of this window represents.
◆ setSize()
virtual void setSize |
( |
const CPoint & | newSize | ) |
|
|
pure virtual |
Set the size of the client area.
◆ setTitle()
virtual void setTitle |
( |
const UTF8String & | newTitle | ) |
|
|
pure virtual |
◆ show()
◆ unregisterWindowListener()
Unregister a window listener.
The documentation for this class was generated from the following file: