#include <AppCocoaTouch.h>
Inherits cinder::app::App::Settings.
Public Member Functions | |
Settings () | |
void | enableMultiTouch (bool enable=true) |
Registers the app to receive multiTouch events from the operating system. Enabled by default. If disabled, touch events are mapped to mouse events. | |
bool | isMultiTouchEnabled () const |
Returns whether the app is registered to receive multiTouch events from the operating system. Enabled by default. If disabled, touch events are mapped to mouse events. | |
bool | isPrepared () const |
void | setWindowSize (int aWindowSizeX, int aWindowSizeY) |
width and height of the window when applicable | |
void | setWindowPos (int windowPositionX, int windowPositionY) |
Sets the position of the window on the screen. | |
void | setWindowPos (const Vec2i &windowPos) |
Sets the position of the window on the screen. | |
bool | isWindowPosSpecified () const |
Returns whether a non-default window position has been requested. | |
void | unspecifyWindowPos () |
Marks the window position setting as unspecified, effectively requesting the default. | |
bool | isBorderless () const |
Returns whether the window will be created without a border (chrome/frame). | |
void | setBorderless (bool borderless=true) |
Sets the window to be created without a border (chrome/frame). | |
bool | isAlwaysOnTop () const |
Returns whether the window always remains above all other windows. | |
void | setAlwaysOnTop (bool alwaysOnTop=true) |
Sets whether the window always remains above all other windows. | |
void | setFrameRate (float aFrameRate) |
The maximum frameRate the update/draw loop will execute at, specified in frames per second. Default value is 30 FPS. | |
void | enablePowerManagement (bool aPowerManagement=true) |
a value of true allows screensavers or the system's power management to hide the app. Default value is false . | |
bool | isFullScreen () const |
is the application set to run at fullscreen | |
int | getWindowWidth () const |
width of the application's window specified in pixels | |
int | getWindowHeight () const |
height of the application's window specified in pixels | |
Vec2i | getWindowSize () const |
width and height of the application's window specified in pixels | |
Area | getWindowBounds () const |
the size of the application's window specified in pixels. | |
int | getWindowPosX () const |
Returns the position of the window in pixels on screen from left in pixels. | |
int | getWindowPosY () const |
Returns the position of the window on screen from top in pixels. | |
Vec2i | getWindowPos () const |
Returns the position of the window on screen in pixels. | |
const std::string & | getTitle () const |
the title of the app reflected in ways particular to the app type and platform (such as its Window or menu) | |
void | setTitle (const std::string &title) |
the title of the app reflected in ways particular to the app type and platform (such as its Window or menu) | |
float | getFrameRate () const |
maximum frameRate of the application specified in frames per second | |
bool | isResizable () const |
are users allowed to resize the window | |
bool | getPowerManagement () const |
is power management enabled, allowing screensavers and the system's power management to hide the application | |
Protected Attributes | |
bool | mShouldQuit |
int | mWindowSizeX |
int | mWindowSizeY |
bool | mWindowPosSpecified |
int | mWindowPositionX |
int | mWindowPositionY |
bool | mFullScreen |
float | mFrameRate |
bool | mResizable |
bool | mBorderless |
bool | mAlwaysOnTop |
bool | mPowerManagement |
std::string | mTitle |
cinder::app::AppCocoaTouch::Settings::Settings | ( | ) |
Reimplemented from cinder::app::App::Settings.
void cinder::app::AppCocoaTouch::Settings::enableMultiTouch | ( | bool | enable = true |
) |
Registers the app to receive multiTouch events from the operating system. Enabled by default. If disabled, touch events are mapped to mouse events.
bool cinder::app::AppCocoaTouch::Settings::isMultiTouchEnabled | ( | ) | const |
Returns whether the app is registered to receive multiTouch events from the operating system. Enabled by default. If disabled, touch events are mapped to mouse events.
bool cinder::app::App::Settings::isPrepared | ( | ) | const [inherited] |
void cinder::app::App::Settings::setWindowSize | ( | int | aWindowSizeX, | |
int | aWindowSizeY | |||
) | [inherited] |
width and height of the window when applicable
void cinder::app::App::Settings::setWindowPos | ( | int | windowPositionX, | |
int | windowPositionY | |||
) | [inherited] |
Sets the position of the window on the screen.
void cinder::app::App::Settings::setWindowPos | ( | const Vec2i & | windowPos | ) | [inherited] |
Sets the position of the window on the screen.
bool cinder::app::App::Settings::isWindowPosSpecified | ( | ) | const [inherited] |
Returns whether a non-default window position has been requested.
void cinder::app::App::Settings::unspecifyWindowPos | ( | ) | [inherited] |
Marks the window position setting as unspecified, effectively requesting the default.
bool cinder::app::App::Settings::isBorderless | ( | ) | const [inherited] |
Returns whether the window will be created without a border (chrome/frame).
void cinder::app::App::Settings::setBorderless | ( | bool | borderless = true |
) | [inherited] |
Sets the window to be created without a border (chrome/frame).
bool cinder::app::App::Settings::isAlwaysOnTop | ( | ) | const [inherited] |
Returns whether the window always remains above all other windows.
void cinder::app::App::Settings::setAlwaysOnTop | ( | bool | alwaysOnTop = true |
) | [inherited] |
Sets whether the window always remains above all other windows.
void cinder::app::App::Settings::setFrameRate | ( | float | aFrameRate | ) | [inherited] |
The maximum frameRate the update/draw loop will execute at, specified in frames per second. Default value is 30 FPS.
void cinder::app::App::Settings::enablePowerManagement | ( | bool | aPowerManagement = true |
) | [inherited] |
a value of true allows screensavers or the system's power management to hide the app. Default value is false
.
bool cinder::app::App::Settings::isFullScreen | ( | ) | const [inherited] |
is the application set to run at fullscreen
int cinder::app::App::Settings::getWindowWidth | ( | ) | const [inherited] |
width of the application's window specified in pixels
int cinder::app::App::Settings::getWindowHeight | ( | ) | const [inherited] |
height of the application's window specified in pixels
Vec2i cinder::app::App::Settings::getWindowSize | ( | ) | const [inherited] |
width and height of the application's window specified in pixels
Area cinder::app::App::Settings::getWindowBounds | ( | ) | const [inherited] |
the size of the application's window specified in pixels.
int cinder::app::App::Settings::getWindowPosX | ( | ) | const [inherited] |
Returns the position of the window in pixels on screen from left in pixels.
int cinder::app::App::Settings::getWindowPosY | ( | ) | const [inherited] |
Returns the position of the window on screen from top in pixels.
Vec2i cinder::app::App::Settings::getWindowPos | ( | ) | const [inherited] |
Returns the position of the window on screen in pixels.
const std::string& cinder::app::App::Settings::getTitle | ( | ) | const [inherited] |
the title of the app reflected in ways particular to the app type and platform (such as its Window or menu)
void cinder::app::App::Settings::setTitle | ( | const std::string & | title | ) | [inherited] |
the title of the app reflected in ways particular to the app type and platform (such as its Window or menu)
float cinder::app::App::Settings::getFrameRate | ( | ) | const [inherited] |
maximum frameRate of the application specified in frames per second
bool cinder::app::App::Settings::isResizable | ( | ) | const [inherited] |
are users allowed to resize the window
bool cinder::app::App::Settings::getPowerManagement | ( | ) | const [inherited] |
is power management enabled, allowing screensavers and the system's power management to hide the application
bool cinder::app::App::Settings::mShouldQuit [protected, inherited] |
int cinder::app::App::Settings::mWindowSizeX [protected, inherited] |
int cinder::app::App::Settings::mWindowSizeY [protected, inherited] |
bool cinder::app::App::Settings::mWindowPosSpecified [protected, inherited] |
int cinder::app::App::Settings::mWindowPositionX [protected, inherited] |
int cinder::app::App::Settings::mWindowPositionY [protected, inherited] |
bool cinder::app::App::Settings::mFullScreen [protected, inherited] |
float cinder::app::App::Settings::mFrameRate [protected, inherited] |
bool cinder::app::App::Settings::mResizable [protected, inherited] |
bool cinder::app::App::Settings::mBorderless [protected, inherited] |
bool cinder::app::App::Settings::mAlwaysOnTop [protected, inherited] |
bool cinder::app::App::Settings::mPowerManagement [protected, inherited] |
std::string cinder::app::App::Settings::mTitle [protected, inherited] |