Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
cinder::app::AppImplMswBasic Class Reference

#include <AppImplMswBasic.h>

Inherits cinder::app::AppImplMsw.

List of all members.

Public Member Functions

 AppImplMswBasic (class AppBasic *aApp)
void run ()
class AppBasic * getApp ()
void quit ()
void setWindowPos (const Vec2i &aWindowPos)
void setWindowWidth (int aWindowWidth)
void setWindowHeight (int aWindowHeight)
void setWindowSize (int aWindowWidth, int aWindowHeight)
float setFrameRate (float aFrameRate)
void toggleFullScreen ()
void setBorderless (bool borderless)
void setAlwaysOnTop (bool alwaysOnTop)
std::string getAppPath () const
DisplaygetDisplay ()
Vec2i getWindowPos () const
int getWindowWidth () const
int getWindowHeight () const
float getFrameRate () const
bool isFullScreen () const
bool isBorderless () const
bool isAlwaysOnTop () const
virtual Vec2i mouseLocation ()
virtual void privateSetWindowOffset__ (const Vec2i &aWindowOffset)

Static Public Member Functions

static void hideCursor ()
static void showCursor ()
static Buffer loadResource (int id, const std::string &type)
static fs::path getAppPath ()
static fs::path getOpenFilePath (const fs::path &initialPath, std::vector< std::string > extensions)
static fs::path getSaveFilePath (const fs::path &initialPath, std::vector< std::string > extensions)
static fs::path getFolderPath (const fs::path &initialPath)

Protected Member Functions

void sleep (double seconds)
bool createWindow (int *width, int *height)
void killWindow (bool wasFullScreen)
void enableMultiTouch ()
void getScreenSize (int clientWidth, int clientHeight, int *resultWidth, int *resultHeight)
void onTouch (HWND hWnd, WPARAM wParam, LPARAM lParam)

Protected Attributes

bool mShouldQuit
bool mIsDragging
bool mHasBeenInitialized
class AppBasic * mApp
HWND mWnd
HDC mDC
HINSTANCE mInstance
DWORD mWindowStyle
DWORD mWindowExStyle
Vec2i mWindowedPos
double mNextFrameTime
DisplaymDisplay
std::map< DWORD, Vec2fmMultiTouchPrev
int mWindowWidth
int mWindowHeight
bool mFullScreen
bool mBorderless
bool mAlwaysOnTop
Vec2i mWindowOffset
float mFrameRate
ULONG_PTR mGdiplusToken

Friends

LRESULT CALLBACK WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

Constructor & Destructor Documentation


Member Function Documentation

void cinder::app::AppImplMswBasic::setWindowPos ( const Vec2i aWindowPos)
void cinder::app::AppImplMswBasic::setWindowWidth ( int  aWindowWidth) [virtual]

Reimplemented from cinder::app::AppImplMsw.

void cinder::app::AppImplMswBasic::setWindowHeight ( int  aWindowHeight) [virtual]

Reimplemented from cinder::app::AppImplMsw.

void cinder::app::AppImplMswBasic::setWindowSize ( int  aWindowWidth,
int  aWindowHeight 
) [virtual]

Reimplemented from cinder::app::AppImplMsw.

float cinder::app::AppImplMswBasic::setFrameRate ( float  aFrameRate) [virtual]

Reimplemented from cinder::app::AppImplMsw.

Reimplemented from cinder::app::AppImplMsw.

void cinder::app::AppImplMswBasic::sleep ( double  seconds) [protected]
bool cinder::app::AppImplMswBasic::createWindow ( int *  width,
int *  height 
) [protected]
void cinder::app::AppImplMswBasic::killWindow ( bool  wasFullScreen) [protected]
void cinder::app::AppImplMswBasic::getScreenSize ( int  clientWidth,
int  clientHeight,
int *  resultWidth,
int *  resultHeight 
) [protected]
void cinder::app::AppImplMswBasic::onTouch ( HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
) [protected]
int cinder::app::AppImplMsw::getWindowWidth ( ) const [inherited]
int cinder::app::AppImplMsw::getWindowHeight ( ) const [inherited]
float cinder::app::AppImplMsw::getFrameRate ( ) const [inherited]
bool cinder::app::AppImplMsw::isFullScreen ( ) const [inherited]
bool cinder::app::AppImplMsw::isBorderless ( ) const [inherited]
bool cinder::app::AppImplMsw::isAlwaysOnTop ( ) const [inherited]
virtual void cinder::app::AppImplMsw::privateSetWindowOffset__ ( const Vec2i aWindowOffset) [virtual, inherited]
void cinder::app::AppImplMsw::hideCursor ( ) [static, inherited]
void cinder::app::AppImplMsw::showCursor ( ) [static, inherited]
Buffer cinder::app::AppImplMsw::loadResource ( int  id,
const std::string &  type 
) [static, inherited]
fs::path cinder::app::AppImplMsw::getAppPath ( ) [static, inherited]
fs::path cinder::app::AppImplMsw::getOpenFilePath ( const fs::path &  initialPath,
std::vector< std::string >  extensions 
) [static, inherited]
fs::path cinder::app::AppImplMsw::getSaveFilePath ( const fs::path &  initialPath,
std::vector< std::string >  extensions 
) [static, inherited]
fs::path cinder::app::AppImplMsw::getFolderPath ( const fs::path &  initialPath) [static, inherited]

Friends And Related Function Documentation

LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
) [friend]

Member Data Documentation

class AppBasic* cinder::app::AppImplMswBasic::mApp [protected]

Reimplemented from cinder::app::AppImplMsw.

int cinder::app::AppImplMsw::mWindowWidth [protected, inherited]
int cinder::app::AppImplMsw::mWindowHeight [protected, inherited]
bool cinder::app::AppImplMsw::mFullScreen [protected, inherited]
bool cinder::app::AppImplMsw::mBorderless [protected, inherited]
bool cinder::app::AppImplMsw::mAlwaysOnTop [protected, inherited]
float cinder::app::AppImplMsw::mFrameRate [protected, inherited]
ULONG_PTR cinder::app::AppImplMsw::mGdiplusToken [protected, inherited]

The documentation for this class was generated from the following files: