12 #ifndef ROOT_QuartzWindow 13 #define ROOT_QuartzWindow 15 #include <Cocoa/Cocoa.h> 17 #ifndef ROOT_CocoaGuiTypes 20 #ifndef ROOT_X11Drawable 23 #ifndef ROOT_X11Events 56 - (
id) initWithContentRect : (NSRect) contentRect styleMask : (NSUInteger) windowStyle
57 backing : (NSBackingStoreType) bufferingType defer : (BOOL) deferCreation
70 - (
void) setFIsDeleted : (BOOL) deleted;
73 - (
void) forwardInvocation : (NSInvocation *) anInvocation;
74 - (NSMethodSignature*) methodSignatureForSelector : (
SEL) selector;
96 - (
void) setDrawableSize : (NSSize) newSize;
97 - (
void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
98 - (
void) setX : (
int) x Y : (
int) y;
102 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
104 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
117 @property (nonatomic, assign) BOOL
fHasFocus;
125 - (
void) addChild : (NSView<X11Window> *) child;
150 - (unichar) fKeyCode;
151 - (NSUInteger) fModifiers;
152 - (
id) initWithKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
153 - (BOOL) matchKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
154 - (BOOL) matchKey : (unichar) keyCode;
212 @property (nonatomic, assign)
unsigned fID;
217 @property (nonatomic, assign) CGContextRef fContext;
224 - (
void) setDrawableSize : (NSSize) newSize;
225 - (
void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
226 - (
void) setX : (
int) x Y : (
int) y;
229 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
230 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
237 @property (nonatomic, assign)
long fEventMask;
238 @property (nonatomic, assign)
int fClass;
239 @property (nonatomic, assign)
int fDepth;
240 @property (nonatomic, assign)
int fBitGravity;
241 @property (nonatomic, assign)
int fWinGravity;
243 @property (nonatomic, retain)
QuartzImage *fBackgroundPixmap;
245 @property (nonatomic, assign) BOOL fOverrideRedirect;
250 @property (nonatomic, assign) BOOL
fHasFocus;
253 @property (nonatomic, retain)
QuartzPixmap *fBackBuffer;
260 @property (nonatomic, assign)
int fPassiveGrabButton;
261 @property (nonatomic, assign)
unsigned fPassiveGrabEventMask;
262 @property (nonatomic, assign)
unsigned fPassiveGrabKeyModifiers;
264 @property (nonatomic, assign) BOOL fPassiveGrabOwnerEvents;
266 - (
void) activatePassiveGrab;
267 - (
void) activateImplicitGrab;
268 - (
void) activateGrab : (
unsigned) eventMask ownerEvents : (BOOL) ownerEvents;
271 - (BOOL) acceptsCrossingEvents : (
unsigned) eventMask;
276 - (
void) addChild : (NSView<X11Window> *)child;
289 - (
void) raiseWindow;
290 - (
void) lowerWindow;
293 - (BOOL) fIsOverlapped;
294 - (
void) setOverlapped : (BOOL) overlap;
295 - (
void) configureNotifyTree;
299 @property (nonatomic, assign) BOOL fSnapshotDraw;
303 - (
void) addPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
304 - (
void) removePassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
305 - (
PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
309 @property (nonatomic, assign)
ECursor fCurrentCursor;
312 - (
void) setProperty : (const
char *) propName data : (
unsigned char *) propData size : (
unsigned) dataSize
313 forType : (
Atom_t) dataType format : (
unsigned) format;
314 - (BOOL) hasProperty : (const
char *) propName;
315 - (
unsigned char *) getProperty : (const
char *) propName returnType : (
Atom_t *) type
316 returnFormat : (
unsigned *) format nElements : (
unsigned *) nElements;
317 - (
void) removeProperty : (const
char *) propName;
320 @property (nonatomic, assign) BOOL fIsDNDAware;
322 - (NSDragOperation) draggingEntered : (
id<NSDraggingInfo>) sender;
323 - (BOOL) performDragOperation : (
id<NSDraggingInfo>) sender;
359 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)
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
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