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

#include <AppImplMsw.h>

Inherited by cinder::app::WindowImplMswBasic, and cinder::app::WindowImplMswScreenSaver.

Public Member Functions

 WindowImplMsw (const Window::Format &format, RendererRef sharedRenderer, AppImplMsw *appImpl)
 
 WindowImplMsw (HWND hwnd, RendererRef renderer, RendererRef sharedRenderer, AppImplMsw *appImpl)
 
virtual ~WindowImplMsw ()
 
virtual bool isFullScreen ()
 
virtual void setFullScreen (bool fullScreen, const app::FullScreenOptions &options)
 
virtual ivec2 getSize () const
 
virtual void setSize (const ivec2 &size)
 
virtual ivec2 getPos () const
 
virtual void setPos (const ivec2 &pos)
 
virtual void close ()
 
virtual std::string getTitle () const
 
virtual void setTitle (const std::string &title)
 
virtual void hide ()
 
virtual void show ()
 
virtual bool isHidden () const
 
virtual DisplayRef getDisplay () const
 
virtual RendererRef getRenderer () const
 
virtual const std::vector< TouchEvent::Touch > & getActiveTouches () const
 
virtual void * getNative ()
 
void enableMultiTouch ()
 
bool isBorderless () const
 
void setBorderless (bool borderless)
 
bool isAlwaysOnTop () const
 
void setAlwaysOnTop (bool alwaysOnTop)
 
AppImplMswgetAppImpl ()
 
WindowRef getWindow ()
 
virtual void keyDown (const KeyEvent &event)
 
virtual void draw ()
 
virtual void redraw ()
 
virtual void resize ()
 
void privateClose ()
 

Protected Member Functions

void setWindowStyleValues ()
 
void createWindow (const ivec2 &windowSize, const std::string &title, DisplayRef display, RendererRef sharedRenderer)
 
void completeCreation ()
 
void getScreenSize (int clientWidth, int clientHeight, int *resultWidth, int *resultHeight)
 
void onTouch (HWND hWnd, WPARAM wParam, LPARAM lParam)
 
virtual void toggleFullScreen (const app::FullScreenOptions &options)
 

Static Protected Member Functions

static void registerWindowClass ()
 

Protected Attributes

AppImplMswmAppImpl
 
WindowRef mWindowRef
 
HWND mWnd
 
HDC mDC
 
DWORD mWindowStyle
 
DWORD mWindowExStyle
 
ivec2 mWindowOffset
 
bool mHidden
 
int mWindowWidth
 
int mWindowHeight
 
bool mFullScreen
 
bool mBorderless
 
bool mAlwaysOnTop
 
bool mResizable
 
ivec2 mWindowedPos
 
ivec2 mWindowedSize
 
DisplayRef mDisplay
 
RendererRef mRenderer
 
std::map< DWORD, vec2 > mMultiTouchPrev
 
std::vector< TouchEvent::TouchmActiveTouches
 
bool mIsDragging
 
friend AppImplMsw
 

Friends

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)
 

Constructor & Destructor Documentation

cinder::app::WindowImplMsw::WindowImplMsw ( const Window::Format format,
RendererRef  sharedRenderer,
AppImplMsw appImpl 
)
cinder::app::WindowImplMsw::WindowImplMsw ( HWND  hwnd,
RendererRef  renderer,
RendererRef  sharedRenderer,
AppImplMsw appImpl 
)
virtual cinder::app::WindowImplMsw::~WindowImplMsw ( )
virtual

Member Function Documentation

