47 namespace cinder {
namespace app {
58 virtual void quit() = 0;
69 static void getOpenFilePath(
const fs::path &initialPath =
"", std::vector<std::string> extensions = std::vector<std::string>(), std::function<
void (fs::path)>
f =
nullptr );
71 static void getSaveFilePath(
const fs::path &initialPath, std::vector<std::string> extensions, std::function<
void (fs::path)>
f =
nullptr );
72 static void getFolderPath(
const fs::path &initialPath, std::vector<std::string> extensions, std::function<
void (fs::path)>
f =
nullptr );
74 virtual void handleKeyDown(Windows::UI::Core::KeyEventArgs^ args);
75 virtual void handleKeyUp(Windows::UI::Core::KeyEventArgs^ args);
106 virtual void close();
138 void getScreenSize(
int clientWidth,
int clientHeight,
int *resultWidth,
int *resultHeight );
149 void handleTouchUp(Windows::UI::Core::PointerEventArgs^ args);
150 void handleMouseUp(Windows::UI::Core::PointerEventArgs^ args);
std::map< DWORD, DWORD > mTouchIds
Definition: AppImplWinRT.h:167
bool mHidden
Definition: AppImplWinRT.h:157
DX_WINDOW_TYPE mWnd
Definition: AppImplWinRT.h:155
bool mIsMultiTouchEnabled
Definition: AppImplWinRT.h:165
Vec2i mWindowOffset
Definition: AppImplWinRT.h:156
static void getFolderPath(const fs::path &initialPath, std::vector< std::string > extensions, std::function< void(fs::path)> f=nullptr)
Definition: AppImplWinRT.cpp:140
std::vector< TouchEvent::Touch > mActiveTouches
Definition: AppImplWinRT.h:168
virtual WindowRef getWindow() const
Definition: AppImplWinRT.h:60
WindowRef mActiveWindow
Definition: AppImplWinRT.h:85
bool isAlwaysOnTop() const
Definition: AppImplWinRT.h:123
bool mResizable
Definition: AppImplWinRT.h:159
bool mControlKey
Definition: AppImplWinRT.h:89
virtual void closeWindow(class WindowImplWinRT *windowImpl)=0
GLsizei const GLchar ** string
Definition: GLee.h:2427
float mFrameRate
Definition: AppImplWinRT.h:84
Options passed when entering fullscreen.
Definition: Window.h:110
virtual bool isHidden() const
Definition: AppImplWinRT.cpp:372
virtual DisplayRef getDisplay() const
Definition: AppImplWinRT.h:112
virtual void setSize(const Vec2i &size)
Definition: AppImplWinRT.cpp:387
void getScreenSize(int clientWidth, int clientHeight, int *resultWidth, int *resultHeight)
Definition: AppImplWinRT.cpp:330
AppImplWinRT * getAppImpl()
Definition: AppImplWinRT.h:126
AppImplWinRT(class App *aApp)
Definition: AppImplWinRT.cpp:76
float getFrameRate() const
Definition: AppImplWinRT.h:56
virtual void * getNative()
Definition: AppImplWinRT.h:115
static fs::path getAppPath()
Definition: AppImplWinRT.cpp:131
virtual void setFullScreen(bool fullScreen, const FullScreenOptions &options)
Definition: AppImplWinRT.cpp:319
bool mAltKey
Definition: AppImplWinRT.h:87
static void hideCursor()
Definition: AppImplWinRT.cpp:90
virtual ~AppImplWinRT()
Definition: AppImplWinRT.cpp:85
void handleMouseMoved(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:685
virtual void close()
Definition: AppImplWinRT.cpp:393
virtual void setForegroundWindow(WindowRef window)=0
void handleTouchDown(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:636
void privateClose()
Definition: AppImplWinRT.cpp:747
virtual void setPos(const Vec2i &pos)
Definition: AppImplWinRT.cpp:343
static Buffer loadResource(int id, const std::string &type)
Definition: AppImplWinRT.cpp:101
virtual void redraw()
Definition: AppImplWinRT.cpp:742
bool mAlwaysOnTop
Definition: AppImplWinRT.h:159
virtual void hide()
Definition: AppImplWinRT.cpp:360
void updateActiveTouches()
virtual void resize()
Definition: AppImplWinRT.cpp:736
std::shared_ptr< Window > WindowRef
Definition: Event.h:49
std::map< DWORD, Vec2f > mMultiTouchPrev
Definition: AppImplWinRT.h:166
virtual void handleKeyUp(Windows::UI::Core::KeyEventArgs^args)
Definition: AppImplWinRT.cpp:562
bool isBorderless() const
Definition: AppImplWinRT.h:121
virtual Vec2i getPos() const
Definition: AppImplWinRT.h:104
static void getOpenFilePath(const fs::path &initialPath="", std::vector< std::string > extensions=std::vector< std::string >(), std::function< void(fs::path)> f=nullptr)
Definition: AppImplWinRT.cpp:172
bool mSetupHasBeenCalled
Definition: AppImplWinRT.h:86
virtual bool isFullScreen()
Definition: AppImplWinRT.h:100
void createWindow(const Vec2i &windowSize, const std::string &title)
Definition: AppImplWinRT.cpp:301
void setAlwaysOnTop(bool alwaysOnTop)
Definition: AppImplWinRT.cpp:586
bool mBorderless
Definition: AppImplWinRT.h:159
void handlePointerMoved(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:626
static void showCursor()
Definition: AppImplWinRT.cpp:95
virtual void keyDown(const KeyEvent &event)
Definition: AppImplWinRT.cpp:722
class App * mApp
Definition: AppImplWinRT.h:83
int mWindowHeight
Definition: AppImplWinRT.h:158
friend AppImplWinRT
Definition: AppImplWinRT.h:172
AppImplWinRT * mAppImpl
Definition: AppImplWinRT.h:153
void enableMultiTouch()
Definition: AppImplWinRT.cpp:400
static void registerWindowClass()
bool mFullScreen
Definition: AppImplWinRT.h:159
DWORD mTouchId
Definition: AppImplWinRT.h:169
virtual Vec2i getSize() const
Definition: AppImplWinRT.h:102
std::shared_ptr< class Renderer > RendererRef
Definition: Renderer.h:85
void completeCreation()
Definition: AppImplWinRT.cpp:306
void handleMouseDown(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:655
unsigned int prepKeyEventModifiers()
Definition: AppImplMsw.cpp:730
virtual void draw()
Definition: AppImplWinRT.cpp:728
bool mIsDragging
Definition: AppImplWinRT.h:163
DisplayRef mDisplay
Definition: AppImplWinRT.h:161
void setBorderless(bool borderless)
Definition: AppImplWinRT.cpp:520
virtual void handleKeyDown(Windows::UI::Core::KeyEventArgs^args)
Definition: AppImplWinRT.cpp:538
Definition: AppImplWinRT.h:95
void toggleFullScreen()
Definition: AppImplWinRT.cpp:325
virtual std::string getTitle() const
Definition: AppImplWinRT.cpp:377
virtual RendererRef getRenderer() const
Definition: AppImplWinRT.h:113
std::shared_ptr< class Display > DisplayRef
Definition: Display.h:53
virtual void show()
Definition: AppImplWinRT.cpp:366
Window window
Definition: GLee.h:17134
GLuint GLuint GLsizei GLenum type
Definition: GLee.h:963
WindowRef getWindow()
Definition: AppImplWinRT.h:127
Definition: AppImplWinRT.h:49
WindowImplWinRT(const Window::Format &format, AppImplWinRT *appImpl)
Definition: AppImplWinRT.cpp:255
class App * getApp()
Definition: AppImplWinRT.h:54
bool setupHasBeenCalled() const
Definition: AppImplWinRT.h:78
virtual const std::vector< TouchEvent::Touch > & getActiveTouches() const
Definition: AppImplWinRT.h:114
void handleTouchMoved(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:666
void handlePointerUp(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:631
Vec2i mWindowedSize
Definition: AppImplWinRT.h:160
void setWindow(WindowRef window)
Definition: AppImplWinRT.h:61
int mWindowWidth
Definition: AppImplWinRT.h:158
GLenum GLsizei GLenum format
Definition: GLee.h:969
RendererRef mRenderer
Definition: AppImplWinRT.h:162
Vec2i mWindowedPos
Definition: AppImplWinRT.h:160
void handleTouchUp(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:697
void handlePointerDown(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:621
virtual float setFrameRate(float aFrameRate)
Definition: AppImplWinRT.h:57
GLclampf f
Definition: GLee.h:15307
void handleMouseUp(Windows::UI::Core::PointerEventArgs^args)
Definition: AppImplWinRT.cpp:712
Represents a keyboard event.
Definition: KeyEvent.h:32
virtual void setTitle(const std::string &title)
Definition: AppImplWinRT.cpp:382
GLsizeiptr size
Definition: GLee.h:2089
DX_WINDOW_TYPE getNativeCoreWindow()
Definition: AppImplWinRT.h:118
WindowRef mWindowRef
Definition: AppImplWinRT.h:154
bool mShiftKey
Definition: AppImplWinRT.h:88
static void getSaveFilePath(const fs::path &initialPath, std::vector< std::string > extensions, std::function< void(fs::path)> f=nullptr)
Definition: AppImplWinRT.cpp:204
Vec2< int > Vec2i
Definition: Vector.h:1313
std::string mTitle
Definition: AppImplWinRT.h:171