mirror of https://github.com/bsnes-emu/bsnes.git
30 lines
612 B
C++
30 lines
612 B
C++
#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<NSDraggingInfo>)sender;
|
|
-(BOOL) performDragOperation:(id<NSDraggingInfo>)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
|