12#ifndef ROOT_QuartzWindow
13#define ROOT_QuartzWindow
15#include <Cocoa/Cocoa.h>
48- (void) addXorCommand : (
ROOT::MacOSX::
X11::Command *) cmd;
82- (
id) initWithContentRect : (NSRect) contentRect styleMask : (NSUInteger) windowStyle
83 backing : (NSBackingStoreType) bufferingType defer : (BOOL) deferCreation
96- (void) setFIsDeleted : (BOOL) deleted;
99- (void) forwardInvocation : (NSInvocation *) anInvocation;
100- (NSMethodSignature*) methodSignatureForSelector : (
SEL) selector;
107@property (nonatomic, assign)
QuartzImage *fShapeCombineMask;
113- (BOOL) fIsOpenGLWidget;
114- (CGFloat) fScaleFactor;
123- (void) setDrawableSize : (NSSize) newSize;
124- (void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
125- (void) setX : (
int) x Y : (
int) y;
129 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
131- (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
137- (void) removeXorWindow;
142- (void) setDrawMode : (
TVirtualX::EDrawMode) newMode;
150@property (nonatomic, assign)
unsigned long fBackgroundPixel;
151@property (nonatomic, readonly)
int fMapState;
156@property (nonatomic, assign) BOOL fHasFocus;
159@property (nonatomic, assign)
QuartzView *fParentView;
164- (void) addChild : (
NSView<X11Window> *) child;
190- (NSUInteger) fModifiers;
191- (
id) initWithKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
192- (BOOL) matchKey : (unichar) keyCode modifiers : (NSUInteger) modifiers;
193- (BOOL) matchKey : (unichar) keyCode;
252@property (nonatomic, assign)
unsigned fID;
255- (BOOL) fIsOpenGLWidget;
256- (CGFloat) fScaleFactor;
259@property (nonatomic, readonly)
TAttLine *attLine;
260@property (nonatomic, readonly)
TAttFill *attFill;
261@property (nonatomic, readonly)
TAttMarker *attMarker;
262@property (nonatomic, readonly)
TAttText *attText;
264- (void) setDrawMode : (
TVirtualX::EDrawMode) newMode;
267- (void) setDirectDraw : (BOOL) mode;
268- (BOOL) isDirectDraw;
277- (void) setDrawableSize : (NSSize) newSize;
278- (void) setX : (
int) x Y : (
int) y width : (
unsigned) w height : (
unsigned) h;
279- (void) setX : (
int) x Y : (
int) y;
282 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
283- (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
290@property (nonatomic, assign)
long fEventMask;
291@property (nonatomic, assign)
int fClass;
292@property (nonatomic, assign)
int fDepth;
293@property (nonatomic, assign)
int fBitGravity;
294@property (nonatomic, assign)
int fWinGravity;
295@property (nonatomic, assign)
unsigned long fBackgroundPixel;
296@property (nonatomic, retain)
QuartzImage *fBackgroundPixmap;
297@property (nonatomic, readonly)
int fMapState;
298@property (nonatomic, assign) BOOL fOverrideRedirect;
303@property (nonatomic, assign) BOOL fHasFocus;
307@property (nonatomic, assign)
QuartzView *fParentView;
309@property (nonatomic, readonly)
QuartzWindow *fQuartzWindow;
311@property (nonatomic, assign)
int fPassiveGrabButton;
312@property (nonatomic, assign)
unsigned fPassiveGrabEventMask;
313@property (nonatomic, assign)
unsigned fPassiveGrabKeyModifiers;
315@property (nonatomic, assign) BOOL fPassiveGrabOwnerEvents;
317- (void) activatePassiveGrab;
318- (void) activateImplicitGrab;
319- (void) activateGrab : (
unsigned) eventMask ownerEvents : (BOOL) ownerEvents;
322- (BOOL) acceptsCrossingEvents : (
unsigned) eventMask;
325- (void) addChild : (
NSView<X11Window> *)child;
333- (void) mapSubwindows;
340- (BOOL) fIsOverlapped;
341- (void) setOverlapped : (BOOL) overlap;
342- (void) configureNotifyTree;
346@property (nonatomic, assign) BOOL fSnapshotDraw;
350- (void) addPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
351- (void) removePassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
352- (
PassiveKeyGrab *) findPassiveKeyGrab : (unichar) keyCode modifiers : (NSUInteger) modifiers;
356@property (nonatomic, assign)
ECursor fCurrentCursor;
359- (void) setProperty : (const
char *) propName data : (
unsigned char *) propData size : (
unsigned) dataSize
360 forType : (
Atom_t) dataType format : (
unsigned) format;
361- (BOOL) hasProperty : (const
char *) propName;
362- (
unsigned char *) getProperty : (const
char *) propName returnType : (
Atom_t *) type
363 returnFormat : (
unsigned *) format nElements : (
unsigned *) nElements;
364- (void) removeProperty : (const
char *) propName;
367@property (nonatomic, assign) BOOL fIsDNDAware;
369- (NSDragOperation) draggingEntered : (
id<NSDraggingInfo>) sender;
370- (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)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t TranslateCoordinates
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t GetWindowAttributes
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
Fill Area Attributes class.
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)
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)
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.