12#ifndef ROOT_QuartzWindow
13#define ROOT_QuartzWindow
15#include <Cocoa/Cocoa.h>
45- (void) addXorCommand : (
ROOT::MacOSX::
X11::Command *) cmd;
79- (
id) initWithContentRect : (NSRect) contentRect styleMask : (NSUInteger) windowStyle
80 backing : (NSBackingStoreType) bufferingType defer : (BOOL) deferCreation
93- (void) setFIsDeleted : (BOOL) deleted;
96- (void) forwardInvocation : (NSInvocation *) anInvocation;
97- (NSMethodSignature*) methodSignatureForSelector : (
SEL) selector;
104@property (nonatomic, assign)
QuartzImage *fShapeCombineMask;
110- (BOOL) fIsOpenGLWidget;
111- (CGFloat) fScaleFactor;
120- (void) setDrawableSize : (NSSize) newSize;
121- (void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
122- (void) setX : (
int) x Y : (
int) y;
126 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
128- (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
134- (void) removeXorWindow;
137- (void) setDrawMode : (
TVirtualX::EDrawMode) newMode;
145@property (nonatomic, assign)
unsigned long fBackgroundPixel;
146@property (nonatomic, readonly)
int fMapState;
151@property (nonatomic, assign) BOOL fHasFocus;
154@property (nonatomic, assign)
QuartzView *fParentView;
159- (void) addChild : (
NSView<X11Window> *) child;
185- (NSUInteger) fModifiers;
186- (
id) initWithKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
187- (BOOL) matchKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
188- (BOOL) matchKey : (unichar) keyCode;
247@property (nonatomic, assign)
unsigned fID;
250- (BOOL) fIsOpenGLWidget;
251- (CGFloat) fScaleFactor;
254@property (nonatomic, readonly)
TAttLine *attLine;
255@property (nonatomic, readonly)
TAttFill *attFill;
256@property (nonatomic, readonly)
TAttMarker *attMarker;
257@property (nonatomic, readonly)
TAttText *attText;
259- (void) setDrawMode : (
TVirtualX::EDrawMode) newMode;
262- (void) setDirectDraw : (BOOL) mode;
263- (BOOL) isDirectDraw;
272- (void) setDrawableSize : (NSSize) newSize;
273- (void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
274- (void) setX : (
int) x Y : (
int) y;
277 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
278- (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
285@property (nonatomic, assign)
long fEventMask;
286@property (nonatomic, assign)
int fClass;
287@property (nonatomic, assign)
int fDepth;
288@property (nonatomic, assign)
int fBitGravity;
289@property (nonatomic, assign)
int fWinGravity;
290@property (nonatomic, assign)
unsigned long fBackgroundPixel;
291@property (nonatomic, retain)
QuartzImage *fBackgroundPixmap;
292@property (nonatomic, readonly)
int fMapState;
293@property (nonatomic, assign) BOOL fOverrideRedirect;
298@property (nonatomic, assign) BOOL fHasFocus;
302@property (nonatomic, assign)
QuartzView *fParentView;
304@property (nonatomic, readonly)
QuartzWindow *fQuartzWindow;
306@property (nonatomic, assign)
int fPassiveGrabButton;
307@property (nonatomic, assign)
unsigned fPassiveGrabEventMask;
308@property (nonatomic, assign)
unsigned fPassiveGrabKeyModifiers;
310@property (nonatomic, assign) BOOL fPassiveGrabOwnerEvents;
312- (void) activatePassiveGrab;
313- (void) activateImplicitGrab;
314- (void) activateGrab : (
unsigned) eventMask ownerEvents : (BOOL) ownerEvents;
317- (BOOL) acceptsCrossingEvents : (
unsigned) eventMask;
320- (void) addChild : (
NSView<X11Window> *)child;
328- (void) mapSubwindows;
335- (BOOL) fIsOverlapped;
336- (void) setOverlapped : (BOOL) overlap;
337- (void) configureNotifyTree;
341@property (nonatomic, assign) BOOL fSnapshotDraw;
345- (void) addPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
346- (void) removePassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
347- (
PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
351@property (nonatomic, assign)
ECursor fCurrentCursor;
354- (void) setProperty : (const
char *) propName data : (
unsigned char *) propData size : (
unsigned) dataSize
355 forType : (
Atom_t) dataType format : (
unsigned) format;
356- (BOOL) hasProperty : (const
char *) propName;
357- (
unsigned char *) getProperty : (const
char *) propName returnType : (
Atom_t *) type
358 returnFormat : (
unsigned *) format nElements : (
unsigned *) nElements;
359- (void) removeProperty : (const
char *) propName;
362@property (nonatomic, assign) BOOL fIsDNDAware;
364- (NSDragOperation) draggingEntered : (
id<NSDraggingInfo>) sender;
365- (BOOL) performDragOperation : (
id<NSDraggingInfo>) sender;
Handle_t Window_t
Window handle.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
Semi-Abstract base class defining a generic interface to the underlying, low level,...
QuartzPixmap * fBackBuffer
unsigned fPassiveGrabKeyModifiers
NSMutableArray * fPassiveKeyGrabs
TAttFill fAttFill
current fill attributes
BOOL fActiveGrabOwnerEvents
TAttText fAttText
current text attribute
NSMutableDictionary * fX11Properties
BOOL fPassiveGrabOwnerEvents
TAttMarker fAttMarker
current marker attribute
unsigned fPassiveGrabEventMask
QuartzImage * fBackgroundPixmap
ROOT::MacOSX::X11::PointerGrab fCurrentGrabType
unsigned long fBackgroundPixel
unsigned fActiveGrabEventMask
TAttLine fAttLine
current line attributes
QuartzWindow * fQuartzWindow
QuartzWindow * fMainWindow
TVirtualX::EDrawMode fDrawMode
QuartzView * fContentView
QuartzImage * fShapeCombineMask
int GlobalYROOTToCocoa(CGFloat yROOT)
NSPoint ConvertPointFromScreenToBase(NSPoint screenPoint, NSWindow *window)
bool ViewIsHtmlViewFrame(NSView< X11Window > *view, bool checkParent)
int GlobalYCocoaToROOT(CGFloat yCocoa)
NSPoint ConvertPointFromBaseToScreen(NSWindow *window, NSPoint windowPoint)
NSPoint TranslateToScreen(NSView< X11Window > *from, NSPoint point)
bool ScreenPointIsInView(NSView< X11Window > *view, Int_t x, Int_t y)
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
NSView< X11Window > * FindDNDAwareViewInPoint(NSView *parentView, Window_t dragWinID, Window_t inputWinID, Int_t x, Int_t y, Int_t maxDepth)
QuartzWindow * FindWindowInPoint(Int_t x, Int_t y)
int GlobalXCocoaToROOT(CGFloat xCocoa)
void WindowLostFocus(Window_t winID)
int LocalYROOTToCocoa(NSView< X11Window > *parentView, CGFloat yROOT)
NSView< X11Window > * FindViewForPointerEvent(NSEvent *pointerEvent)
int LocalYCocoaToROOT(NSView< X11Window > *parentView, CGFloat yCocoa)
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
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 > * FindViewUnderPointer()
void UnlockFocus(NSView< X11Window > *view)
int GlobalXROOTToCocoa(CGFloat xROOT)
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)
QuartzWindow * FindWindowForPointerEvent(NSEvent *pointerEvent)
void GetRootWindowAttributes(WindowAttributes_t *attr)
QuartzWindow * FindWindowUnderPointer()
bool ViewIsTextViewFrame(NSView< X11Window > *view, bool checkParent)
NSPoint TranslateFromScreen(NSPoint point, NSView< X11Window > *to)
void ClipToShapeMask(NSView< X11Window > *view, CGContextRef ctx)
bool LockFocus(NSView< X11Window > *view)
Attributes that can be used when creating or changing a window.
Window attributes that can be inquired.