Cinder  0.9.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::app::AppImplMswScreenSaver Class Reference

#include <AppImplMswScreenSaver.h>

Inherits cinder::app::AppImplMsw.

Public Member Functions

 AppImplMswScreenSaver (AppScreenSaver *app, HWND wnd, const AppScreenSaver::Settings &settings)
 
virtual ~AppImplMswScreenSaver ()
 
void init (HWND aWnd)
 
void run ()
 
void quit () override
 
void setFrameRate (float frameRate) override
 
LRESULT eventHandler (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 
WindowRef getWindow () const override
 
size_t getNumWindows () const
 
WindowRef getWindowIndex (size_t index) const
 
bool isPreview () const
 
void closeWindow (class WindowImplMsw *windowImpl) override
 
void setForegroundWindow (WindowRef window) override
 
class AppBasegetApp ()
 
float getFrameRate () const
 
void setWindow (WindowRef window)
 

Static Public Member Functions

static void hideCursor ()
 
static void showCursor ()
 
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

bool setupHasBeenCalled () const
 

Protected Attributes

AppScreenSavermApp
 
bool mPreview
 
float mFrameRate
 
bool mDebugMode
 
std::list< WindowImplMswScreenSaver * > mWindows
 
std::list< BlankingWindowRefmBlankingWindows
 
WindowRef mActiveWindow
 
bool mSetupHasBeenCalled
 
bool mNeedsToRefreshDisplays
 
bool mActive
 
ULONG_PTR mGdiplusToken
 

Constructor & Destructor Documentation

cinder::app::AppImplMswScreenSaver::AppImplMswScreenSaver ( AppScreenSaver app,
HWND  wnd,
const AppScreenSaver::Settings settings 
)
virtual cinder::app::AppImplMswScreenSaver::~AppImplMswScreenSaver ( )
virtual

Member Function Documentation

void cinder::app::AppImplMswScreenSaver::init ( HWND  aWnd)
void cinder::app::AppImplMswScreenSaver::run ( )
void cinder::app::AppImplMswScreenSaver::quit ( )
overridevirtual

do nothing, we can't really force a quit

Implements cinder::app::AppImplMsw.

void cinder::app::AppImplMswScreenSaver::setFrameRate ( float  frameRate)
overridevirtual

do nothing, can't control frame rate

Implements cinder::app::AppImplMsw.

LRESULT cinder::app::AppImplMswScreenSaver::eventHandler ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
WindowRef cinder::app::AppImplMswScreenSaver::getWindow ( ) const
overridevirtual

Reimplemented from cinder::app::AppImplMsw.

size_t cinder::app::AppImplMswScreenSaver::getNumWindows ( ) const

Returns the number of Windows the app has open.

WindowRef cinder::app::AppImplMswScreenSaver::getWindowIndex ( size_t  index) const

Gets a Window by index, in the range [0, getNumWindows()).

bool cinder::app::AppImplMswScreenSaver::isPreview ( ) const
void cinder::app::AppImplMswScreenSaver::closeWindow ( class WindowImplMsw windowImpl)
overridevirtual
void cinder::app::AppImplMswScreenSaver::setForegroundWindow ( WindowRef  window)
overridevirtual
class AppBase* cinder::app::AppImplMsw::getApp ( )
inherited
float cinder::app::AppImplMsw::getFrameRate ( ) const
inherited
void cinder::app::AppImplMsw::setWindow ( WindowRef  window)
inherited
void cinder::app::AppImplMsw::hideCursor ( )
staticinherited
void cinder::app::AppImplMsw::showCursor ( )
staticinherited
fs::path cinder::app::AppImplMsw::getOpenFilePath ( const fs::path &  initialPath,
std::vector< std::string >  extensions 
)
staticinherited
fs::path cinder::app::AppImplMsw::getSaveFilePath ( const fs::path &  initialPath,
std::vector< std::string >  extensions 
)
staticinherited
fs::path cinder::app::AppImplMsw::getFolderPath ( const fs::path &  initialPath)
staticinherited
bool cinder::app::AppImplMsw::setupHasBeenCalled ( ) const
protectedinherited

Member Data Documentation

AppScreenSaver* cinder::app::AppImplMswScreenSaver::mApp
protected
bool cinder::app::AppImplMswScreenSaver::mPreview
protected
float cinder::app::AppImplMswScreenSaver::mFrameRate
protected
bool cinder::app::AppImplMswScreenSaver::mDebugMode
protected
std::list<WindowImplMswScreenSaver*> cinder::app::AppImplMswScreenSaver::mWindows
protected
std::list<BlankingWindowRef> cinder::app::AppImplMswScreenSaver::mBlankingWindows
protected
WindowRef cinder::app::AppImplMsw::mActiveWindow
protectedinherited
bool cinder::app::AppImplMsw::mSetupHasBeenCalled
protectedinherited
bool cinder::app::AppImplMsw::mNeedsToRefreshDisplays
protectedinherited
bool cinder::app::AppImplMsw::mActive
protectedinherited
ULONG_PTR cinder::app::AppImplMsw::mGdiplusToken
protectedinherited

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