Public Member Functions
-
Format (RendererRef renderer=RendererRef(), DisplayRef display=DisplayRef(), bool fullScreen=false, ivec2 size=ivec2(640, 480), ivec2 pos=ivec2())
-
void
-
Format &
-
boolisFullScreen () const
Returns whether the Window will be created full-screen. Default is
false
. -
const FullScreenOptions &getFullScreenOptions () const
Returns the options associated with fullscreen at startup.
-
voidsetFullScreen (bool fullScreen=true, const FullScreenOptions &options=FullScreenOptions())
Sets whether the Window will be created full-screen with FullScreenOptions options . Default is
false
. If true, FullScreenOptions mode defaults to kiosk. -
Format &fullScreen (bool fs=true)
Sets whether the Window will be created full-screen. Default is
false
. -
ivec2getSize () const
Returns the size in points at which the Window will be created. Default is 640 x 480.
-
voidsetSize (const ivec2 &size)
Sets the size in points at which the Window will be created. Default is 640 x 480.
-
voidsetSize (int32_t width, int32_t height)
Sets the size in points at which the Window will be created. Default is 640 x 480.
-
Format &size (const ivec2 &s)
Sets the size in points at which the Window will be created. Default is 640 x 480.
-
Format &size (int32_t width, int32_t height)
Sets the size in points at which the Window will be created. Default is 640 x 480.
-
ivec2getPos () const
Returns the position in points measured relative to the system's primary display's upper-left corner at which the Window will be created. Default is centered on the display.
-
voidsetPos (const ivec2 &pos)
Sets the position in points measured relative to the system's primary display's upper-left corner at which the Window will be created. Default is centered on the display.
-
voidsetPos (int32_t x, int32_t y)
Sets the position in points measured relative to the system's primary display's upper-left corner at which the Window will be created. Default is centered on the display.
-
Format &pos (const ivec2 &pos)
Sets the position in points measured relative to the system's primary display's upper-left corner at which the Window will be created. Default is centered on the display.
-
Format &pos (int32_t x, int32_t y)
Sets the position in points measured relative to the system's primary display's upper-left corner at which the Window will be created. Default is centered on the display.
-
boolisPosSpecified () const
Returns whether a non-default position has been requested for the Window .
-
voidsetPosUnspecified ()
Unspecifies a non-default position for the window, effectively requestion the default position.
-
void
-
Format &
-
boolisResizable () const
Returns whether the Window created will be resizable. Defaults to
true
. -
voidsetResizable (bool resizable=true)
Sets whether the Window created will be resizable. Defaults to
true
. -
Format &resizable (bool res=true)
Sets whether the Window created will be resizable. Defaults to
true
. -
boolisBorderless () const
Returns whether the Window created will have no border. Defaults to
false
. -
voidsetBorderless (bool borderless=true)
Sets whether the Window created will have no border. Defaults to
false
. -
Format &borderless (bool border=true)
Sets whether the Window created will have no border. Defaults to
false
. -
boolisAlwaysOnTop () const
Returns whether the Window created will always be above all other windows, including other applications' windows. Defaults to
false
. -
voidsetAlwaysOnTop (bool alwaysOnTop=true)
Sets whether the Window created will always be above all other windows, including other applications' windows. Defaults to
false
. -
Format &alwaysOnTop (bool top=true)
Sets whether the Window created will always be above all other windows, including other applications' windows. Defaults to
false
. -
voidenableFullScreenButton (bool enabled=true)
On Mac OS X enables the native full screen toggle button. Defaults to
false
. -
Format &fullScreenButton (bool enabled=true)
On Mac OS X enables the native full screen toggle button. Defaults to
false
. -
boolisFullScreenButtonEnabled () const
On Mac OS X returns whether the native full screen toggle button is displayed. Defaults to
false
. -
std::stringgetTitle () const
Returns the title of the Window as a UTF-8 string.
-
voidsetTitle (const std::string &title)
Sets the title of the Window as a UTF-8 string.
-
Format &title (const std::string &t)
Sets the title of the Window as a UTF-8 string.
-
boolisTitleSpecified () const
Returns whether a non-default title has been requested for the Window .
-
voidsetTitleUnspecified ()
Unspecifies a non-default title for the window, effectively requestion the default title.