Go to the source code of this file.
Classes | |
| struct | cinder::app::BooleanOrEventCombiner |
| Returns true if any slots return true, else false. Does not short-circuit. Returns true if there are no slots. More... | |
| struct | cinder::app::BooleanAndEventCombiner |
| Returns true if all slots return true, else false. Does not short-circuit. Returns true if there are no slots. More... | |
| struct | cinder::app::BitwiseAndEventCombiner< T > |
| Returns a bitmask where in order for the bit in type T to be be 1, it has to be 1 from all slot. Returns 0 if there are no slots. More... | |
| class | cinder::app::App |
| class | cinder::app::App::Settings |
Namespaces | |
| namespace | cinder |
| namespace | boost |
| namespace | boost::asio |
| namespace | cinder::app |
Functions | |
App Free Functions | |
Convenience methods which mirror App member-functions and apply to the active application | |
| WindowRef | cinder::app::getWindow () |
| Returns the number of Windows the app has open. | |
| size_t | cinder::app::getNumWindows () |
| Returns the number of Windows the app has open. | |
| WindowRef | cinder::app::getWindowIndex (size_t index) |
| Gets a Window by index, in the range [0, getNumWindows()). | |
| int | cinder::app::getWindowWidth () |
| Returns the width of the active App's window measured in points, or of the screen when in full-screen mode. | |
| void | cinder::app::setWindowPos (const Vec2i &windowPos) |
| Sets the position of the active App's window measured in points. Ignored in full-screen mode. | |
| void | cinder::app::setWindowPos (int x, int y) |
| Sets the position of the active App's window measured in points. Ignored in full-screen mode. | |
| int | cinder::app::getWindowHeight () |
| Returns the height of the active App's window measured in points, or the screen when in full-screen mode. | |
| void | cinder::app::setWindowSize (int windowWidth, int windowHeight) |
| Sets the size of the active App's window in points. Ignored in full-screen mode. | |
| Vec2f | cinder::app::getWindowCenter () |
| Returns the center of the active App's window in pixels or of the screen in full-screen mode. | |
| Vec2i | cinder::app::getWindowSize () |
| Returns the size of the active App's window or the screen in full-screen mode measured in points. | |
| Vec2i | cinder::app::getWindowPos () |
| Returns the position of the active App's window measured in points. | |
| float | cinder::app::getWindowAspectRatio () |
| Returns the aspect ratio of the active App's window or the screen in full-screen mode. | |
| Area | cinder::app::getWindowBounds () |
| Returns the bounding area of the active App's window or the screen in full-screen mode measured in points. | |
| float | cinder::app::getWindowContentScale () |
| Returns the contentScale of the active App's window, which is the multiplier that maps points to pixels. | |
| float | cinder::app::getFrameRate () |
| Returns the maximum frame-rate the active App will attempt to maintain. | |
| void | cinder::app::setFrameRate (float frameRate) |
| Sets the maximum frame-rate the active App will attempt to maintain. | |
| bool | cinder::app::isFullScreen () |
| Returns whether the active App is in full-screen mode or not. | |
| void | cinder::app::setFullScreen (bool fullScreen=true) |
| Sets whether the active App is in full-screen mode based on fullScreen. | |
| float | cinder::app::toPixels (float s) |
| Returns a scalar mapped from points to pixels for the current Window. | |
| Vec2f | cinder::app::toPixels (Vec2f s) |
| Returns a Vec2f mapped from points to pixels for the current Window. | |
| Area | cinder::app::toPixels (const Area &a) |
| Returns an Area mapped from points to pixels for the current Window. | |
| Rectf | cinder::app::toPixels (const Rectf &a) |
| Returns a Rectf mapped from points to pixels for the current Window. | |
| float | cinder::app::toPoints (float s) |
| Returns a scalar mapped from pixels to points for the current Window. | |
| Vec2f | cinder::app::toPoints (Vec2f s) |
| Returns a Vec2f mapped from pixels to points for the current Window. | |
| Area | cinder::app::toPoints (const Area &a) |
| Returns an Area mapped from pixels to points for the current Window. | |
| Rectf | cinder::app::toPoints (const Rectf &a) |
| Returns a Rectf mapped from pixels to points for the current Window. | |
| double | cinder::app::getElapsedSeconds () |
| Returns the number seconds which have elapsed since the active App launched. | |
| uint32_t | cinder::app::getElapsedFrames () |
| Returns the number of animation frames which have elapsed since the active App launched. | |
| DataSourceRef | cinder::app::loadResource (const std::string &macPath, int mswID, const std::string &mswType) |
| Returns a DataSource to an application resource. On Mac OS X, macPath is a path relative to the bundle's resources folder. On Windows, mswID and mswType identify the resource as defined the application's .rc file(s). | |
| DataSourceRef | cinder::app::loadResource (const std::string &macPath) |
| Returns a DataSource to an application resource. macPath is a path relative to the bundle's resources folder. | |
| DataSourceRef | cinder::app::loadResource (int mswID, const std::string &mswType) |
| Returns a DataSource to an application resource. mswID and mswType identify the resource as defined the application's .rc file(s). | |
| DataSourceRef | cinder::app::loadAsset (const fs::path &relativePath) |
| Returns a DataSourceRef to the active App's's asset. Throws a AssetLoadExc on failure. | |
| fs::path | cinder::app::getAssetPath (const fs::path &relativePath) |
| Returns a fs::path to the active App's asset. Returns an empty path on failure. | |
| void | cinder::app::addAssetDirectory (const fs::path &dirPath) |
| Adds an absolute path dirPath to the active App's list of directories which are searched for assets. | |
| fs::path | cinder::app::getAppPath () |
| Returns the path to the active App on disk. | |
| fs::path | cinder::app::getOpenFilePath (const fs::path &initialPath="", std::vector< std::string > extensions=std::vector< std::string >()) |
| Presents the user with a file-open dialog and returns the selected file path. | |
| fs::path | cinder::app::getSaveFilePath (const fs::path &initialPath="", std::vector< std::string > extensions=std::vector< std::string >()) |
| Presents the user with a file-save dialog and returns the selected file path. | |
| std::ostream & | cinder::app::console () |
| Returns a reference to an output console, which is an alias to std::cout on the mac, and a wrapper around OutputDebugString on MSW. | |
| Timeline & | cinder::app::timeline () |
| Returns a reference to the active App's Timeline. | |
| Surface | cinder::app::copyWindowSurface () |
| Returns a copy of the current window's contents as a Surface8u. | |
| Surface | cinder::app::copyWindowSurface (const Area &area) |
| Returns a copy of the Area area from the current window's contents as a Surface8u. | |
| void | cinder::app::restoreWindowContext () |
| Restores the current rendering context to be the App's window or the screen in full-screen mode. Generally this is only necessary if the app has display a dialog box or some other external window. | |
| inline::CGContextRef | cinder::app::createWindowCgContext () |
| Returns a CGContextRef for drawing to the Window using CoreGraphics under Cocoa & Cocoa Touch. Assumes your App uses a Renderer2d. | |