12 #ifndef ROOT_X11Drawable
13 #define ROOT_X11Drawable
15 #include <Cocoa/Cocoa.h>
21 @class PassiveKeyGrab;
37 @property (nonatomic, assign)
unsigned fID;
43 - (BOOL) fIsOpenGLWidget;
44 - (CGFloat) fScaleFactor;
48 @property (nonatomic, readonly) CGContextRef fContext;
57 - (void) copy : (NSObject<X11Drawable> *) src area : (ROOT::MacOSX::X11::Rectangle) area withMask : (QuartzImage *)mask
58 clipOrigin : (ROOT::MacOSX::X11::Point) origin toPoint : (ROOT::MacOSX::X11::Point) dstPoint;
61 - (
unsigned char *) readColorBits : (ROOT::MacOSX::X11::Rectangle) area;
65 @protocol X11Window <X11Drawable>
69 - (void) setDrawableSize : (NSSize) newSize;
70 - (void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
71 - (void) setX : (
int) x Y : (
int) y;
81 @property (nonatomic, assign)
long fEventMask;
82 @property (nonatomic, assign)
int fClass;
83 @property (nonatomic, assign)
int fDepth;
84 @property (nonatomic, assign)
int fBitGravity;
85 @property (nonatomic, assign)
int fWinGravity;
86 @property (nonatomic, assign)
unsigned long fBackgroundPixel;
87 @property (nonatomic, retain) QuartzImage *fBackgroundPixmap;
88 @property (nonatomic, readonly)
int fMapState;
89 @property (nonatomic, assign) BOOL fOverrideRedirect;
95 @property (nonatomic, assign) BOOL fHasFocus;
98 @property (nonatomic, retain) QuartzPixmap *fBackBuffer;
100 @property (nonatomic, assign) QuartzView *fParentView;
103 @property (nonatomic, readonly) NSView<X11Window> *fContentView;
104 @property (nonatomic, readonly) QuartzWindow *fQuartzWindow;
110 @property (nonatomic, assign)
int fPassiveGrabButton;
111 @property (nonatomic, assign)
unsigned fPassiveGrabEventMask;
112 @property (nonatomic, assign)
unsigned fPassiveGrabKeyModifiers;
114 @property (nonatomic, assign)
unsigned fActiveGrabEventMask;
116 @property (nonatomic, assign) BOOL fPassiveGrabOwnerEvents;
118 - (void) activatePassiveGrab;
119 - (void) activateImplicitGrab;
120 - (void) activateGrab : (
unsigned) eventMask ownerEvents : (BOOL) ownerEvents;
123 - (BOOL) acceptsCrossingEvents : (
unsigned) eventMask;
128 - (void) addChild : (NSView<X11Window> *) child;
131 - (void) getAttributes : (WindowAttributes_t *) attr;
132 - (void) setAttributes : (const SetWindowAttributes_t *) attr;
137 - (void) mapSubwindows;
138 - (void) unmapWindow;
139 - (void) raiseWindow;
140 - (void) lowerWindow;
142 - (BOOL) fIsOverlapped;
143 - (void) setOverlapped : (BOOL) overlap;
144 - (void) configureNotifyTree;
146 - (void) addPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
147 - (void) removePassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
148 - (PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
149 - (PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode;
152 @property (nonatomic, assign) ECursor fCurrentCursor;
154 @property (nonatomic, assign) BOOL fIsDNDAware;
157 - (void) setProperty : (const
char *) propName data : (
unsigned char *) propData size : (
unsigned) dataSize
158 forType : (Atom_t) dataType format : (
unsigned) format;
159 - (BOOL) hasProperty : (const
char *) propName;
160 - (
unsigned char *) getProperty : (const
char *) propName returnType : (Atom_t *) type
161 returnFormat : (
unsigned *) format nElements : (
unsigned *) nElements;
162 - (void) removeProperty : (const
char *) propName;