Debian Codegraph @

hiro/cocoa/widget/viewport.hpp

raw
1 #if defined(Hiro_Viewport)
2
3 @interface CocoaViewport : NSView {
4 @public
5 hiro::mViewport* viewport;
6 }
7 -(id) initWith:(hiro::mViewport&)viewport;
8 -(void) resetCursorRects;
9 -(void) drawRect:(NSRect)rect;
10 -(BOOL) acceptsFirstResponder;
11 -(NSDragOperation) draggingEntered:(id<NSDraggingInfo>)sender;
12 -(BOOL) performDragOperation:(id<NSDraggingInfo>)sender;
13 -(void) keyDown:(NSEvent*)event;
14 -(void) keyUp:(NSEvent*)event;
15 @end
16
17 namespace hiro {
18
19 struct pViewport : pWidget {
20 Declare(Viewport, Widget)
21
22 auto handle() const -> uintptr_t;
23 auto setDroppable(bool droppable) -> void override;
24 auto setFocusable(bool focusable) -> void override;
25
26 CocoaViewport* cocoaViewport = nullptr;
27 };
28
29 }
30
31 #endif