17 #if !defined(__CINT__) 21 typedef Status X11Status_t;
23 typedef X11Status_t Status;
28 static const unsigned long gX11None =
None;
30 static const unsigned long None = gX11None;
35 typedef unsigned long XID;
45 struct RXpmAttributes;
46 struct RXSetWindowAttributes;
95 void FindBestVisual();
96 void FindUsableVisual(RXVisualInfo *vlist,
Int_t nitems);
101 void SetColor(
void *gc,
Int_t ci);
103 void SetInput(
Int_t inp);
114 ULong_t &xmask, RXSetWindowAttributes &xattr);
155 void *GetGC(
Int_t which)
const;
161 TGX11(
const char *
name,
const char *title);
180 const char *DisplayName(
const char *dpyName = 0);
183 void GetPlanes(
Int_t &nplanes);
185 virtual void GetTextExtent(
UInt_t &w,
UInt_t &h,
char *mess);
193 void RemoveWindow(
ULong_t qwid);
195 Int_t OpenDisplay(
void *display);
203 void ResizeWindow(
Int_t wid);
204 void SelectWindow(
Int_t wid);
206 void SetClipOFF(
Int_t wid);
210 void SetDoubleBufferOFF();
211 void SetDoubleBufferON();
222 void SetOpacity(
Int_t percent);
230 void Sync(
Int_t mode);
231 void UpdateWindow(
Int_t mode);
236 Int_t SupportsExtension(
const char *ext)
const;
245 void DestroySubwindows(
Window_t id);
260 Int_t OpenDisplay(
const char *dpyName);
264 Int_t GetScreen()
const;
265 Int_t GetDepth()
const;
267 Atom_t InternAtom(
const char *atom_name,
Bool_t only_if_exist);
268 Window_t GetDefaultRootWindow()
const;
294 Bool_t ReadPictureDataFromFile(
const char *filename,
char ***ret_data);
295 void DeletePictureData(
void *data);
301 Int_t EventsPending();
302 void NextEvent(
Event_t &event);
303 void Bell(
Int_t percent);
323 void SetWindowName(
Window_t id,
char *name);
324 void SetIconName(
Window_t id,
char *name);
326 void SetClassHints(
Window_t id,
char *className,
char *resourceName);
335 const char *
s,
Int_t len);
351 Window_t GetPrimarySelectionOwner();
352 void SetPrimarySelectionOwner(
Window_t id);
366 void Update(
Int_t mode = 0);
379 char **ListFonts(
const char *fontname,
Int_t max,
Int_t &count);
380 void FreeFontNames(
char **fontlist);
389 UInt_t ScreenWidthMM()
const;
void * fDisplay
Pointer to display.
Int_t fBlueDiv
Blue value divider.
Int_t fMaxNumberOfWindows
Maximum number of windows.
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
Float_t fCharacterUpX
Character Up vector along X.
Bool_t fHasXft
True when XftFonts are used.
UShort_t fGreen
green value
Int_t fScreenNumber
Screen number.
Description of a X11 color.
Float_t fCharacterUpY
Character Up vector along Y.
Int_t fTextAlign
Text alignment (set in SetTextAlign)
Int_t fGreenDiv
Green value divider.
Handle_t GetNativeEvent() const
Returns the current native event handle.
static const double x2[5]
#define ClassDef(name, id)
Drawable fVisRootWin
Root window with fVisual to be used to create GC's and XImages.
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
TExMap * fColors
Hash list of colors.
ULong_t fWhitePixel
Value of white pixel in colormap.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
XWindow_t * fWindows
List of windows.
void SetLineType(CGContextRef ctx, Int_t n, Int_t *dash)
UShort_t fRed
red value in range [0,kBIGGEST_RGB_VALUE]
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Colormap fColormap
Default colormap, 0 if b/w.
Float_t GetTextMagnitude()
Returns the current font magnification factor.
Int_t fDepth
Number of color planes.
void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint *xy)
void * fXEvent
Current native (X11) event.
Int_t fTextAlignH
Text Alignment Horizontal.
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
ULong_t fPixel
color pixel value
Int_t fTextAlignV
Text Alignment Vertical.
Int_t fGreenShift
Bits to left shift green.
Bool_t fHasTTFonts
True when TrueType fonts are used.
void DrawPolyMarker(CGContextRef ctx, const std::vector< TPoint > &marker, Size_t markerSize, Style_t markerStyle)
lv DrawLine(0.33, 0.0, 0.33, 1.0)
This class is the basic interface to the X11 (Xlib) graphics system.
virtual void DrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode)
Draws a text string using current font.
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.
Int_t fBlueShift
Bits to left shift blue.
NSCursor * CreateCursor(ECursor currentCursor)
#define org(otri, vertexptr)
Float_t fTextMagnitude
Text Magnitude.
void GetColor(Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t *rgba)
This function creates color for parametric surface's vertex, using its 'u' value. ...
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
#define dest(otri, vertexptr)
RVisual * fVisual
Pointer to visual used by all windows.
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
Drawable fRootWin
Root window used as parent of all windows.
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
ULong_t fBlackPixel
Value of black pixel in colormap.
This class stores a (key,value) pair using an external hash.
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
static constexpr double g