46 class EventTranslator;
71 virtual Int_t OpenDisplay(
const char *displayName);
72 virtual const char *DisplayName(
const char *);
73 virtual Int_t SupportsExtension(
const char *extensionName)
const;
74 virtual void CloseDisplay();
77 virtual Int_t GetScreen()
const;
78 virtual UInt_t ScreenWidthMM()
const;
79 virtual Int_t GetDepth()
const;
80 virtual void Update(
Int_t mode);
83 void ReconfigureDisplay();
90 virtual Window_t GetDefaultRootWindow()
const;
94 virtual void SelectWindow(
Int_t wid);
95 virtual void ClearWindow();
99 virtual void ResizeWindow(
Int_t wid);
100 virtual void UpdateWindow(
Int_t mode);
101 virtual Window_t GetCurrentWindow()
const;
102 virtual void CloseWindow();
104 virtual void RemoveWindow(
ULong_t qwid);
115 virtual void DestroyWindow(
Window_t wid);
116 virtual void DestroySubwindows(
Window_t wid);
126 virtual void MapWindow(
Window_t wid);
127 virtual void MapSubwindows(
Window_t wid);
128 virtual void MapRaised(
Window_t wid);
129 virtual void UnmapWindow(
Window_t wid);
130 virtual void RaiseWindow(
Window_t wid);
131 virtual void LowerWindow(
Window_t wid);
136 virtual void IconifyWindow(
Window_t wid);
147 virtual void SetWindowName(
Window_t wid,
char *name);
148 virtual void SetIconName(
Window_t wid,
char *name);
150 virtual void SetClassHints(
Window_t wid,
char *className,
char *resourceName);
189 virtual void ClearWindow(
Window_t wid);
199 virtual void SelectPixmap(
Int_t qpixid);
201 virtual void ClosePixmap();
210 void DeletePixmapAux(
Pixmap_t pixmapID);
211 virtual void DeletePixmap(
Pixmap_t pixmapID);
249 virtual void SetInputFocus(
Window_t wid);
256 virtual FontStruct_t LoadQueryFont(
const char *font_name);
259 virtual Bool_t HasTTFonts()
const;
264 virtual char **ListFonts(
const char *fontname,
Int_t max,
Int_t &count);
265 virtual void FreeFontNames(
char **fontlist);
276 virtual void GetPlanes(
Int_t &nplanes);
300 virtual void QueryPointer(
Int_t &x,
Int_t &y);
311 virtual Double_t GetOpenGLScalingFactor();
312 virtual Window_t CreateOpenGLWindow(
Window_t parentID,
UInt_t width,
UInt_t height,
const std::vector<std::pair<UInt_t, Int_t> > &format);
314 virtual void CreateOpenGLContext(
Int_t wid);
316 virtual Handle_t GetCurrentOpenGLContext();
317 virtual void FlushOpenGLBuffer(
Handle_t ctxID);
319 virtual void DeleteOpenGLContext(
Int_t ctxID);
325 virtual void SetDoubleBuffer(
Int_t wid,
Int_t mode);
326 virtual void SetDoubleBufferOFF();
327 virtual void SetDoubleBufferON();
328 virtual void SetDrawMode(
EDrawMode mode);
335 virtual void NextEvent(
Event_t &event);
336 virtual Int_t EventsPending();
338 virtual Handle_t GetNativeEvent()
const;
346 virtual Atom_t InternAtom(
const char *atom_name,
Bool_t only_if_exist);
348 virtual void SetPrimarySelectionOwner(
Window_t wid);
350 virtual Window_t GetPrimarySelectionOwner();
376 virtual UInt_t ExecCommand(TGWin32Command *code);
386 virtual void SetClipOFF(
Int_t wid);
389 virtual void SetTextMagnitude(
Float_t mgn);
391 virtual void Sync(
Int_t mode);
393 virtual Int_t WriteGIF(
char *name);
405 virtual Bool_t ReadPictureDataFromFile(
const char *filename,
char ***ret_data);
406 virtual void DeletePictureData(
void *data);
410 virtual void Bell(
Int_t percent);
412 virtual void WMDeleteNotify(
Window_t wid);
416 virtual void DestroyRegion(
Region_t reg);
437 Bool_t IsCocoaDraw()
const;
440 void *GetCurrentContext();
444 std::unique_ptr<ROOT::MacOSX::Details::CocoaPrivate>
fPimpl;
451 bool MakeProcessForeground();
452 Atom_t FindAtom(
const std::string &atomName,
bool addIfNotFound);
453 void SetApplicationIcon();
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
std::unique_ptr< ROOT::MacOSX::Details::CocoaPrivate > fPimpl
bool fDisplayShapeChanged
std::vector< GCValues_t > fX11Contexts
Namespace for new ROOT classes and functions.
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
virtual Bool_t IsCmdThread() const
std::map< Atom_t, Window_t >::iterator selection_iterator
ROOT::MacOSX::X11::name_to_atom_map fNameToAtom
static const double x2[5]
#define ClassDef(name, id)
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Drawable_t fSelectedDrawable
static Atom_t fgDeleteWindowAtom
std::map< Atom_t, Window_t > fSelectionOwners
ROOT::MacOSX::X11::Rectangle fDisplayRect
lv DrawLine(0.33, 0.0, 0.33, 1.0)
static const double x1[5]
static constexpr double s
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
NSCursor * CreateCursor(ECursor currentCursor)
Binding & operator=(OUT(*fun)(void))
#define org(otri, vertexptr)
This class implements TVirtualX interface for MacOS X, using Cocoa and Quartz 2D. ...
#define dest(otri, vertexptr)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
std::vector< std::string > fAtomToName
std::map< std::string, Atom_t > name_to_atom_map
static constexpr double g