12 #ifndef ROOT_QuartzWindow
13 #define ROOT_QuartzWindow
15 #include <Cocoa/Cocoa.h>
30 @property (nonatomic, assign)NSPoint
start1;
31 @property (nonatomic, assign)NSPoint
end1;
33 @property (nonatomic, assign)NSPoint
start2;
34 @property (nonatomic, assign)NSPoint
end2;
44 - (instancetype)
init;
67 - (
id) initWithContentRect : (NSRect) contentRect styleMask : (NSUInteger) windowStyle
68 backing : (NSBackingStoreType) bufferingType defer : (BOOL) deferCreation
81 - (
void) setFIsDeleted : (BOOL) deleted;
84 - (
void) forwardInvocation : (NSInvocation *) anInvocation;
85 - (NSMethodSignature*) methodSignatureForSelector : (
SEL) selector;
92 @property (nonatomic, assign)
QuartzImage *fShapeCombineMask;
98 - (BOOL) fIsOpenGLWidget;
99 - (CGFloat) fScaleFactor;
106 - (unsigned) fHeight;
108 - (
void) setDrawableSize : (NSSize) newSize;
109 - (
void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
110 - (
void) setX : (
int) x Y : (
int) y;
114 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
116 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
119 - (
void) addCrosshairWindow;
120 - (
void) adjustCrosshairWindowGeometry;
122 - (
void) removeCrosshairWindow;
129 @property (nonatomic, assign)
unsigned long fBackgroundPixel;
130 @property (nonatomic, readonly)
int fMapState;
135 @property (nonatomic, assign) BOOL fHasFocus;
152 - (
void) mapSubwindows;
153 - (
void) unmapWindow;
168 - (unichar) fKeyCode;
170 - (
id) initWithKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
171 - (BOOL) matchKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
172 - (BOOL) matchKey : (unichar) keyCode;
224 @property (nonatomic, assign)
unsigned fID;
227 - (BOOL) fIsOpenGLWidget;
228 - (CGFloat) fScaleFactor;
230 @property (nonatomic, assign) CGContextRef fContext;
236 - (unsigned) fHeight;
237 - (
void) setDrawableSize : (NSSize) newSize;
238 - (
void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
239 - (
void) setX : (
int) x Y : (
int) y;
242 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
243 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
250 @property (nonatomic, assign)
long fEventMask;
251 @property (nonatomic, assign)
int fClass;
252 @property (nonatomic, assign)
int fDepth;
253 @property (nonatomic, assign)
int fBitGravity;
254 @property (nonatomic, assign)
int fWinGravity;
255 @property (nonatomic, assign)
unsigned long fBackgroundPixel;
256 @property (nonatomic, retain)
QuartzImage *fBackgroundPixmap;
257 @property (nonatomic, readonly)
int fMapState;
258 @property (nonatomic, assign) BOOL fOverrideRedirect;
263 @property (nonatomic, assign) BOOL fHasFocus;
266 @property (nonatomic, retain)
QuartzPixmap *fBackBuffer;
267 @property (nonatomic, assign)
QuartzView *fParentView;
271 @property (nonatomic, assign)
int fPassiveGrabButton;
272 @property (nonatomic, assign)
unsigned fPassiveGrabEventMask;
273 @property (nonatomic, assign)
unsigned fPassiveGrabKeyModifiers;
275 @property (nonatomic, assign) BOOL fPassiveGrabOwnerEvents;
277 - (
void) activatePassiveGrab;
278 - (
void) activateImplicitGrab;
279 - (
void) activateGrab : (
unsigned) eventMask ownerEvents : (BOOL) ownerEvents;
282 - (BOOL) acceptsCrossingEvents : (
unsigned) eventMask;
293 - (
void) mapSubwindows;
295 - (
void) unmapWindow;
297 - (
void) raiseWindow;
298 - (
void) lowerWindow;
300 - (BOOL) fIsOverlapped;
301 - (
void) setOverlapped : (BOOL) overlap;
302 - (
void) configureNotifyTree;
306 @property (nonatomic, assign) BOOL fSnapshotDraw;
310 - (
void) addPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
311 - (
void) removePassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
312 - (
PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
316 @property (nonatomic, assign)
ECursor fCurrentCursor;
319 - (
void) setProperty : (const
char *) propName data : (
unsigned char *) propData size : (
unsigned) dataSize
320 forType : (
Atom_t) dataType format : (
unsigned) format;
321 - (BOOL) hasProperty : (const
char *) propName;
322 - (
unsigned char *) getProperty : (const
char *) propName returnType : (
Atom_t *) type
323 returnFormat : (
unsigned *) format nElements : (
unsigned *) nElements;
324 - (
void) removeProperty : (const
char *) propName;
327 @property (nonatomic, assign) BOOL fIsDNDAware;
329 - (NSDragOperation) draggingEntered : (
id<NSDraggingInfo>) sender;
330 - (BOOL) performDragOperation : (
id<NSDraggingInfo>) sender;