15 #ifndef ROOT_TVirtualX 19 #if !defined(__CINT__) 23 typedef Status X11Status_t;
25 typedef X11Status_t Status;
30 static const unsigned long gX11None =
None;
32 static const unsigned long None = gX11None;
37 typedef unsigned long XID;
47 struct RXpmAttributes;
48 struct RXSetWindowAttributes;
97 void FindBestVisual();
98 void FindUsableVisual(RXVisualInfo *vlist,
Int_t nitems);
103 void SetColor(
void *gc,
Int_t ci);
105 void SetInput(
Int_t inp);
116 ULong_t &xmask, RXSetWindowAttributes &xattr);
157 void *GetGC(
Int_t which)
const;
163 TGX11(
const char *
name,
const char *title);
182 const char *DisplayName(
const char *dpyName = 0);
185 void GetPlanes(
Int_t &nplanes);
187 virtual void GetTextExtent(
UInt_t &w,
UInt_t &h,
char *mess);
195 void RemoveWindow(
ULong_t qwid);
197 Int_t OpenDisplay(
void *display);
205 void ResizeWindow(
Int_t wid);
206 void SelectWindow(
Int_t wid);
208 void SetClipOFF(
Int_t wid);
212 void SetDoubleBufferOFF();
213 void SetDoubleBufferON();
224 void SetOpacity(
Int_t percent);
232 void Sync(
Int_t mode);
233 void UpdateWindow(
Int_t mode);
238 Int_t SupportsExtension(
const char *ext)
const;
247 void DestroySubwindows(
Window_t id);
262 Int_t OpenDisplay(
const char *dpyName);
266 Int_t GetScreen()
const;
267 Int_t GetDepth()
const;
269 Atom_t InternAtom(
const char *atom_name,
Bool_t only_if_exist);
270 Window_t GetDefaultRootWindow()
const;
296 Bool_t ReadPictureDataFromFile(
const char *filename,
char ***ret_data);
297 void DeletePictureData(
void *data);
303 Int_t EventsPending();
304 void NextEvent(
Event_t &event);
305 void Bell(
Int_t percent);
325 void SetWindowName(
Window_t id,
char *name);
326 void SetIconName(
Window_t id,
char *name);
328 void SetClassHints(
Window_t id,
char *className,
char *resourceName);
337 const char *s,
Int_t len);
353 Window_t GetPrimarySelectionOwner();
354 void SetPrimarySelectionOwner(
Window_t id);
368 void Update(
Int_t mode = 0);
381 char **ListFonts(
const char *fontname,
Int_t max,
Int_t &count);
382 void FreeFontNames(
char **fontlist);
391 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.
static std::string format(double x, double y, int digits, int width)
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 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.