29 #import <AppKit/NSView.h>
30 #import <Foundation/Foundation.h>
31 #import <AppKit/NSTouch.h>
40 - (
void)mouseDown:(cinder::app::MouseEvent*)event;
41 - (
void)mouseDrag:(cinder::app::MouseEvent*)event;
42 - (
void)mouseUp:(cinder::app::MouseEvent*)event;
43 - (
void)mouseMove:(cinder::app::MouseEvent*)event;
44 - (
void)mouseWheel:(cinder::app::MouseEvent*)event;
45 - (
void)keyDown:(cinder::app::KeyEvent*)event;
46 - (
void)keyUp:(cinder::app::KeyEvent*)event;
47 - (
void)touchesBegan:(cinder::app::TouchEvent*)event;
48 - (
void)touchesMoved:(cinder::app::TouchEvent*)event;
49 - (
void)touchesEnded:(cinder::app::TouchEvent*)event;
50 - (
void)fileDrop:(cinder::app::FileDropEvent*)event;
51 - (cinder::app::WindowRef)getWindowRef;
58 BOOL mFullScreenModeKiosk;
63 float mContentScaleFactor;
65 NSMutableDictionary *mTouchIdMap;
66 std::map<uint32_t,cinder::Vec2f> mTouchPrevPointMap;
67 std::vector<cinder::app::TouchEvent::Touch> mActiveTouches;
71 @property (readwrite) BOOL readyToDraw;
72 @property (readwrite) BOOL receivesEvents;
74 - (
id)initWithFrame:(NSRect)frame app:(cinder::app::App*)aApp renderer:(cinder::app::
RendererRef)aRenderer sharedRenderer:(cinder::app::
RendererRef)sharedRenderer;
75 - (
void)setupRendererWithFrame:(NSRect)frame renderer:(cinder::app::
RendererRef)renderer sharedRenderer:(cinder::app::
RendererRef)sharedRenderer;
79 - (
void)
setFullScreen:(BOOL)fullScreen options:(const cinder::app::FullScreenOptions *)options;
82 - (
void)makeCurrentContext;
85 - (
void)setApp:(cinder::app::App *)aApp;
87 - (
void)applicationWillResignActive:(NSNotification *)aNotification;
89 - (cinder::app::RendererRef)getRenderer;
91 - (uint32_t)addTouchToMap:(NSTouch *)touch withPoint:(cinder::
Vec2f)point;
92 - (
void)removeTouchFromMap:(NSTouch *)touch;
93 - (std::pair<uint32_t,cinder::Vec2f>)updateTouch:(NSTouch *)touch withPoint:(cinder::
Vec2f)point;
94 - (
void)updateActiveTouches:(NSEvent *)event;
95 - (const std::vector<cinder::app::TouchEvent::Touch>&)getActiveTouches;
97 - (float)contentScaleFactor;
Vec2< float > Vec2f
Definition: Vector.h:1314
typedef void(APIENTRYP GLEEPFNGLBLENDCOLORPROC)(GLclampf red
BOOL isFullScreen()
Definition: AppCocoaTouch.mm:969
void resize()
Definition: AppCocoaTouch.mm:1075
std::shared_ptr< class Renderer > RendererRef
Definition: Renderer.h:85
GLXDrawable draw
Definition: GLee.h:16766
GLuint id
Definition: GLee.h:2035
Definition: CinderView.h:36
Definition: CinderView.h:54
void setFullScreen(bool fullScreen=true)
Sets whether the active App is in full-screen mode based on fullScreen.
Definition: App.h:607