12 #ifndef ROOT_QuartzWindow 13 #define ROOT_QuartzWindow 15 #include <Cocoa/Cocoa.h> 42 - (id) initWithContentRect : (NSRect) contentRect styleMask : (NSUInteger) windowStyle
43 backing : (NSBackingStoreType) bufferingType defer : (BOOL) deferCreation
56 - (
void) setFIsDeleted : (BOOL) deleted;
59 - (
void) forwardInvocation : (NSInvocation *) anInvocation;
60 - (NSMethodSignature*) methodSignatureForSelector : (
SEL) selector;
82 - (
void) setDrawableSize : (NSSize) newSize;
83 - (
void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
84 - (
void) setX : (
int) x Y : (
int) y;
88 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
90 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
103 @property (nonatomic, assign) BOOL
fHasFocus;
111 - (
void) addChild : (NSView<X11Window> *) child;
136 - (unichar) fKeyCode;
137 - (NSUInteger) fModifiers;
138 - (id) initWithKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
139 - (BOOL) matchKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
140 - (BOOL) matchKey : (unichar) keyCode;
192 @property (nonatomic, assign)
unsigned fID;
197 @property (nonatomic, assign) CGContextRef fContext;
204 - (
void) setDrawableSize : (NSSize) newSize;
205 - (
void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
206 - (
void) setX : (
int) x Y : (
int) y;
209 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
210 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
217 @property (nonatomic, assign)
long fEventMask;
218 @property (nonatomic, assign)
int fClass;
219 @property (nonatomic, assign)
int fDepth;
220 @property (nonatomic, assign)
int fBitGravity;
221 @property (nonatomic, assign)
int fWinGravity;
223 @property (nonatomic, retain)
QuartzImage *fBackgroundPixmap;
225 @property (nonatomic, assign) BOOL fOverrideRedirect;
230 @property (nonatomic, assign) BOOL
fHasFocus;
233 @property (nonatomic, retain)
QuartzPixmap *fBackBuffer;
238 @property (nonatomic, assign)
int fPassiveGrabButton;
239 @property (nonatomic, assign)
unsigned fPassiveGrabEventMask;
240 @property (nonatomic, assign)
unsigned fPassiveGrabKeyModifiers;
242 @property (nonatomic, assign) BOOL fPassiveGrabOwnerEvents;
244 - (
void) activatePassiveGrab;
245 - (
void) activateImplicitGrab;
246 - (
void) activateGrab : (
unsigned) eventMask ownerEvents : (BOOL) ownerEvents;
249 - (BOOL) acceptsCrossingEvents : (
unsigned) eventMask;
252 - (
void) addChild : (NSView<X11Window> *)child;
264 - (
void) raiseWindow;
265 - (
void) lowerWindow;
267 - (BOOL) fIsOverlapped;
268 - (
void) setOverlapped : (BOOL) overlap;
269 - (
void) configureNotifyTree;
273 @property (nonatomic, assign) BOOL fSnapshotDraw;
277 - (
void) addPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
278 - (
void) removePassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
279 - (
PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
283 @property (nonatomic, assign)
ECursor fCurrentCursor;
286 - (
void) setProperty : (const
char *) propName data : (
unsigned char *) propData size : (
unsigned) dataSize
287 forType : (
Atom_t) dataType format : (
unsigned) format;
288 - (BOOL) hasProperty : (const
char *) propName;
289 - (
unsigned char *) getProperty : (const
char *) propName returnType : (
Atom_t *) type
290 returnFormat : (
unsigned *) format nElements : (
unsigned *) nElements;
291 - (
void) removeProperty : (const
char *) propName;
294 @property (nonatomic, assign) BOOL fIsDNDAware;
296 - (NSDragOperation) draggingEntered : (
id<NSDraggingInfo>) sender;
297 - (BOOL) performDragOperation : (
id<NSDraggingInfo>) sender;
331 NSPoint
TranslateCoordinates(NSView<X11Window> *fromView, NSView<X11Window> *toView, NSPoint sourcePoint);
int GlobalXCocoaToROOT(CGFloat xCocoa)
QuartzWindow * CreateTopLevelWindow(Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t)
NSView< X11Window > * FindViewForPointerEvent(NSEvent *pointerEvent)
void GetRootWindowAttributes(WindowAttributes_t *attr)
unsigned long fBackgroundPixel
unsigned fPassiveGrabEventMask
bool LockFocus(NSView< X11Window > *view)
Namespace for new ROOT classes and functions.
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
QuartzWindow * fQuartzWindow
QuartzWindow * FindWindowInPoint(Int_t x, Int_t y)
NSView< X11Window > * FindDNDAwareViewInPoint(NSView *parentView, Window_t dragWinID, Window_t inputWinID, Int_t x, Int_t y, Int_t maxDepth)
int LocalYCocoaToROOT(NSView< X11Window > *parentView, CGFloat yCocoa)
QuartzImage * fShapeCombineMask
QuartzPixmap * fBackBuffer
int GlobalYROOTToCocoa(CGFloat yROOT)
NSMutableDictionary * fX11Properties
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
QuartzImage * fBackgroundPixmap
NSPoint ConvertPointFromBaseToScreen(NSWindow *window, NSPoint windowPoint)
QuartzWindow * FindWindowForPointerEvent(NSEvent *pointerEvent)
ROOT::MacOSX::X11::PointerGrab fCurrentGrabType
NSPoint TranslateFromScreen(NSPoint point, NSView< X11Window > *to)
NSPoint ConvertPointFromScreenToBase(NSPoint screenPoint, NSWindow *window)
int GlobalXROOTToCocoa(CGFloat xROOT)
NSView< X11Window > * FindViewUnderPointer()
NSPoint TranslateToScreen(NSView< X11Window > *from, NSPoint point)
int GlobalYCocoaToROOT(CGFloat yCocoa)
bool ViewIsHtmlViewFrame(NSView< X11Window > *view, bool checkParent)
QuartzWindow * FindWindowUnderPointer()
QuartzView * CreateChildView(QuartzView *parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype)
void UnlockFocus(NSView< X11Window > *view)
BOOL fPassiveGrabOwnerEvents
QuartzWindow * fMainWindow
bool ScreenPointIsInView(NSView< X11Window > *view, Int_t x, Int_t y)
void WindowLostFocus(Window_t winID)
int LocalYROOTToCocoa(NSObject< X11Drawable > *parentView, CGFloat yROOT)
void ClipToShapeMask(NSView< X11Window > *view, CGContextRef ctx)
unsigned long fBackgroundPixel
unsigned fPassiveGrabKeyModifiers
typedef void((*Func_t)())
QuartzView * fContentView
BOOL fActiveGrabOwnerEvents
bool ViewIsTextViewFrame(NSView< X11Window > *view, bool checkParent)
unsigned fActiveGrabEventMask
NSMutableArray * fPassiveKeyGrabs