#if defined(Hiro_Viewport) @interface CocoaViewport : NSView { @public hiro::mViewport* viewport; } -(id) initWith:(hiro::mViewport&)viewport; -(void) drawRect:(NSRect)rect; -(BOOL) acceptsFirstResponder; -(NSDragOperation) draggingEntered:(id)sender; -(BOOL) performDragOperation:(id)sender; -(void) keyDown:(NSEvent*)event; -(void) keyUp:(NSEvent*)event; @end namespace hiro { struct pViewport : pWidget { Declare(Viewport, Widget) auto handle() const -> uintptr_t; auto setDroppable(bool droppable) -> void; CocoaViewport* cocoaViewport = nullptr; }; } #endif