21typedef Status X11Status_t;
23typedef X11Status_t Status;
28static const unsigned long gX11None = None;
30static const unsigned long None = gX11None;
35typedef unsigned long XID;
46struct RXSetWindowAttributes;
114 ULong_t &xmask, RXSetWindowAttributes &xattr);
161 TGX11(
const char *
name,
const char *title);
335 const char *
s,
Int_t len);
static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
include TDocParser_001 C image html pict1_TDocParser_001 png width
This class stores a (key,value) pair using an external hash.
This class is the basic interface to the X11 (Xlib) graphics system.
void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Fill in the primary color components for a specific pixel value.
void SetForeground(GContext_t gc, ULong_t foreground)
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).
Drawable_t CreateImage(UInt_t width, UInt_t height)
Create a client-side XImage. Returns handle to XImage.
void * fDisplay
Pointer to display.
void NextEvent(Event_t &event)
Copies first pending event from event queue to Event_t structure and removes event from queue.
void QueryPointer(Int_t &ix, Int_t &iy)
Query pointer position.
void MakeOpaqueColors(Int_t percent, ULong_t *orgcolors, Int_t ncolors)
Get RGB values for orgcolors, add percent neutral to the RGB and allocate fNewColors.
void SetIconName(Window_t id, char *name)
Set window icon name.
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Parse string cname containing color name, like "green" or "#00FF00".
Colormap fColormap
Default colormap, 0 if b/w.
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Return the size of a character string.
Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
void FreeFontNames(char **fontlist)
Free list of font names.
void WMDeleteNotify(Window_t id)
Tell WM to send message when window is closed via WM.
void ChangeGC(GContext_t gc, GCValues_t *gval)
Change entries in an existing graphics context, gc, by values from gval.
Int_t GetScreen() const
Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtua...
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the specified dynamic parameters if the pointer is actively grabbed by the client.
void MapEvent(Event_t &ev, void *xev, Bool_t tox=kTRUE)
Map Event_t structure to XEvent structure.
Cursor_t CreateCursor(ECursor cursor)
Create cursor handle (just return cursor from cursor pool fCursors).
void CloseDisplay()
Close connection to display server.
void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
This function alters the property for the specified window and causes the X server to generate a Prop...
Bool_t CreatePictureFromFile(Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a picture pixmap from data on file.
Int_t fScreenNumber
Screen number.
void SetDoubleBufferOFF()
Turn double buffer mode off.
void SetTextColor(Color_t cindex)
Set color index for text.
void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
Draw a string using a specific graphics context in position (x,y).
Window_t GetInputFocus()
Returns the window id of the window having the input focus.
void SetWMTransientHint(Window_t id, Window_t main_id)
Tell window manager that window is a transient window of main.
void SelectWindow(Int_t wid)
Select window to which subsequent output is directed.
void DrawPolyLine(Int_t n, TPoint *xy)
Draw a line through all points.
void SetLineType(Int_t n, Int_t *dash)
Set line type.
void DeleteGC(GContext_t gc)
Explicitly delete a graphics context.
Colormap_t GetColormap() const
Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TV...
void DestroyRegion(Region_t reg)
Destroy region.
void CollectImageColors(ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors, Int_t &maxcolors)
Collect in orgcolors all different original image colors.
Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it.
ULong_t fWhitePixel
Value of white pixel in colormap.
Cursor fCursors[kNumCursors]
List of cursors.
Bool_t AllocColor(Colormap cmap, RXColor *color)
Allocate color in colormap.
Int_t fTextAlignV
Text Alignment Vertical.
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtract rega from regb.
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
Requests that the specified selection be converted to the specified target type.
void QueryColors(Colormap cmap, RXColor *colors, Int_t ncolors)
Returns the current RGB value for the pixel in the XColor structure.
void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a rectangle outline.
void DeletePixmap(Pixmap_t pmap)
Explicitly delete pixmap resource.
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
void MapSubwindows(Window_t id)
Map sub windows.
Int_t fBlueShift
Bits to left shift blue.
void SetInputFocus(Window_t id)
Set keyboard input focus to window id.
void ClosePixmap()
Delete current pixmap.
void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
void SetWMState(Window_t id, EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Union of rectangle with a region.
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from X.
void IconifyWindow(Window_t id)
Iconify the window.
void SetDoubleBufferON()
Turn double buffer mode on.
void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
Set pixel at specified location in XImage img.
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Get size of XImage img.
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Return character up vector.
void Warp(Int_t ix, Int_t iy, Window_t id=0)
Set pointer position.
void RaiseWindow(Window_t id)
Put window on top of window stack.
void SetTextAlign(Short_t talign=11)
Set text alignment.
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescale the window wid.
void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tell the window manager the desired window position.
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Specify a dash pattern.
Window_t GetWindowID(Int_t wid)
Return the X11 window identifier.
void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Compute the union of rega and regb and return result region.
Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
Register a window created by Qt as a ROOT window (like InitWindow()).
void FreeFontStruct(FontStruct_t fs)
Free font structure returned by GetFontStruct().
void SetCursor(Int_t win, ECursor cursor)
Set the cursor.
void Sync(Int_t mode)
Set synchronisation on or off.
Window_t GetParent(Window_t id) const
Return the parent of the window.
void * GetGC(Int_t which) const
Return desired Graphics Context ("which" maps directly on gGCList[]).
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Move the window wid.
unsigned char * GetColorBits(Drawable_t wid, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0)
Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format: b1,...
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
void SetMarkerSize(Float_t markersize)
Set marker size index.
void SetDrawMode(EDrawMode mode)
Set the drawing mode.
Handle_t GetNativeEvent() const
Returns the current native event handle.
Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h)
Register pixmap created by gVirtualGL.
Bool_t fHasXft
True when XftFonts are used.
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Write the pixmap wid in the bitmap file pxname.
void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
The Nonrectangular Window Shape Extension adds nonrectangular windows to the System.
void SetWindowName(Window_t id, char *name)
Set window name.
Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns true if two regions are equal.
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
Int_t GetDepth() const
Returns depth of screen (number of bit planes).
Visual_t GetVisual() const
Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVir...
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw a box.
void MapGCValues(GCValues_t &gval, ULong_t &xmask, RXGCValues &xgval, Bool_t tox=kTRUE)
Map a GCValues_t to a XCGValues structure if tox is true.
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies graphics context from org to dest.
void ClearPixmap(Drawable *pix)
Clear the pixmap pix.
Float_t fTextMagnitude
Text Magnitude.
void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Window_t GetDefaultRootWindow() const
Return handle to the default root window created when calling XOpenDisplay().
void FreeColor(Colormap_t cmap, ULong_t pixel)
Free color cell with specified pixel value.
void SetCharacterUp(Float_t chupx, Float_t chupy)
Set character up vector.
Drawable fRootWin
Root window used as parent of all windows.
void SetMarkerStyle(Style_t markerstyle)
Set marker style.
Int_t KeysymToKeycode(UInt_t keysym)
Convert a keysym to the appropriate keycode.
virtual ~TGX11()
Destructor.
Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
Recursively search in the children of Window for a Window which is at location x, y and is DND aware,...
void DrawFillArea(Int_t n, TPoint *xy)
Fill area described by polygon.
void SetInput(Int_t inp)
Set input on or off.
void RemoveWindow(ULong_t qwid)
Remove a window created by Qt (like CloseWindow1()).
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
Set clipping region for the window wid.
void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Compute the intersection of rega and regb and return result region.
Int_t fTextAlignH
Text Alignment Horizontal.
void * fXEvent
Current native (X11) event.
ULong_t GetPixel(Color_t cindex)
Return pixel value associated to specified ROOT color number.
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of string in pixels. Size depends on font.
void SetWindowBackground(Window_t id, ULong_t color)
Set the window background color.
FontStruct_t GetFontStruct(FontH_t fh)
Retrieve associated font structure once we have the font handle.
void SetDNDAware(Window_t, Atom_t *)
Add XdndAware property and the list of drag and drop types to the Window win.
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Change window attributes.
void SetPrimarySelectionOwner(Window_t id)
Makes the window id the current owner of the primary selection.
Int_t fGreenShift
Bits to left shift green.
void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
Convert the keycode from the event structure to a key symbol (according to the modifiers specified in...
void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return position and size of window wid.
void SetOpacity(Int_t percent)
Set opacity of a window.
void SetFillColor(Color_t cindex)
Set color index for fill areas.
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create pixmap from RGB data.
void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Clear a window area to the background color.
Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a picture pixmap from data.
Int_t InitWindow(ULong_t window)
Open window and return window number.
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Returns true if the point x,y is in the region.
void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
void ClearWindow()
Clear current window.
Int_t WriteGIF(char *name)
Writes the current window into GIF file.
XColor_t & GetColor(Int_t cid)
Return reference to internal color structure associated to color index cid.
void DeleteFont(FontStruct_t fs)
Explicitly delete font structure obtained with LoadQueryFont().
Int_t fBlueDiv
Blue value divider.
void CopyWindowtoPixmap(Drawable *pix, Int_t xpos, Int_t ypos)
Copy area of current window in the pixmap pix.
void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a filled rectangle. Filling is done according to the gc.
Int_t EventsPending()
Returns number of pending events.
void SetLineStyle(Style_t linestyle)
Set line style.
Drawable fVisRootWin
Root window with fVisual to be used to create GC's and XImages.
void GetPlanes(Int_t &nplanes)
Get maximum number of planes.
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Set pixmap as window background.
Window_t CreateWindow(Window_t 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)
Return handle to newly created X window.
void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
Establish an active pointer grab.
void SetMarkerColor(Color_t cindex)
Set color index for markers.
char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Return list of font names matching fontname regexp, like "-*-times-*".
TExMap * fColors
Hash list of colors.
GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
Create a graphics context using the values set in gval (but only for those entries that are in the ma...
void DeleteImage(Drawable_t img)
Destroy XImage img.
void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
Establish passive grab on a certain mouse button.
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Return atom handle for atom_name.
Bool_t EmptyRegion(Region_t reg)
Return true if the region is empty.
void DestroySubwindows(Window_t id)
Destroy subwindows of this window.
Int_t fTextAlign
Text alignment (set in SetTextAlign)
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
Window_t GetCurrentWindow() const
Return current window pointer. Protected method used by TGX11TTF.
void SetMarkerType(Int_t type, Int_t n, RXPoint *xy)
Set marker type.
void ChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
This function alters the property for the specified window and causes the X server to generate a Prop...
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Int_t fDepth
Number of color planes.
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void ResizeWindow(Int_t wid)
Resize the current window if necessary.
Region_t CreateRegion()
Create a new empty region.
Int_t GetProperty(Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t *, Int_t *, ULong_t *, ULong_t *, unsigned char **)
Returns the actual type of the property; the actual format of the property; the number of 8-bit,...
void CloseWindow()
Delete current window.
void UnmapWindow(Window_t id)
Unmap window from screen.
void CloseWindow1()
Delete current window.
void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child)
TranslateCoordinates translates coordinates from the frame of reference of one window to another.
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establish passive grab on a certain key.
void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
Reparent window to new parent window at position (x,y).
void SetClassHints(Window_t id, char *className, char *resourceName)
Set the windows class and resource name.
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Set clipping rectangles in graphics context.
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner...
Int_t SupportsExtension(const char *ext) const
Returns 1 if window system server supports extension given by the argument, returns 0 in case extensi...
ULong_t fBlackPixel
Value of black pixel in colormap.
void GetGCValues(GContext_t gc, GCValues_t &gval)
Get current values from graphics context gc.
const char * DisplayName(const char *dpyName=0)
Return hostname on which the display is opened.
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tell the window manager the desired window size.
virtual void DrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode)
Draws a text string using current font.
Float_t fCharacterUpX
Character Up vector along X.
Int_t fGreenDiv
Green value divider.
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Request Locator position.
void UpdateWindow(Int_t mode)
Update display.
virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draw a text string using current font.
void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
Draws multiple line segments. Each line is specified by a pair of points.
void DestroyWindow(Window_t id)
Destroy window.
TGX11()
Default constructor.
Bool_t Init(void *display)
Initialize X11 system. Returns kFALSE in case of failure.
void MapCursor(ECursor cursor, Int_t &xcursor)
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
Get window attributes and return filled in attributes structure.
void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return geometry of window (should be called GetGeometry but signature already used).
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw a line.
Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
Int_t OpenPixmap(UInt_t w, UInt_t h)
Open a new pixmap.
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
void MapPictureAttributes(PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE)
Map a PictureAttributes_t to a XpmAttributes structure.
virtual void SetTextSize(Float_t textsize)
Set current text size.
Int_t OpenDisplay(void *display)
Open the display. Return -1 if the opening fails, 0 when ok.
Bool_t IsDNDAware(Window_t win, Atom_t *typelist)
Checks if Window win is DND aware, and knows any of the DND formats passed in argument.
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resize a pixmap.
UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
void Bell(Int_t percent)
Sound bell. Percent is loudness from -100% .. 100%.
void LowerWindow(Window_t id)
Lower window so it lays below all its siblings.
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
Copy the pixmap wid at the position xpos, ypos in the current window.
void Update(Int_t mode=0)
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
void RemovePixmap(Drawable *pix)
Remove the pixmap pix.
Float_t GetTextMagnitude()
Returns the current font magnification factor.
void FindUsableVisual(RXVisualInfo *vlist, Int_t nitems)
Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel.
Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0)
If id is NULL - loads the specified gif file at position [x0,y0] in the current window.
void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property only if the property was defined on the specified window and causes th...
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize a window.
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Int_t fMaxNumberOfWindows
Maximum number of windows.
Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Create region for the polygon defined by the points array.
void ImgPickPalette(RXImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B)
Returns in R G B the ncol colors of the palette used by the image.
void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
Draw a cell array.
void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
Get contents of paste buffer atom into string.
Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
Returns index in orgcolors (and fNewColors) for pixel.
void SetFillStyleIndex(Int_t style, Int_t fasi)
Set fill area style index.
RVisual * fVisual
Pointer to visual used by all windows.
void SetClipOFF(Int_t wid)
Turn off the clipping for the window wid.
virtual Int_t SetTextFont(char *fontname, ETextSetMode mode)
Set text font to specified name.
void SetIconPixmap(Window_t id, Pixmap_t pic)
Set pixmap the WM can use when the window is iconized.
void MapRaised(Window_t id)
Map window on screen and put on top of all windows.
void SetFillStyle(Style_t style)
Set fill area style.
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
void SetLineWidth(Width_t width)
Set line width.
void MapWindow(Window_t id)
Map window on screen.
void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turn key auto repeat on or off.
XWindow_t * fWindows
List of windows.
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr)
Map a SetWindowAttributes_t to a XSetWindowAttributes structure.
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".
void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t *image, Drawable_t id)
Draw image.
Bool_t SetSelectionOwner(Window_t, Atom_t &)
Changes the owner and last-change time for the specified selection.
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Read picture data from file and store in ret_data.
void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
FillPolygon fills the region closed by the specified path.
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
void FindBestVisual()
Find best visual, i.e.
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Set color intensities for given color index.
void SetColor(void *gc, Int_t ci)
Set the foreground color in GC.
void SetDoubleBuffer(Int_t wid, Int_t mode)
Set the double buffer on/off on window wid.
void SetLineColor(Color_t cindex)
Set color index for lines.
void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Get rgb values for color "index".
Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y)
Copy a drawable (i.e.
void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculate the difference between the union and intersection of two regions.
void MapColorStruct(ColorStruct_t *color, RXColor &xcolor)
Map a ColorStruct_t to a XColor structure.
Int_t GetDoubleBuffer(Int_t wid)
Query the double buffer value for the window wid.
Float_t fCharacterUpY
Character Up vector along Y.
Bool_t fHasTTFonts
True when TrueType fonts are used.
void GetRegionBox(Region_t reg, Rectangle_t *)
Return smallest enclosing rectangle.
void DrawPolyMarker(Int_t n, TPoint *xy)
Draw n markers with the current attributes at position x, y.
Int_t RequestString(Int_t x, Int_t y, char *text)
Request a string.
Semi-Abstract base class defining a generic interface to the underlying, low level,...
static constexpr double s
Description of a X11 color.
Bool_t fDefined
true if pixel value is defined
UShort_t fRed
red value in range [0,kBIGGEST_RGB_VALUE]
UShort_t fGreen
green value
ULong_t fPixel
color pixel value
#define dest(otri, vertexptr)
#define org(otri, vertexptr)