virtual bool cinder::app::WindowImplMsw::isFullScreen ( )
virtual
void cinder::app::WindowImplMsw::setFullScreen ( bool  fullScreen,
const app::FullScreenOptions options 
)
virtual
virtual ivec2 cinder::app::WindowImplMsw::getSize ( ) const
virtual
void cinder::app::WindowImplMsw::setSize ( const ivec2 &  size)
virtual
virtual ivec2 cinder::app::WindowImplMsw::getPos ( ) const
virtual
void cinder::app::WindowImplMsw::setPos ( const ivec2 &  pos)
virtual
void cinder::app::WindowImplMsw::close ( )
virtual
std::string cinder::app::WindowImplMsw::getTitle ( ) const
virtual
void cinder::app::WindowImplMsw::setTitle ( const std::string &  title)
virtual
void cinder::app::WindowImplMsw::hide ( )
virtual
void cinder::app::WindowImplMsw::show ( )
virtual
bool cinder::app::WindowImplMsw::isHidden ( ) const
virtual
virtual DisplayRef cinder::app::WindowImplMsw::getDisplay ( ) const
virtual
virtual RendererRef cinder::app::WindowImplMsw::getRenderer ( ) const
virtual
virtual const std::vector<TouchEvent::Touch>& cinder::app::WindowImplMsw::getActiveTouches ( ) const
virtual
virtual void* cinder::app::WindowImplMsw::getNative ( )
virtual
void cinder::app::WindowImplMsw::enableMultiTouch ( )
bool cinder::app::WindowImplMsw::isBorderless ( ) const
void cinder::app::WindowImplMsw::setBorderless ( bool  borderless)
bool cinder::app::WindowImplMsw::isAlwaysOnTop ( ) const
void cinder::app::WindowImplMsw::setAlwaysOnTop ( bool  alwaysOnTop)
AppImplMsw* cinder::app::WindowImplMsw::getAppImpl ( )
WindowRef cinder::app::WindowImplMsw::getWindow ( )
void cinder::app::WindowImplMsw::keyDown ( const KeyEvent event)
virtual
void cinder::app::WindowImplMsw::draw ( )
virtual
void cinder::app::WindowImplMsw::redraw ( )
virtual
void cinder::app::WindowImplMsw::resize ( )
virtual
void cinder::app::WindowImplMsw::privateClose ( )
void cinder::app::WindowImplMsw::setWindowStyleValues ( )
protected

Sets 'mWindowStyle' and 'mWindowExStyle' based on 'mFullScreen' and 'mBorderless'.

void cinder::app::WindowImplMsw::createWindow ( const ivec2 &  windowSize,
const std::string &  title,
DisplayRef  display,
RendererRef  sharedRenderer 
)
protected
void cinder::app::WindowImplMsw::completeCreation ( )
protected
void cinder::app::WindowImplMsw::registerWindowClass ( )
staticprotected
void cinder::app::WindowImplMsw::getScreenSize ( int  clientWidth,
int  clientHeight,
int *  resultWidth,
int *  resultHeight 
)
protected
void cinder::app::WindowImplMsw::onTouch ( HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
)
protected
void cinder::app::WindowImplMsw::toggleFullScreen ( const app::FullScreenOptions options)
protectedvirtual

Friends And Related Function Documentation

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

Member Data Documentation

AppImplMsw* cinder::app::WindowImplMsw::mAppImpl
protected
WindowRef cinder::app::WindowImplMsw::mWindowRef
protected
HWND cinder::app::WindowImplMsw::mWnd
protected
HDC cinder::app::WindowImplMsw::mDC
protected
DWORD cinder::app::WindowImplMsw::mWindowStyle
protected
DWORD cinder::app::WindowImplMsw::mWindowExStyle
protected
ivec2 cinder::app::WindowImplMsw::mWindowOffset
protected
bool cinder::app::WindowImplMsw::mHidden
protected
int cinder::app::WindowImplMsw::mWindowWidth
protected
int cinder::app::WindowImplMsw::mWindowHeight
protected
bool cinder::app::WindowImplMsw::mFullScreen
protected
bool cinder::app::WindowImplMsw::mBorderless
protected
bool cinder::app::WindowImplMsw::mAlwaysOnTop
protected
bool cinder::app::WindowImplMsw::mResizable
protected
ivec2 cinder::app::WindowImplMsw::mWindowedPos
protected
ivec2 cinder::app::WindowImplMsw::mWindowedSize
protected
DisplayRef cinder::app::WindowImplMsw::mDisplay
protected
RendererRef cinder::app::WindowImplMsw::mRenderer
protected
std::map<DWORD,vec2> cinder::app::WindowImplMsw::mMultiTouchPrev
protected
std::vector<TouchEvent::Touch> cinder::app::WindowImplMsw::mActiveTouches
protected
bool cinder::app::WindowImplMsw::mIsDragging
protected
friend cinder::app::WindowImplMsw::AppImplMsw
protected

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