#include <Window.h>
|
| Format (RendererRef renderer=RendererRef(), DisplayRef display=DisplayRef(), bool fullScreen=false, ivec2 size=ivec2(640, 480), ivec2 pos=ivec2()) |
|
DisplayRef | getDisplay () const |
|
void | setDisplay (DisplayRef display) |
|
Format & | display (DisplayRef displayRef) |
|
bool | isFullScreen () const |
|
const FullScreenOptions & | getFullScreenOptions () const |
|
void | setFullScreen (bool fullScreen=true, const FullScreenOptions &options=FullScreenOptions()) |
|
Format & | fullScreen (bool fs=true) |
|
ivec2 | getSize () const |
|
void | setSize (const ivec2 &size) |
|
void | setSize (int32_t width, int32_t height) |
|
Format & | size (const ivec2 &s) |
|
Format & | size (int32_t width, int32_t height) |
|
ivec2 | getPos () const |
|
void | setPos (const ivec2 &pos) |
|
void | setPos (int32_t x, int32_t y) |
|
Format & | pos (const ivec2 &pos) |
|
Format & | pos (int32_t x, int32_t y) |
|
bool | isPosSpecified () const |
|
void | setPosUnspecified () |
|
RendererRef | getRenderer () const |
|
void | setRenderer (const RendererRef &renderer) |
|
Format & | renderer (RendererRef r) |
|
bool | isResizable () const |
|
void | setResizable (bool resizable=true) |
|
Format & | resizable (bool res=true) |
|
bool | isBorderless () const |
|
void | setBorderless (bool borderless=true) |
|
Format & | borderless (bool border=true) |
|
bool | isAlwaysOnTop () const |
|
void | setAlwaysOnTop (bool alwaysOnTop=true) |
|
Format & | alwaysOnTop (bool top=true) |
|
void | enableFullScreenButton (bool enabled=true) |
|
Format & | fullScreenButton (bool enabled=true) |
|
bool | isFullScreenButtonEnabled () const |
|
std::string | getTitle () const |
|
void | setTitle (const std::string &title) |
|
Format & | title (const std::string &t) |
|
bool | isTitleSpecified () const |
|
void | setTitleUnspecified () |
|
DisplayRef cinder::app::Window::Format::getDisplay |
( |
| ) |
const |
Returns the Display the Window will be created on. Defaults to the primary display.
void cinder::app::Window::Format::setDisplay |
( |
DisplayRef |
display | ) |
|
Sets the Display the Window will be created on. Defaults to the primary display.
Sets the Display the Window will be created on. Defaults to the primary display.
bool cinder::app::Window::Format::isFullScreen |
( |
| ) |
const |
Returns whether the Window will be created full-screen. Default is false
.
Returns the options associated with fullscreen at startup.
Format& cinder::app::Window::Format::fullScreen |
( |
bool |
fs = true | ) |
|
Sets whether the Window will be created full-screen. Default is false
.
ivec2 cinder::app::Window::Format::getSize |
( |
| ) |
const |
Returns the size in points at which the Window will be created. Default is 640 x 480.
void cinder::app::Window::Format::setSize |
( |
const ivec2 & |
size | ) |
|
Sets the size in points at which the Window will be created. Default is 640 x 480.
void cinder::app::Window::Format::setSize |
( |
int32_t |
width, |
|
|
int32_t |
height |
|
) |
| |
Sets the size in points at which the Window will be created. Default is 640 x 480.
Format& cinder::app::Window::Format::size |
( |
const ivec2 & |
s | ) |
|
Sets the size in points at which the Window will be created. Default is 640 x 480.
Format& cinder::app::Window::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.
ivec2 cinder::app::Window::Format::getPos |
( |
| ) |
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.
void cinder::app::Window::Format::setPos |
( |
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.
void cinder::app::Window::Format::setPos |
( |
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& cinder::app::Window::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& cinder::app::Window::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.
bool cinder::app::Window::Format::isPosSpecified |
( |
| ) |
const |
Returns whether a non-default position has been requested for the Window.
void cinder::app::Window::Format::setPosUnspecified |
( |
| ) |
|
Unspecifies a non-default position for the window, effectively requestion the default position.
RendererRef cinder::app::Window::Format::getRenderer |
( |
| ) |
const |
Returns the Renderer which will be instantiated for the Window. Defaults to an instance of the App's default renderer (specified in the app-instantiation macro).
void cinder::app::Window::Format::setRenderer |
( |
const RendererRef & |
renderer | ) |
|
bool cinder::app::Window::Format::isResizable |
( |
| ) |
const |
Returns whether the Window created will be resizable. Defaults to true
.
void cinder::app::Window::Format::setResizable |
( |
bool |
resizable = true | ) |
|
Sets whether the Window created will be resizable. Defaults to true
.
Format& cinder::app::Window::Format::resizable |
( |
bool |
res = true | ) |
|
Sets whether the Window created will be resizable. Defaults to true
.
bool cinder::app::Window::Format::isBorderless |
( |
| ) |
const |
Returns whether the Window created will have no border. Defaults to false
.
void cinder::app::Window::Format::setBorderless |
( |
bool |
borderless = true | ) |
|
Sets whether the Window created will have no border. Defaults to false
.
Format& cinder::app::Window::Format::borderless |
( |
bool |
border = true | ) |
|
Sets whether the Window created will have no border. Defaults to false
.
bool cinder::app::Window::Format::isAlwaysOnTop |
( |
| ) |
const |
Returns whether the Window created will always be above all other windows, including other applications' windows. Defaults to false
.
void cinder::app::Window::Format::setAlwaysOnTop |
( |
bool |
alwaysOnTop = true | ) |
|
Sets whether the Window created will always be above all other windows, including other applications' windows. Defaults to false
.
Format& cinder::app::Window::Format::alwaysOnTop |
( |
bool |
top = true | ) |
|
Sets whether the Window created will always be above all other windows, including other applications' windows. Defaults to false
.
void cinder::app::Window::Format::enableFullScreenButton |
( |
bool |
enabled = true | ) |
|
On Mac OS X enables the native full screen toggle button. Defaults to false
.
Format& cinder::app::Window::Format::fullScreenButton |
( |
bool |
enabled = true | ) |
|
On Mac OS X enables the native full screen toggle button. Defaults to false
.
bool cinder::app::Window::Format::isFullScreenButtonEnabled |
( |
| ) |
const |
On Mac OS X returns whether the native full screen toggle button is displayed. Defaults to false
.
std::string cinder::app::Window::Format::getTitle |
( |
| ) |
const |
Returns the title of the Window as a UTF-8 string.
void cinder::app::Window::Format::setTitle |
( |
const std::string & |
title | ) |
|
Sets the title of the Window as a UTF-8 string.
Format& cinder::app::Window::Format::title |
( |
const std::string & |
t | ) |
|
Sets the title of the Window as a UTF-8 string.
bool cinder::app::Window::Format::isTitleSpecified |
( |
| ) |
const |
Returns whether a non-default title has been requested for the Window.
void cinder::app::Window::Format::setTitleUnspecified |
( |
| ) |
|
Unspecifies a non-default title for the window, effectively requestion the default title.
The documentation for this struct was generated from the following file: