45 #include <Cocoa/Cocoa.h> 47 #include <QtGui/QImage> 56 - (id)initWithWidget:(
QWidget *)widget;
58 - (void)setImage:(
QImage *)image;
59 - (void)drawRect:(NSRect)dirtyRect;
63 - (void)handleMouseEvent:(NSEvent *)theEvent;
64 - (void)mouseDown:(NSEvent *)theEvent;
65 - (void)mouseDragged:(NSEvent *)theEvent;
66 - (void)mouseUp:(NSEvent *)theEvent;
67 - (void)mouseMoved:(NSEvent *)theEvent;
68 - (void)mouseEntered:(NSEvent *)theEvent;
69 - (void)mouseExited:(NSEvent *)theEvent;
70 - (void)rightMouseDown:(NSEvent *)theEvent;
71 - (void)rightMouseDragged:(NSEvent *)theEvent;
72 - (void)rightMouseUp:(NSEvent *)theEvent;
73 - (void)otherMouseDown:(NSEvent *)theEvent;
74 - (void)otherMouseDragged:(NSEvent *)theEvent;
75 - (void)otherMouseUp:(NSEvent *)theEvent;
struct CGImage * CGImageRef
The QImage class provides a hardware-independent image representation that allows direct access to th...
Qt::MouseButtons m_buttons