Logo ROOT  
Reference Guide
TGX11 Class Reference

This class is the basic interface to the X11 (Xlib) graphics system.

It is an implementation of the abstract TVirtualX class.

This class gives access to basic X11 graphics, pixmap, text and font handling routines.

The companion class for Win32 is TGWin32.

The file G11Gui.cxx contains the implementation of the GUI methods of the TGX11 class. Most of the methods are used by the machine independent GUI classes (libGUI.so).

This code was initially developed in the context of HIGZ and PAW by Olivier Couet (package X11INT).

Definition at line 83 of file TGX11.h.

Public Member Functions

 TGX11 ()
 Default constructor. More...
 
 TGX11 (const char *name, const char *title)
 Normal Constructor. More...
 
 TGX11 (const TGX11 &org)
 Copy constructor. Currently only used by TGX11TTF. More...
 
virtual ~TGX11 ()
 Destructor. More...
 
Int_t AddPixmap (ULong_t pixid, UInt_t w, UInt_t h)
 Register pixmap created by gVirtualGL. More...
 
Int_t AddWindow (ULong_t qwid, UInt_t w, UInt_t h)
 Register a window created by Qt as a ROOT window (like InitWindow()). More...
 
Bool_t AllocColor (Colormap_t cmap, ColorStruct_t &color)
 Find and allocate a color cell according to the color values specified in the ColorStruct_t. More...
 
void Bell (Int_t percent)
 Sound bell. Percent is loudness from -100% .. 100%. More...
 
void ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t)
 Changes the specified dynamic parameters if the pointer is actively grabbed by the client. More...
 
void ChangeGC (GContext_t gc, GCValues_t *gval)
 Change entries in an existing graphics context, gc, by values from gval. More...
 
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 PropertyNotify event on that window. More...
 
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 PropertyNotify event on that window. More...
 
void ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr)
 Change window attributes. More...
 
Bool_t CheckEvent (Window_t id, EGEventType type, Event_t &ev)
 Check if there is for window "id" an event of type "type". More...
 
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. More...
 
void ClearWindow ()
 Clear current window. More...
 
void ClearWindow (Window_t id)
 Clear window. More...
 
void CloseDisplay ()
 Close connection to display server. More...
 
void ClosePixmap ()
 Delete current pixmap. More...
 
void CloseWindow ()
 Delete current window. More...
 
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. More...
 
void ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
 Requests that the specified selection be converted to the specified target type. More...
 
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. More...
 
void CopyGC (GContext_t org, GContext_t dest, Mask_t mask)
 Copies graphics context from org to dest. More...
 
void CopyPixmap (Int_t wid, Int_t xpos, Int_t ypos)
 Copy the pixmap wid at the position xpos, ypos in the current window. More...
 
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. More...
 
Cursor_t CreateCursor (ECursor cursor)
 Create cursor handle (just return cursor from cursor pool fCursors). More...
 
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 mask). More...
 
Drawable_t CreateImage (UInt_t width, UInt_t height)
 Create a client-side XImage. Returns handle to XImage. More...
 
Bool_t CreatePictureFromData (Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Create a picture pixmap from data. More...
 
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. More...
 
Pixmap_t CreatePixmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
 Create a pixmap from bitmap data. More...
 
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. More...
 
Pixmap_t CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height)
 create pixmap from RGB data. More...
 
Region_t CreateRegion ()
 Create a new empty region. More...
 
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. More...
 
void DeleteFont (FontStruct_t fs)
 Explicitly delete font structure obtained with LoadQueryFont(). More...
 
void DeleteGC (GContext_t gc)
 Explicitly delete a graphics context. More...
 
void DeleteImage (Drawable_t img)
 Destroy XImage img. More...
 
void DeletePictureData (void *data)
 Delete picture data created by the function ReadPictureDataFromFile. More...
 
void DeletePixmap (Pixmap_t pmap)
 Explicitly delete pixmap resource. More...
 
void DeleteProperty (Window_t, Atom_t &)
 Deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist. More...
 
void DestroyRegion (Region_t reg)
 Destroy region. More...
 
void DestroySubwindows (Window_t id)
 Destroy subwindows of this window. More...
 
void DestroyWindow (Window_t id)
 Destroy window. More...
 
const char * DisplayName (const char *dpyName=0)
 Return hostname on which the display is opened. More...
 
void DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
 Draw a box. More...
 
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. More...
 
void DrawFillArea (Int_t n, TPoint *xy)
 Fill area described by polygon. More...
 
void DrawLine (Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line. More...
 
void DrawLine (Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line. More...
 
void DrawPolyLine (Int_t n, TPoint *xy)
 Draw a line through all points. More...
 
void DrawPolyMarker (Int_t n, TPoint *xy)
 Draw n markers with the current attributes at position x, y. More...
 
void DrawRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw a rectangle outline. More...
 
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. More...
 
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). More...
 
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. More...
 
virtual void DrawText (Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode)
 Draws a text string using current font. More...
 
Bool_t EmptyRegion (Region_t reg)
 Return true if the region is empty. More...
 
Bool_t EqualRegion (Region_t rega, Region_t regb)
 Returns true if two regions are equal. More...
 
Int_t EventsPending ()
 Returns number of pending events. More...
 
void FillPolygon (Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
 FillPolygon fills the region closed by the specified path. More...
 
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. More...
 
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, with a maximum depth of maxd. More...
 
void FreeColor (Colormap_t cmap, ULong_t pixel)
 Free color cell with specified pixel value. More...
 
void FreeFontNames (char **fontlist)
 Free list of font names. More...
 
void FreeFontStruct (FontStruct_t fs)
 Free font structure returned by GetFontStruct(). More...
 
void GetCharacterUp (Float_t &chupx, Float_t &chupy)
 Return character up vector. More...
 
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, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 .. More...
 
Colormap_t GetColormap () const
 Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
Window_t GetCurrentWindow () const
 Return current window pointer. Protected method used by TGX11TTF. More...
 
Window_t GetDefaultRootWindow () const
 Return handle to the default root window created when calling XOpenDisplay(). More...
 
Int_t GetDepth () const
 Returns depth of screen (number of bit planes). More...
 
Display_t GetDisplay () const
 Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
Int_t GetDoubleBuffer (Int_t wid)
 Query the double buffer value for the window wid. More...
 
FontH_t GetFontHandle (FontStruct_t fs)
 Return handle to font described by font structure. More...
 
void GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
 Return some font properties. More...
 
FontStruct_t GetFontStruct (FontH_t fh)
 Retrieve associated font structure once we have the font handle. More...
 
void GetGCValues (GContext_t gc, GCValues_t &gval)
 Get current values from graphics context gc. More...
 
void GetGeometry (Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Return position and size of window wid. More...
 
void GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height)
 Get size of XImage img. More...
 
Window_t GetInputFocus ()
 Returns the window id of the window having the input focus. More...
 
Handle_t GetNativeEvent () const
 Returns the current native event handle. More...
 
Window_t GetParent (Window_t id) const
 Return the parent of the window. More...
 
void GetPasteBuffer (Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
 Get contents of paste buffer atom into string. More...
 
ULong_t GetPixel (Color_t cindex)
 Return pixel value associated to specified ROOT color number. More...
 
void GetPlanes (Int_t &nplanes)
 Get maximum number of planes. More...
 
Window_t GetPrimarySelectionOwner ()
 Returns the window id of the current owner of the primary selection. More...
 
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, 16-bit, or 32-bit items transferred; the number of bytes remaining to be read in the property; and a pointer to the data actually returned. More...
 
void GetRegionBox (Region_t reg, Rectangle_t *)
 Return smallest enclosing rectangle. More...
 
void GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b)
 Get rgb values for color "index". More...
 
Int_t GetScreen () const
 Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
virtual void GetTextExtent (UInt_t &, UInt_t &, wchar_t *)
 Returns the size of the specified character string "mess". More...
 
virtual void GetTextExtent (UInt_t &w, UInt_t &h, char *mess)
 Return the size of a character string. More...
 
Float_t GetTextMagnitude ()
 Returns the current font magnification factor. More...
 
Visual_t GetVisual () const
 Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
void GetWindowAttributes (Window_t id, WindowAttributes_t &attr)
 Get window attributes and return filled in attributes structure. More...
 
Window_t GetWindowID (Int_t wid)
 Return the X11 window identifier. More...
 
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). More...
 
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. More...
 
void GrabKey (Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
 Establish passive grab on a certain key. More...
 
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. More...
 
Bool_t HasTTFonts () const
 Returns True when TrueType fonts are used. More...
 
void IconifyWindow (Window_t id)
 Iconify the window. More...
 
Bool_t Init (void *display)
 Initialize X11 system. Returns kFALSE in case of failure. More...
 
Int_t InitWindow (ULong_t window)
 Open window and return window number. More...
 
Atom_t InternAtom (const char *atom_name, Bool_t only_if_exist)
 Return atom handle for atom_name. More...
 
void IntersectRegion (Region_t rega, Region_t regb, Region_t result)
 Compute the intersection of rega and regb and return result region. More...
 
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. More...
 
Int_t KeysymToKeycode (UInt_t keysym)
 Convert a keysym to the appropriate keycode. More...
 
char ** ListFonts (const char *fontname, Int_t max, Int_t &count)
 Return list of font names matching fontname regexp, like "-*-times-*". More...
 
FontStruct_t LoadQueryFont (const char *font_name)
 Load font and query font. More...
 
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 the event structure and the current keyboard mapping). More...
 
void LowerWindow (Window_t id)
 Lower window so it lays below all its siblings. More...
 
void MapRaised (Window_t id)
 Map window on screen and put on top of all windows. More...
 
void MapSubwindows (Window_t id)
 Map sub windows. More...
 
void MapWindow (Window_t id)
 Map window on screen. More...
 
void MoveResizeWindow (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Move and resize a window. More...
 
void MoveWindow (Int_t wid, Int_t x, Int_t y)
 Move the window wid. More...
 
void MoveWindow (Window_t id, Int_t x, Int_t y)
 Move a window. More...
 
void NextEvent (Event_t &event)
 Copies first pending event from event queue to Event_t structure and removes event from queue. More...
 
Int_t OpenDisplay (const char *dpyName)
 Open connection to display server (if such a thing exist on the current platform). More...
 
Int_t OpenDisplay (void *display)
 Open the display. Return -1 if the opening fails, 0 when ok. More...
 
Int_t OpenPixmap (UInt_t w, UInt_t h)
 Open a new pixmap. More...
 
Bool_t ParseColor (Colormap_t cmap, const char *cname, ColorStruct_t &color)
 Parse string cname containing color name, like "green" or "#00FF00". More...
 
Bool_t PointInRegion (Int_t x, Int_t y, Region_t reg)
 Returns true if the point x,y is in the region. More...
 
Region_t PolygonRegion (Point_t *points, Int_t np, Bool_t winding)
 Create region for the polygon defined by the points array. More...
 
void PutImage (Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Put (x,y,w,h) part of image img in window win at position dx,dy. More...
 
void PutPixel (Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
 Set pixel at specified location in XImage img. More...
 
void QueryColor (Colormap_t cmap, ColorStruct_t &color)
 Fill in the primary color components for a specific pixel value. More...
 
void QueryPointer (Int_t &ix, Int_t &iy)
 Query pointer position. More...
 
void QueryPointer (Window_t id, Window_t &rootw, Window_t &childw, Int_t &root_x, Int_t &root_y, Int_t &win_x, Int_t &win_y, UInt_t &mask)
 Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin. More...
 
void RaiseWindow (Window_t id)
 Put window on top of window stack. More...
 
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. More...
 
Bool_t ReadPictureDataFromFile (const char *filename, char ***ret_data)
 Read picture data from file and store in ret_data. More...
 
void RemoveWindow (ULong_t qwid)
 Remove a window created by Qt (like CloseWindow1()). More...
 
void ReparentWindow (Window_t id, Window_t pid, Int_t x, Int_t y)
 Reparent window to new parent window at position (x,y). More...
 
Int_t RequestLocator (Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
 Request Locator position. More...
 
Int_t RequestString (Int_t x, Int_t y, char *text)
 Request a string. More...
 
void RescaleWindow (Int_t wid, UInt_t w, UInt_t h)
 Rescale the window wid. More...
 
Int_t ResizePixmap (Int_t wid, UInt_t w, UInt_t h)
 Resize a pixmap. More...
 
void ResizeWindow (Int_t wid)
 Resize the current window if necessary. More...
 
void ResizeWindow (Window_t id, UInt_t w, UInt_t h)
 Resize the window. More...
 
UInt_t ScreenWidthMM () const
 Returns the width of the screen in millimeters. More...
 
void SelectInput (Window_t id, UInt_t evmask)
 Defines which input events the window is interested in. More...
 
void SelectWindow (Int_t wid)
 Select window to which subsequent output is directed. More...
 
void SendEvent (Window_t id, Event_t *ev)
 Send event ev to window id. More...
 
void SetCharacterUp (Float_t chupx, Float_t chupy)
 Set character up vector. More...
 
void SetClassHints (Window_t id, char *className, char *resourceName)
 Set the windows class and resource name. More...
 
void SetClipOFF (Int_t wid)
 Turn off the clipping for the window wid. More...
 
void SetClipRectangles (GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
 Set clipping rectangles in graphics context. More...
 
void SetClipRegion (Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Set clipping region for the window wid. More...
 
void SetCursor (Int_t win, ECursor cursor)
 Set the cursor. More...
 
void SetCursor (Window_t id, Cursor_t curid)
 Set the specified cursor. More...
 
void SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
 Specify a dash pattern. More...
 
void SetDNDAware (Window_t, Atom_t *)
 Add XdndAware property and the list of drag and drop types to the Window win. More...
 
void SetDoubleBuffer (Int_t wid, Int_t mode)
 Set the double buffer on/off on window wid. More...
 
void SetDoubleBufferOFF ()
 Turn double buffer mode off. More...
 
void SetDoubleBufferON ()
 Turn double buffer mode on. More...
 
void SetDrawMode (EDrawMode mode)
 Set the drawing mode. More...
 
void SetFillColor (Color_t cindex)
 Set color index for fill areas. More...
 
void SetFillStyle (Style_t style)
 Set fill area style. More...
 
void SetForeground (GContext_t gc, ULong_t foreground)
 Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set). More...
 
void SetIconName (Window_t id, char *name)
 Set window icon name. More...
 
void SetIconPixmap (Window_t id, Pixmap_t pic)
 Set pixmap the WM can use when the window is iconized. More...
 
void SetInputFocus (Window_t id)
 Set keyboard input focus to window id. More...
 
void SetKeyAutoRepeat (Bool_t on=kTRUE)
 Turn key auto repeat on or off. More...
 
void SetLineColor (Color_t cindex)
 Set color index for lines. More...
 
void SetLineStyle (Style_t linestyle)
 Set line style. More...
 
void SetLineType (Int_t n, Int_t *dash)
 Set line type. More...
 
void SetLineWidth (Width_t width)
 Set line width. More...
 
void SetMarkerColor (Color_t cindex)
 Set color index for markers. More...
 
void SetMarkerSize (Float_t markersize)
 Set marker size index. More...
 
void SetMarkerStyle (Style_t markerstyle)
 Set marker style. More...
 
void SetMWMHints (Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
 Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?). More...
 
void SetOpacity (Int_t percent)
 Set opacity of a window. More...
 
void SetPrimarySelectionOwner (Window_t id)
 Makes the window id the current owner of the primary selection. More...
 
void SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b)
 Set color intensities for given color index. More...
 
Bool_t SetSelectionOwner (Window_t, Atom_t &)
 Changes the owner and last-change time for the specified selection. More...
 
void SetTextAlign (Short_t talign=11)
 Set text alignment. More...
 
void SetTextColor (Color_t cindex)
 Set color index for text. More...
 
virtual Int_t SetTextFont (char *fontname, ETextSetMode mode)
 Set text font to specified name. More...
 
virtual void SetTextFont (Font_t fontnumber)
 Set current text font number. More...
 
void SetTextMagnitude (Float_t mgn=1)
 Sets the current text magnification factor to "mgn". More...
 
virtual void SetTextSize (Float_t textsize)
 Set current text size. More...
 
void SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist)
 Add the list of drag and drop types to the Window win. More...
 
void SetWindowBackground (Window_t id, ULong_t color)
 Set the window background color. More...
 
void SetWindowBackgroundPixmap (Window_t id, Pixmap_t pxm)
 Set pixmap as window background. More...
 
void SetWindowName (Window_t id, char *name)
 Set window name. More...
 
void SetWMPosition (Window_t id, Int_t x, Int_t y)
 Tell the window manager the desired window position. More...
 
void SetWMSize (Window_t id, UInt_t w, UInt_t h)
 Tell the window manager the desired window size. More...
 
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. More...
 
void SetWMState (Window_t id, EInitialState state)
 Set the initial state of the window. Either kNormalState or kIconicState. More...
 
void SetWMTransientHint (Window_t id, Window_t main_id)
 Tell window manager that window is a transient window of main. More...
 
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. More...
 
void SubtractRegion (Region_t rega, Region_t regb, Region_t result)
 Subtract rega from regb. More...
 
Int_t SupportsExtension (const char *ext) const
 Returns 1 if window system server supports extension given by the argument, returns 0 in case extension is not supported and returns -1 in case of error (like server not initialized). More...
 
void Sync (Int_t mode)
 Set synchronisation on or off. More...
 
Int_t TextWidth (FontStruct_t font, const char *s, Int_t len)
 Return length of string in pixels. Size depends on font. More...
 
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. More...
 
void UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest)
 Union of rectangle with a region. More...
 
void UnionRegion (Region_t rega, Region_t regb, Region_t result)
 Compute the union of rega and regb and return result region. More...
 
void UnmapWindow (Window_t id)
 Unmap window from screen. More...
 
void Update (Int_t mode=0)
 Flush (mode = 0, default) or synchronize (mode = 1) X output buffer. More...
 
void UpdateWindow (Int_t mode)
 Update display. More...
 
void Warp (Int_t ix, Int_t iy, Window_t id=0)
 Set pointer position. More...
 
void WMDeleteNotify (Window_t id)
 Tell WM to send message when window is closed via WM. More...
 
Int_t WriteGIF (char *name)
 Writes the current window into GIF file. More...
 
void WritePixmap (Int_t wid, UInt_t w, UInt_t h, char *pxname)
 Write the pixmap wid in the bitmap file pxname. More...
 
void XorRegion (Region_t rega, Region_t regb, Region_t result)
 Calculate the difference between the union and intersection of two regions. More...
 
- Public Member Functions inherited from TVirtualX
 TVirtualX ()
 
 TVirtualX (const char *name, const char *title)
 Ctor of ABC. More...
 
virtual ~TVirtualX ()
 
virtual Int_t AddPixmap (ULong_t pixid, UInt_t w, UInt_t h)
 Registers a pixmap created by TGLManager as a ROOT pixmap. More...
 
virtual Int_t AddWindow (ULong_t qwid, UInt_t w, UInt_t h)
 Registers a window created by Qt as a ROOT window. More...
 
virtual Bool_t AllocColor (Colormap_t cmap, ColorStruct_t &color)
 Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware. More...
 
virtual void BeginModalSessionFor (Window_t window)
 Start a modal session for a dialog window. More...
 
virtual void Bell (Int_t percent)
 Sets the sound bell. Percent is loudness from -100% to 100%. More...
 
virtual void ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t)
 Changes the specified dynamic parameters if the pointer is actively grabbed by the client and if the specified time is no earlier than the last-pointer-grab time and no later than the current X server time. More...
 
virtual void ChangeGC (GContext_t gc, GCValues_t *gval)
 Changes the components specified by the mask in gval for the specified GC. More...
 
virtual void ChangeProperties (Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
 Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. More...
 
virtual void ChangeProperty (Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
 Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. More...
 
virtual void ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr)
 Changes the attributes of the specified window "id" according the values provided in "attr". More...
 
virtual Bool_t CheckEvent (Window_t id, EGEventType type, Event_t &ev)
 Check if there is for window "id" an event of type "type". More...
 
virtual void ClearArea (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Paints a rectangular area in the specified window "id" according to the specified dimensions with the window's background pixel or pixmap. More...
 
virtual void ClearWindow ()
 Clears the entire area of the current window. More...
 
virtual void ClearWindow (Window_t id)
 Clears the entire area in the specified window and it is equivalent to ClearArea(id, 0, 0, 0, 0) More...
 
virtual void CloseDisplay ()
 Closes connection to display server and destroys all windows. More...
 
virtual void ClosePixmap ()
 Deletes current pixmap. More...
 
virtual void CloseWindow ()
 Deletes current window. More...
 
virtual void ConvertPrimarySelection (Window_t id, Atom_t clipboard, Time_t when)
 Causes a SelectionRequest event to be sent to the current primary selection owner. More...
 
virtual void ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
 Requests that the specified selection be converted to the specified target type. More...
 
virtual 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)
 Combines the specified rectangle of "src" with the specified rectangle of "dest" according to the "gc". More...
 
virtual void CopyGC (GContext_t org, GContext_t dest, Mask_t mask)
 Copies the specified components from the source GC "org" to the destination GC "dest". More...
 
virtual void CopyPixmap (Int_t wid, Int_t xpos, Int_t ypos)
 Copies the pixmap "wid" at the position [xpos,ypos] in the current window. More...
 
virtual Pixmap_t CreateBitmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
 Creates a bitmap (i.e. More...
 
virtual Cursor_t CreateCursor (ECursor cursor)
 Creates the specified cursor. More...
 
virtual GContext_t CreateGC (Drawable_t id, GCValues_t *gval)
 Creates a graphics context using the provided GCValues_t *gval structure. More...
 
virtual Drawable_t CreateImage (UInt_t width, UInt_t height)
 Allocates the memory needed for an drawable. More...
 
virtual void CreateOpenGLContext (Int_t wid=0)
 Creates OpenGL context for window "wid". More...
 
virtual Handle_t CreateOpenGLContext (Window_t windowID, Handle_t sharedContext)
 Creates OpenGL context for window "windowID". More...
 
virtual Window_t CreateOpenGLWindow (Window_t parentID, UInt_t width, UInt_t height, const std::vector< std::pair< UInt_t, Int_t > > &format)
 Create window with special pixel format. Noop everywhere except Cocoa. More...
 
virtual Bool_t CreatePictureFromData (Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Creates a picture pict from data in bitmap format. More...
 
virtual Bool_t CreatePictureFromFile (Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Creates a picture pict from data in file "filename". More...
 
virtual Pixmap_t CreatePixmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
 Creates a pixmap from bitmap data of the width, height, and depth you specified and returns a pixmap that identifies it. More...
 
virtual Pixmap_t CreatePixmap (Drawable_t id, UInt_t w, UInt_t h)
 Creates a pixmap of the specified width and height and returns a pixmap ID that identifies it. More...
 
virtual Pixmap_t CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height)
 create pixmap from RGB data. More...
 
virtual Region_t CreateRegion ()
 Creates a new empty region. More...
 
virtual 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)
 Creates an unmapped subwindow for a specified parent window and returns the created window. More...
 
virtual void DeleteFont (FontStruct_t fs)
 Explicitly deletes the font structure "fs" obtained via LoadQueryFont(). More...
 
virtual void DeleteGC (GContext_t gc)
 Deletes the specified GC "gc". More...
 
virtual void DeleteImage (Drawable_t img)
 Deallocates the memory associated with the image img. More...
 
virtual void DeleteOpenGLContext (Int_t wid=0)
 Deletes OpenGL context for window "wid". More...
 
virtual void DeletePictureData (void *data)
 Delete picture data created by the function ReadPictureDataFromFile. More...
 
virtual void DeletePixmap (Pixmap_t pmap)
 Explicitly deletes the pixmap resource "pmap". More...
 
virtual void DeleteProperty (Window_t, Atom_t &)
 Deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist. More...
 
virtual void DestroyRegion (Region_t reg)
 Destroys the region "reg". More...
 
virtual void DestroySubwindows (Window_t id)
 The DestroySubwindows function destroys all inferior windows of the specified window, in bottom-to-top stacking order. More...
 
virtual void DestroyWindow (Window_t id)
 Destroys the window "id" as well as all of its subwindows. More...
 
virtual void DispatchClientMessage (UInt_t messageID)
 Force processing of event, sent by SendEvent before. More...
 
virtual const char * DisplayName (const char *=0)
 Returns hostname on which the display is opened. More...
 
virtual void DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
 Draws a box between [x1,y1] and [x2,y2] according to the "mode". More...
 
virtual void DrawCellArray (Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
 Draws a cell array. More...
 
virtual void DrawFillArea (Int_t n, TPoint *xy)
 Fills area described by the polygon. More...
 
virtual void DrawLine (Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Uses the components of the specified GC to draw a line between the specified set of points (x1, y1) and (x2, y2). More...
 
virtual void DrawLine (Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draws a line. More...
 
virtual void DrawPolyLine (Int_t n, TPoint *xy)
 Draws a line through all points in the list. More...
 
virtual void DrawPolyMarker (Int_t n, TPoint *xy)
 Draws "n" markers with the current attributes at position [x,y]. More...
 
virtual void DrawRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h]. More...
 
virtual void DrawSegments (Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
 Draws multiple line segments. More...
 
virtual void DrawString (Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
 Each character image, as defined by the font in the GC, is treated as an additional mask for a fill operation on the drawable. More...
 
virtual void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
 Draws a text string using current font. More...
 
virtual void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text, ETextMode mode)
 Draws a text string using current font. More...
 
virtual Bool_t EmptyRegion (Region_t reg)
 Returns kTRUE if the region reg is empty. More...
 
virtual Bool_t EqualRegion (Region_t rega, Region_t regb)
 Returns kTRUE if the two regions have the same offset, size, and shape. More...
 
virtual Int_t EventsPending ()
 Returns the number of events that have been received from the X server but have not been removed from the event queue. More...
 
virtual UInt_t ExecCommand (TGWin32Command *code)
 Executes the command "code" coming from the other threads (Win32) More...
 
virtual void FillPolygon (Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
 Fills the region closed by the specified path. More...
 
virtual void FillRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h]. More...
 
virtual 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, with a maximum depth of maxd. More...
 
virtual void FlushOpenGLBuffer (Handle_t ctx)
 Flushes OpenGL buffer. More...
 
virtual void FreeColor (Colormap_t cmap, ULong_t pixel)
 Frees color cell with specified pixel value. More...
 
virtual void FreeFontNames (char **fontlist)
 Frees the specified the array of strings "fontlist". More...
 
virtual void FreeFontStruct (FontStruct_t fs)
 Frees the font structure "fs". More...
 
virtual void GetCharacterUp (Float_t &chupx, Float_t &chupy)
 Returns character up vector. More...
 
virtual 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: More...
 
virtual Colormap_t GetColormap () const
 Returns handle to colormap. More...
 
virtual Handle_t GetCurrentOpenGLContext ()
 Asks OpenGL subsystem about the current OpenGL context. More...
 
virtual Window_t GetCurrentWindow () const
 pointer to the current internal window used in canvas graphics More...
 
virtual Window_t GetDefaultRootWindow () const
 Returns handle to the default root window created when calling XOpenDisplay(). More...
 
virtual Int_t GetDepth () const
 Returns depth of screen (number of bit planes). More...
 
virtual Display_t GetDisplay () const
 Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
virtual Int_t GetDoubleBuffer (Int_t wid)
 Queries the double buffer value for the window "wid". More...
 
EDrawMode GetDrawMode ()
 
virtual Int_t GetFontAscent () const
 Returns the ascent of the current font (in pixels). More...
 
virtual Int_t GetFontAscent (const char *mess) const
 Default version is noop, but in principle what ROOT understands as ascent is text related. More...
 
virtual Int_t GetFontDescent () const
 Returns the descent of the current font (in pixels. More...
 
virtual Int_t GetFontDescent (const char *mess) const
 Default version is noop, but in principle what ROOT understands as descent requires a certain text. More...
 
virtual FontH_t GetFontHandle (FontStruct_t fs)
 Returns the font handle of the specified font structure "fs". More...
 
virtual void GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
 Returns the font properties. More...
 
virtual FontStruct_t GetFontStruct (FontH_t fh)
 Retrieves the associated font structure of the font specified font handle "fh". More...
 
virtual FontStruct_t GetGCFont (GContext_t gc)
 Return the font associated with the graphics context gc. More...
 
virtual void GetGCValues (GContext_t gc, GCValues_t &gval)
 Returns the components specified by the mask in "gval" for the specified GC "gc" (see also the GCValues_t structure) More...
 
virtual void GetGeometry (Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Returns position and size of window "wid". More...
 
virtual void GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height)
 Returns the width and height of the image id. More...
 
virtual Window_t GetInputFocus ()
 Returns the window id of the window having the input focus. More...
 
virtual Handle_t GetNativeEvent () const
 Returns the current native event handle. More...
 
virtual Double_t GetOpenGLScalingFactor ()
 On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height. More...
 
virtual Window_t GetParent (Window_t id) const
 Returns the parent of the window "id". More...
 
virtual void GetPasteBuffer (Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
 Gets contents of the paste buffer "atom" into the string "text". More...
 
virtual ULong_t GetPixel (Color_t cindex)
 Returns pixel value associated to specified ROOT color number "cindex". More...
 
virtual void GetPlanes (Int_t &nplanes)
 Returns the maximum number of planes. More...
 
virtual Window_t GetPrimarySelectionOwner ()
 Returns the window id of the current owner of the primary selection. More...
 
virtual 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, 16-bit, or 32-bit items transferred; the number of bytes remaining to be read in the property; and a pointer to the data actually returned. More...
 
virtual void GetRegionBox (Region_t reg, Rectangle_t *rect)
 Returns smallest enclosing rectangle. More...
 
virtual void GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b)
 Returns RGB values for color "index". More...
 
virtual Int_t GetScreen () const
 Returns screen number. More...
 
virtual void GetTextExtent (UInt_t &w, UInt_t &h, char *mess)
 Returns the size of the specified character string "mess". More...
 
virtual void GetTextExtent (UInt_t &w, UInt_t &h, wchar_t *mess)
 Returns the size of the specified character string "mess". More...
 
virtual Float_t GetTextMagnitude ()
 Returns the current font magnification factor. More...
 
virtual Visual_t GetVisual () const
 Returns handle to visual. More...
 
virtual void GetWindowAttributes (Window_t id, WindowAttributes_t &attr)
 The WindowAttributes_t structure is set to default. More...
 
virtual Window_t GetWindowID (Int_t wid)
 Returns the X11 window identifier. More...
 
virtual void GetWindowSize (Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Returns the location and the size of window "id". More...
 
virtual void GrabButton (Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
 Establishes a passive grab on a certain mouse button. More...
 
virtual void GrabKey (Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
 Establishes a passive grab on the keyboard. More...
 
virtual void GrabPointer (Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
 Establishes an active pointer grab. More...
 
virtual Bool_t HasTTFonts () const
 Returns True when TrueType fonts are used. More...
 
virtual void IconifyWindow (Window_t id)
 Iconifies the window "id". More...
 
virtual Bool_t Init (void *display=0)
 Initializes the X system. More...
 
virtual Int_t InitWindow (ULong_t window)
 Creates a new window and return window number. More...
 
virtual Atom_t InternAtom (const char *atom_name, Bool_t only_if_exist)
 Returns the atom identifier associated with the specified "atom_name" string. More...
 
virtual void IntersectRegion (Region_t rega, Region_t regb, Region_t result)
 Computes the intersection of two regions. More...
 
virtual Bool_t IsCmdThread () const
 
virtual Bool_t IsDNDAware (Window_t win, Atom_t *typelist)
 Checks if the Window is DND aware, and knows any of the DND formats passed in argument. More...
 
virtual Int_t KeysymToKeycode (UInt_t keysym)
 Converts the "keysym" to the appropriate keycode. More...
 
virtual char ** ListFonts (const char *fontname, Int_t max, Int_t &count)
 Returns list of font names matching fontname regexp, like "-*-times-*". More...
 
virtual FontStruct_t LoadQueryFont (const char *font_name)
 Provides the most common way for accessing a font: opens (loads) the specified font and returns a pointer to the appropriate FontStruct_t structure. More...
 
virtual void LookupString (Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
 Converts the keycode from the event structure to a key symbol (according to the modifiers specified in the event structure and the current keyboard mapping). More...
 
virtual void LowerWindow (Window_t id)
 Lowers the specified window "id" to the bottom of the stack so that it does not obscure any sibling windows. More...
 
virtual Bool_t MakeOpenGLContextCurrent (Handle_t ctx, Window_t windowID)
 Makes context ctx current OpenGL context. More...
 
virtual void MapGCFont (GContext_t, FontStruct_t)
 Map the XftFont with the Graphics Context using it. More...
 
virtual void MapRaised (Window_t id)
 Maps the window "id" and all of its subwindows that have had map requests on the screen and put this window on the top of of the stack of all windows. More...
 
virtual void MapSubwindows (Window_t id)
 Maps all subwindows for the specified window "id" in top-to-bottom stacking order. More...
 
virtual void MapWindow (Window_t id)
 Maps the window "id" and all of its subwindows that have had map requests. More...
 
virtual void MoveResizeWindow (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Changes the size and location of the specified window "id" without raising it. More...
 
virtual void MoveWindow (Int_t wid, Int_t x, Int_t y)
 Moves the window "wid" to the specified x and y coordinates. More...
 
virtual void MoveWindow (Window_t id, Int_t x, Int_t y)
 Moves the specified window to the specified x and y coordinates. More...
 
virtual Bool_t NeedRedraw (ULong_t tgwindow, Bool_t force)
 Notify the low level GUI layer ROOT requires "tgwindow" to be updated. More...
 
virtual void NextEvent (Event_t &event)
 The "event" is set to default event. More...
 
virtual Int_t OpenDisplay (const char *dpyName)
 Opens connection to display server (if such a thing exist on the current platform). More...
 
virtual Int_t OpenPixmap (UInt_t w, UInt_t h)
 Creates a pixmap of the width "w" and height "h" you specified. More...
 
virtual Bool_t ParseColor (Colormap_t cmap, const char *cname, ColorStruct_t &color)
 Looks up the string name of a color "cname" with respect to the screen associated with the specified colormap. More...
 
virtual Bool_t PointInRegion (Int_t x, Int_t y, Region_t reg)
 Returns kTRUE if the point [x, y] is contained in the region reg. More...
 
virtual Region_t PolygonRegion (Point_t *points, Int_t np, Bool_t winding)
 Returns a region for the polygon defined by the points array. More...
 
virtual void PutImage (Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Combines an image with a rectangle of the specified drawable. More...
 
virtual void PutPixel (Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
 Overwrites the pixel in the image with the specified pixel value. More...
 
virtual void QueryColor (Colormap_t cmap, ColorStruct_t &color)
 Returns the current RGB value for the pixel in the "color" structure. More...
 
virtual void QueryPointer (Int_t &ix, Int_t &iy)
 Returns the pointer position. More...
 
virtual void QueryPointer (Window_t id, Window_t &rootw, Window_t &childw, Int_t &root_x, Int_t &root_y, Int_t &win_x, Int_t &win_y, UInt_t &mask)
 Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin. More...
 
virtual void RaiseWindow (Window_t id)
 Raises the specified window to the top of the stack so that no sibling window obscures it. More...
 
virtual 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. More...
 
virtual Bool_t ReadPictureDataFromFile (const char *filename, char ***ret_data)
 Reads picture data from file "filename" and store it in "ret_data". More...
 
virtual void RemoveWindow (ULong_t qwid)
 Removes the created by Qt window "qwid". More...
 
virtual void ReparentWindow (Window_t id, Window_t pid, Int_t x, Int_t y)
 If the specified window is mapped, ReparentWindow automatically performs an UnmapWindow request on it, removes it from its current position in the hierarchy, and inserts it as the child of the specified parent. More...
 
virtual Int_t RequestLocator (Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
 Requests Locator position. More...
 
virtual Int_t RequestString (Int_t x, Int_t y, char *text)
 Requests string: text is displayed and can be edited with Emacs-like keybinding. More...
 
virtual void RescaleWindow (Int_t wid, UInt_t w, UInt_t h)
 Rescales the window "wid". More...
 
virtual Int_t ResizePixmap (Int_t wid, UInt_t w, UInt_t h)
 Resizes the specified pixmap "wid". More...
 
virtual void ResizeWindow (Int_t wid)
 Resizes the window "wid" if necessary. More...
 
virtual void ResizeWindow (Window_t id, UInt_t w, UInt_t h)
 Changes the width and height of the specified window "id", not including its borders. More...
 
virtual UInt_t ScreenWidthMM () const
 Returns the width of the screen in millimeters. More...
 
virtual void SelectInput (Window_t id, UInt_t evmask)
 Defines which input events the window is interested in. More...
 
virtual void SelectPixmap (Int_t qpixid)
 Selects the pixmap "qpixid". More...
 
virtual void SelectWindow (Int_t wid)
 Selects the window "wid" to which subsequent output is directed. More...
 
virtual void SendEvent (Window_t id, Event_t *ev)
 Specifies the event "ev" is to be sent to the window "id". More...
 
virtual void SetCharacterUp (Float_t chupx, Float_t chupy)
 Sets character up vector. More...
 
virtual void SetClassHints (Window_t id, char *className, char *resourceName)
 Sets the windows class and resource name. More...
 
virtual void SetClipOFF (Int_t wid)
 Turns off the clipping for the window "wid". More...
 
virtual void SetClipRectangles (GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
 Sets clipping rectangles in graphics context. More...
 
virtual void SetClipRegion (Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Sets clipping region for the window "wid". More...
 
virtual void SetCursor (Int_t win, ECursor cursor)
 The cursor "cursor" will be used when the pointer is in the window "wid". More...
 
virtual void SetCursor (Window_t id, Cursor_t curid)
 Sets the cursor "curid" to be used when the pointer is in the window "id". More...
 
virtual void SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
 Sets the dash-offset and dash-list attributes for dashed line styles in the specified GC. More...
 
virtual void SetDNDAware (Window_t, Atom_t *)
 Add XdndAware property and the list of drag and drop types to the Window win. More...
 
virtual void SetDoubleBuffer (Int_t wid, Int_t mode)
 Sets the double buffer on/off on the window "wid". More...
 
virtual void SetDoubleBufferOFF ()
 Turns double buffer mode off. More...
 
virtual void SetDoubleBufferON ()
 Turns double buffer mode on. More...
 
virtual void SetDrawMode (EDrawMode mode)
 Sets the drawing mode. More...
 
virtual void SetFillColor (Color_t cindex)
 Sets color index "cindex" for fill areas. More...
 
virtual void SetFillStyle (Style_t style)
 Sets fill area style. More...
 
virtual void SetForeground (GContext_t gc, ULong_t foreground)
 Sets the foreground color for the specified GC (shortcut for ChangeGC with only foreground mask set). More...
 
virtual void SetIconName (Window_t id, char *name)
 Sets the window icon name. More...
 
virtual void SetIconPixmap (Window_t id, Pixmap_t pix)
 Sets the icon name pixmap. More...
 
virtual void SetInputFocus (Window_t id)
 Changes the input focus to specified window "id". More...
 
virtual void SetKeyAutoRepeat (Bool_t on=kTRUE)
 Turns key auto repeat on (kTRUE) or off (kFALSE). More...
 
virtual void SetLineColor (Color_t cindex)
 Sets color index "cindex" for drawing lines. More...
 
virtual void SetLineStyle (Style_t linestyle)
 Sets the line style. More...
 
virtual void SetLineType (Int_t n, Int_t *dash)
 Sets the line type. More...
 
virtual void SetLineWidth (Width_t width)
 Sets the line width. More...
 
virtual void SetMarkerColor (Color_t cindex)
 Sets color index "cindex" for markers. More...
 
virtual void SetMarkerSize (Float_t markersize)
 Sets marker size index. More...
 
virtual void SetMarkerStyle (Style_t markerstyle)
 Sets marker style. More...
 
virtual void SetMWMHints (Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
 Sets decoration style. More...
 
virtual void SetOpacity (Int_t percent)
 Sets opacity of the current window. More...
 
virtual void SetPrimarySelectionOwner (Window_t id)
 Makes the window "id" the current owner of the primary selection. More...
 
virtual void SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b)
 Sets color intensities the specified color index "cindex". More...
 
virtual Bool_t SetSelectionOwner (Window_t, Atom_t &)
 Changes the owner and last-change time for the specified selection. More...
 
virtual void SetTextAlign (Short_t talign=11)
 Sets the text alignment. More...
 
virtual void SetTextColor (Color_t cindex)
 Sets the color index "cindex" for text. More...
 
virtual Int_t SetTextFont (char *fontname, ETextSetMode mode)
 Sets text font to specified name "fontname".This function returns 0 if the specified font is found, 1 if it is not. More...
 
virtual void SetTextFont (Font_t fontnumber)
 Sets the current text font number. More...
 
virtual void SetTextMagnitude (Float_t mgn)
 Sets the current text magnification factor to "mgn". More...
 
virtual void SetTextSize (Float_t textsize)
 Sets the current text size to "textsize". More...
 
virtual void SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist)
 Add the list of drag and drop types to the Window win. More...
 
virtual void SetWindowBackground (Window_t id, ULong_t color)
 Sets the background of the window "id" to the specified color value "color". More...
 
virtual void SetWindowBackgroundPixmap (Window_t id, Pixmap_t pxm)
 Sets the background pixmap of the window "id" to the specified pixmap "pxm". More...
 
virtual void SetWindowName (Window_t id, char *name)
 Sets the window name. More...
 
virtual void SetWMPosition (Window_t id, Int_t x, Int_t y)
 Tells the window manager the desired position [x,y] of window "id". More...
 
virtual void SetWMSize (Window_t id, UInt_t w, UInt_t h)
 Tells window manager the desired size of window "id". More...
 
virtual void SetWMSizeHints (Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
 Gives the window manager minimum and maximum size hints of the window "id". More...
 
virtual void SetWMState (Window_t id, EInitialState state)
 Sets the initial state of the window "id": either kNormalState or kIconicState. More...
 
virtual void SetWMTransientHint (Window_t id, Window_t main_id)
 Tells window manager that the window "id" is a transient window of the window "main_id". More...
 
virtual void ShapeCombineMask (Window_t id, Int_t x, Int_t y, Pixmap_t mask)
 The Non-rectangular Window Shape Extension adds non-rectangular windows to the System. More...
 
virtual void SubtractRegion (Region_t rega, Region_t regb, Region_t result)
 Subtracts regb from rega and stores the results in result. More...
 
virtual Int_t SupportsExtension (const char *ext) const
 Returns 1 if window system server supports extension given by the argument, returns 0 in case extension is not supported and returns -1 in case of error (like server not initialized). More...
 
virtual void Sync (Int_t mode)
 Set synchronisation on or off. More...
 
virtual Int_t TextWidth (FontStruct_t font, const char *s, Int_t len)
 Return length of the string "s" in pixels. Size depends on font. More...
 
virtual 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)
 Translates coordinates in one window to the coordinate space of another window. More...
 
virtual void UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest)
 Updates the destination region from a union of the specified rectangle and the specified source region. More...
 
virtual void UnionRegion (Region_t rega, Region_t regb, Region_t result)
 Computes the union of two regions. More...
 
virtual void UnmapWindow (Window_t id)
 Unmaps the specified window "id". More...
 
virtual void Update (Int_t mode=0)
 Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer. More...
 
virtual void UpdateWindow (Int_t mode)
 Updates or synchronises client and server once (not permanent). More...
 
virtual void Warp (Int_t ix, Int_t iy, Window_t id=0)
 Sets the pointer position. More...
 
virtual void WMDeleteNotify (Window_t id)
 Tells WM to send message when window is closed via WM. More...
 
virtual Int_t WriteGIF (char *name)
 Writes the current window into GIF file. More...
 
virtual void WritePixmap (Int_t wid, UInt_t w, UInt_t h, char *pxname)
 Writes the pixmap "wid" in the bitmap file "pxname". More...
 
virtual void XorRegion (Region_t rega, Region_t regb, Region_t result)
 Calculates the difference between the union and intersection of two regions. More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor. More...
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor. More...
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual void SetName (const char *name)
 Set the name of the TNamed. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor. More...
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor. More...
 
virtual ~TAttLine ()
 AttLine destructor. More...
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine. More...
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line. More...
 
virtual Color_t GetLineColor () const
 Return the line color. More...
 
virtual Style_t GetLineStyle () const
 Return the line style. More...
 
virtual Width_t GetLineWidth () const
 Return the line width. More...
 
virtual void Modify ()
 Change current line attributes if necessary. More...
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values. More...
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes. More...
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color. More...
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color. More...
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style. More...
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width. More...
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor. More...
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor. More...
 
virtual ~TAttFill ()
 AttFill destructor. More...
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill. More...
 
virtual Color_t GetFillColor () const
 Return the fill area color. More...
 
virtual Style_t GetFillStyle () const
 Return the fill area style. More...
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary. More...
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values. More...
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out. More...
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes. More...
 
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color. More...
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color. More...
 
virtual void SetFillStyle (Style_t fstyle)
 Set the fill area style. More...
 
- Public Member Functions inherited from TAttText
 TAttText ()
 AttText default constructor. More...
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor. More...
 
virtual ~TAttText ()
 AttText destructor. More...
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText. More...
 
virtual Short_t GetTextAlign () const
 Return the text alignment. More...
 
virtual Float_t GetTextAngle () const
 Return the text angle. More...
 
virtual Color_t GetTextColor () const
 Return the text color. More...
 
virtual Font_t GetTextFont () const
 Return the text font. More...
 
virtual Float_t GetTextSize () const
 Return the text size. More...
 
virtual void Modify ()
 Change current text attributes if necessary. More...
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values. More...
 
virtual void SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
 Save text attributes as C++ statement(s) on output stream out. More...
 
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment. More...
 
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle. More...
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes. More...
 
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color. More...
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent marker color. More...
 
virtual void SetTextFont (Font_t tfont=62)
 Set the text font. More...
 
virtual void SetTextSize (Float_t tsize=1)
 Set the text size. More...
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixels. More...
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 TAttMarker default constructor. More...
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor. More...
 
virtual ~TAttMarker ()
 TAttMarker destructor. More...
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker. More...
 
virtual Color_t GetMarkerColor () const
 Return the marker color. More...
 
virtual Size_t GetMarkerSize () const
 Return the marker size. More...
 
virtual Style_t GetMarkerStyle () const
 Return the marker style. More...
 
virtual void Modify ()
 Change current marker attributes if necessary. More...
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values. More...
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes. More...
 
virtual void SetMarkerColor (Color_t mcolor=1)
 Set the marker color. More...
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color. More...
 
virtual void SetMarkerSize (Size_t msize=1)
 Set the marker size. More...
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 Set the marker style. More...
 

Protected Member Functions

Bool_t AllocColor (Colormap cmap, RXColor *color)
 Allocate color in colormap. More...
 
XColor_tGetColor (Int_t cid)
 Return reference to internal color structure associated to color index cid. More...
 
voidGetGC (Int_t which) const
 Return desired Graphics Context ("which" maps directly on gGCList[]). More...
 
void QueryColors (Colormap cmap, RXColor *colors, Int_t ncolors)
 Returns the current RGB value for the pixel in the XColor structure. More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 

Protected Attributes

ULong_t fBlackPixel
 Value of black pixel in colormap. More...
 
Int_t fBlueDiv
 Blue value divider. More...
 
Int_t fBlueShift
 Bits to left shift blue. More...
 
Float_t fCharacterUpX
 Character Up vector along X. More...
 
Float_t fCharacterUpY
 Character Up vector along Y. More...
 
Colormap fColormap
 Default colormap, 0 if b/w. More...
 
Int_t fDepth
 Number of color planes. More...
 
voidfDisplay
 Pointer to display. More...
 
Int_t fGreenDiv
 Green value divider. More...
 
Int_t fGreenShift
 Bits to left shift green. More...
 
Bool_t fHasTTFonts
 True when TrueType fonts are used. More...
 
Bool_t fHasXft
 True when XftFonts are used. More...
 
Int_t fRedDiv
 Red value divider, -1 if no TrueColor visual. More...
 
Int_t fRedShift
 Bits to left shift red, -1 if no TrueColor visual. More...
 
Drawable fRootWin
 Root window used as parent of all windows. More...
 
Int_t fScreenNumber
 Screen number. More...
 
Int_t fTextAlign
 Text alignment (set in SetTextAlign) More...
 
Int_t fTextAlignH
 Text Alignment Horizontal. More...
 
Int_t fTextAlignV
 Text Alignment Vertical. More...
 
Float_t fTextMagnitude
 Text Magnitude. More...
 
Drawable fVisRootWin
 Root window with fVisual to be used to create GC's and XImages. More...
 
RVisual * fVisual
 Pointer to visual used by all windows. More...
 
ULong_t fWhitePixel
 Value of white pixel in colormap. More...
 
- Protected Attributes inherited from TVirtualX
EDrawMode fDrawMode
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color. More...
 
Style_t fLineStyle
 Line style. More...
 
Width_t fLineWidth
 Line width. More...
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color. More...
 
Style_t fFillStyle
 Fill area style. More...
 
- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment. More...
 
Float_t fTextAngle
 Text angle. More...
 
Color_t fTextColor
 Text color. More...
 
Font_t fTextFont
 Text font. More...
 
Float_t fTextSize
 Text size. More...
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color. More...
 
Size_t fMarkerSize
 Marker size. More...
 
Style_t fMarkerStyle
 Marker style. More...
 

Private Member Functions

void ClearPixmap (Drawable *pix)
 Clear the pixmap pix. More...
 
void CloseWindow1 ()
 Delete current window. More...
 
void CollectImageColors (ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors, Int_t &maxcolors)
 Collect in orgcolors all different original image colors. More...
 
void CopyWindowtoPixmap (Drawable *pix, Int_t xpos, Int_t ypos)
 Copy area of current window in the pixmap pix. More...
 
void FindBestVisual ()
 Find best visual, i.e. More...
 
Int_t FindColor (ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
 Returns index in orgcolors (and fNewColors) for pixel. More...
 
void FindUsableVisual (RXVisualInfo *vlist, Int_t nitems)
 Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel. More...
 
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. More...
 
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. More...
 
void MapColorStruct (ColorStruct_t *color, RXColor &xcolor)
 Map a ColorStruct_t to a XColor structure. More...
 
void MapCursor (ECursor cursor, Int_t &xcursor)
 
void MapEvent (Event_t &ev, void *xev, Bool_t tox=kTRUE)
 Map Event_t structure to XEvent structure. More...
 
void MapEventMask (UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
 Map event mask to or from X. More...
 
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. More...
 
void MapKeySym (UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
 Map to and from X key symbols. More...
 
void MapModifierState (UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
 Map modifier key state to or from X. More...
 
void MapPictureAttributes (PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE)
 Map a PictureAttributes_t to a XpmAttributes structure. More...
 
void MapSetWindowAttributes (SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr)
 Map a SetWindowAttributes_t to a XSetWindowAttributes structure. More...
 
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. More...
 
void RemovePixmap (Drawable *pix)
 Remove the pixmap pix. More...
 
void SetColor (void *gc, Int_t ci)
 Set the foreground color in GC. More...
 
void SetFillStyleIndex (Int_t style, Int_t fasi)
 Set fill area style index. More...
 
void SetInput (Int_t inp)
 Set input on or off. More...
 
void SetMarkerType (Int_t type, Int_t n, RXPoint *xy)
 Set marker type. More...
 

Private Attributes

TExMapfColors
 Hash list of colors. More...
 
Cursor fCursors [kNumCursors]
 List of cursors. More...
 
Int_t fMaxNumberOfWindows
 Maximum number of windows. More...
 
XWindow_t * fWindows
 List of windows. More...
 
voidfXEvent
 Current native (X11) event. More...
 

Additional Inherited Members

- Public Types inherited from TVirtualX
enum  EBoxMode { kHollow , kFilled }
 
enum  EDrawMode { kCopy = 1 , kXor , kInvert }
 
enum  ETextMode { kClear , kOpaque }
 
enum  ETextSetMode { kCheck , kLoad }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 
- Static Public Member Functions inherited from TVirtualX
static TVirtualX *& Instance ()
 Returns gVirtualX global. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 
- Static Public Member Functions inherited from TAttMarker
static Width_t GetMarkerLineWidth (Style_t style)
 Internal helper function that returns the line width of the given marker style (0 = filled marker) More...
 
static Style_t GetMarkerStyleBase (Style_t style)
 Internal helper function that returns the corresponding marker style with line width 1 for the given style. More...
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 

#include <TGX11.h>

Inheritance diagram for TGX11:
[legend]

Constructor & Destructor Documentation

◆ TGX11() [1/3]

TGX11::TGX11 ( )

Default constructor.

Definition at line 172 of file TGX11.cxx.

◆ TGX11() [2/3]

TGX11::TGX11 ( const TGX11 org)

Copy constructor. Currently only used by TGX11TTF.

Definition at line 250 of file TGX11.cxx.

◆ TGX11() [3/3]

TGX11::TGX11 ( const char *  name,
const char *  title 
)

Normal Constructor.

Definition at line 208 of file TGX11.cxx.

◆ ~TGX11()

TGX11::~TGX11 ( )
virtual

Destructor.

Definition at line 323 of file TGX11.cxx.

Member Function Documentation

◆ AddPixmap()

Int_t TGX11::AddPixmap ( ULong_t  pixid,
UInt_t  w,
UInt_t  h 
)
virtual

Register pixmap created by gVirtualGL.

Parameters
[in]pixidPixmap identifier
[in]w,hWidth and height of the pixmap

register new pixmap

Reimplemented from TVirtualX.

Definition at line 3644 of file TGX11.cxx.

◆ AddWindow()

Int_t TGX11::AddWindow ( ULong_t  qwid,
UInt_t  w,
UInt_t  h 
)
virtual

Register a window created by Qt as a ROOT window (like InitWindow()).

Reimplemented from TVirtualX.

Definition at line 1377 of file TGX11.cxx.

◆ AllocColor() [1/2]

Bool_t TGX11::AllocColor ( Colormap  cmap,
RXColor *  color 
)
protected

Allocate color in colormap.

If we are on an <= 8 plane machine we will use XAllocColor. If we are on a >= 15 (15, 16 or 24) plane true color machine we will calculate the pixel value using: for 15 and 16 bit true colors have 6 bits precision per color however only the 5 most significant bits are used in the color index. Except for 16 bits where green uses all 6 bits. I.e.:

15 bits = rrrrrgggggbbbbb
16 bits = rrrrrggggggbbbbb

for 24 bits each r, g and b are represented by 8 bits.

Since all colors are set with a max of 65535 (16 bits) per r, g, b we just right shift them by 10, 11 and 10 bits for 16 planes, and (10, 10, 10 for 15 planes) and by 8 bits for 24 planes. Returns kFALSE in case color allocation failed.

Definition at line 365 of file TGX11.cxx.

◆ AllocColor() [2/2]

Bool_t TGX11::AllocColor ( Colormap_t  cmap,
ColorStruct_t color 
)
virtual

Find and allocate a color cell according to the color values specified in the ColorStruct_t.

If no cell could be allocated it returns kFALSE, otherwise kTRUE.

Reimplemented from TVirtualX.

Definition at line 1366 of file GX11Gui.cxx.

◆ Bell()

void TGX11::Bell ( Int_t  percent)
virtual

Sound bell. Percent is loudness from -100% .. 100%.

Reimplemented from TVirtualX.

Definition at line 1690 of file GX11Gui.cxx.

◆ ChangeActivePointerGrab()

void TGX11::ChangeActivePointerGrab ( Window_t  ,
UInt_t  mask,
Cursor_t  cur 
)
virtual

Changes the specified dynamic parameters if the pointer is actively grabbed by the client.

Reimplemented from TVirtualX.

Definition at line 2730 of file GX11Gui.cxx.

◆ ChangeGC()

void TGX11::ChangeGC ( GContext_t  gc,
GCValues_t gval 
)
virtual

Change entries in an existing graphics context, gc, by values from gval.

Reimplemented from TVirtualX.

Definition at line 1008 of file GX11Gui.cxx.

◆ ChangeProperties()

void TGX11::ChangeProperties ( Window_t  id,
Atom_t  property,
Atom_t  type,
Int_t  format,
UChar_t data,
Int_t  len 
)
virtual

This function alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.

Reimplemented from TVirtualX.

Definition at line 2763 of file GX11Gui.cxx.

◆ ChangeProperty()

void TGX11::ChangeProperty ( Window_t  id,
Atom_t  property,
Atom_t  type,
UChar_t data,
Int_t  len 
)
virtual

This function alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.

Reimplemented from TVirtualX.

Definition at line 1734 of file GX11Gui.cxx.

◆ ChangeWindowAttributes()

void TGX11::ChangeWindowAttributes ( Window_t  id,
SetWindowAttributes_t attr 
)
virtual

Change window attributes.

Reimplemented from TVirtualX.

Definition at line 1713 of file GX11Gui.cxx.

◆ CheckEvent()

Bool_t TGX11::CheckEvent ( Window_t  id,
EGEventType  type,
Event_t ev 
)
virtual

Check if there is for window "id" an event of type "type".

If there is fill in the event structure and return true. If no such event return false.

Reimplemented from TVirtualX.

Definition at line 1768 of file GX11Gui.cxx.

◆ ClearArea()

void TGX11::ClearArea ( Window_t  id,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
virtual

Clear a window area to the background color.

Reimplemented from TVirtualX.

Definition at line 1756 of file GX11Gui.cxx.

◆ ClearPixmap()

void TGX11::ClearPixmap ( Drawable pix)
private

Clear the pixmap pix.

Definition at line 406 of file TGX11.cxx.

◆ ClearWindow() [1/2]

void TGX11::ClearWindow ( )
virtual

Clear current window.

Reimplemented from TVirtualX.

Definition at line 421 of file TGX11.cxx.

◆ ClearWindow() [2/2]

void TGX11::ClearWindow ( Window_t  id)
virtual

Clear window.

Reimplemented from TVirtualX.

Definition at line 2154 of file GX11Gui.cxx.

◆ CloseDisplay()

void TGX11::CloseDisplay ( )
virtual

Close connection to display server.

Reimplemented from TVirtualX.

Definition at line 855 of file GX11Gui.cxx.

◆ ClosePixmap()

void TGX11::ClosePixmap ( )
virtual

Delete current pixmap.

Reimplemented from TVirtualX.

Definition at line 438 of file TGX11.cxx.

◆ CloseWindow()

void TGX11::CloseWindow ( )
virtual

Delete current window.

Reimplemented from TVirtualX.

Definition at line 446 of file TGX11.cxx.

◆ CloseWindow1()

void TGX11::CloseWindow1 ( )
private

Delete current window.

Definition at line 460 of file TGX11.cxx.

◆ CollectImageColors()

void TGX11::CollectImageColors ( ULong_t  pixel,
ULong_t *&  orgcolors,
Int_t ncolors,
Int_t maxcolors 
)
private

Collect in orgcolors all different original image colors.

Definition at line 2948 of file TGX11.cxx.

◆ ConvertPrimarySelection()

void TGX11::ConvertPrimarySelection ( Window_t  id,
Atom_t  clipboard,
Time_t  when 
)
virtual

XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner.

This event specifies the selection property (primary selection), the format into which to convert that data before storing it (target = XA_STRING), the property in which the owner will place the information (sel_property), the window that wants the information (id), and the time of the conversion request (when). The selection owner responds by sending a SelectionNotify event, which confirms the selected atom and type.

Reimplemented from TVirtualX.

Definition at line 2279 of file GX11Gui.cxx.

◆ ConvertSelection()

void TGX11::ConvertSelection ( Window_t  win,
Atom_t sel,
Atom_t target,
Atom_t prop,
Time_t stamp 
)
virtual

Requests that the specified selection be converted to the specified target type.

Reimplemented from TVirtualX.

Definition at line 2744 of file GX11Gui.cxx.

◆ CopyArea()

void TGX11::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 
)
virtual

Copy a drawable (i.e.

pixmap) to another drawable (pixmap, window). The graphics context gc will be used and the source will be copied from src_x,src_y,src_x+width,src_y+height to dest_x,dest_y.

Reimplemented from TVirtualX.

Definition at line 1700 of file GX11Gui.cxx.

◆ CopyGC()

void TGX11::CopyGC ( GContext_t  org,
GContext_t  dest,
Mask_t  mask 
)
virtual

Copies graphics context from org to dest.

Only the values specified in mask are copied. If mask = 0 then copy all fields. Both org and dest must exist.

Reimplemented from TVirtualX.

Definition at line 1027 of file GX11Gui.cxx.

◆ CopyPixmap()

void TGX11::CopyPixmap ( Int_t  wid,
Int_t  xpos,
Int_t  ypos 
)
virtual

Copy the pixmap wid at the position xpos, ypos in the current window.

Reimplemented from TVirtualX.

Definition at line 495 of file TGX11.cxx.

◆ CopyWindowtoPixmap()

void TGX11::CopyWindowtoPixmap ( Drawable pix,
Int_t  xpos,
Int_t  ypos 
)
private

Copy area of current window in the pixmap pix.

Definition at line 507 of file TGX11.cxx.

◆ CreateBitmap()

Pixmap_t TGX11::CreateBitmap ( Drawable_t  id,
const char *  bitmap,
UInt_t  width,
UInt_t  height 
)
virtual

Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.

Reimplemented from TVirtualX.

Definition at line 1097 of file GX11Gui.cxx.

◆ CreateCursor()

Cursor_t TGX11::CreateCursor ( ECursor  cursor)
virtual

Create cursor handle (just return cursor from cursor pool fCursors).

Reimplemented from TVirtualX.

Definition at line 1058 of file GX11Gui.cxx.

◆ CreateGC()

GContext_t TGX11::CreateGC ( Drawable_t  id,
GCValues_t gval 
)
virtual

Create a graphics context using the values set in gval (but only for those entries that are in the mask).

Reimplemented from TVirtualX.

Definition at line 986 of file GX11Gui.cxx.

◆ CreateImage()

Drawable_t TGX11::CreateImage ( UInt_t  width,
UInt_t  height 
)
virtual

Create a client-side XImage. Returns handle to XImage.

Reimplemented from TVirtualX.

Definition at line 2625 of file GX11Gui.cxx.

◆ CreatePictureFromData()

Bool_t TGX11::CreatePictureFromData ( Drawable_t  id,
char **  data,
Pixmap_t pict,
Pixmap_t pict_mask,
PictureAttributes_t attr 
)
virtual

Create a picture pixmap from data.

The picture attributes are used for input and output. Returns kTRUE in case of success, kFALSE otherwise. If mask does not exist it is set to kNone.

Reimplemented from TVirtualX.

Definition at line 1251 of file GX11Gui.cxx.

◆ CreatePictureFromFile()

Bool_t TGX11::CreatePictureFromFile ( Drawable_t  id,
const char *  filename,
Pixmap_t pict,
Pixmap_t pict_mask,
PictureAttributes_t attr 
)
virtual

Create a picture pixmap from data on file.

The picture attributes are used for input and output. Returns kTRUE in case of success, kFALSE otherwise. If mask does not exist it is set to kNone.

Reimplemented from TVirtualX.

Definition at line 1198 of file GX11Gui.cxx.

◆ CreatePixmap() [1/2]

Pixmap_t TGX11::CreatePixmap ( Drawable_t  id,
const char *  bitmap,
UInt_t  width,
UInt_t  height,
ULong_t  forecolor,
ULong_t  backcolor,
Int_t  depth 
)
virtual

Create a pixmap from bitmap data.

Ones will get foreground color and zeroes background color.

Reimplemented from TVirtualX.

Definition at line 1086 of file GX11Gui.cxx.

◆ CreatePixmap() [2/2]

Pixmap_t TGX11::CreatePixmap ( Drawable_t  id,
UInt_t  w,
UInt_t  h 
)
virtual

Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it.

Reimplemented from TVirtualX.

Definition at line 1077 of file GX11Gui.cxx.

◆ CreatePixmapFromData()

Pixmap_t TGX11::CreatePixmapFromData ( unsigned char *  bits,
UInt_t  width,
UInt_t  height 
)
virtual

create pixmap from RGB data.

RGB data is in format : b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..

Pixels are numbered from left to right and from top to bottom. Note that data must be 32-bit aligned

Reimplemented from TVirtualX.

Definition at line 3630 of file TGX11.cxx.

◆ CreateRegion()

Region_t TGX11::CreateRegion ( )
virtual

Create a new empty region.

Reimplemented from TVirtualX.

Definition at line 2503 of file GX11Gui.cxx.

◆ CreateWindow()

Window_t TGX11::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 
)
virtual

Return handle to newly created X window.

Reimplemented from TVirtualX.

Definition at line 383 of file GX11Gui.cxx.

◆ DeleteFont()

void TGX11::DeleteFont ( FontStruct_t  fs)
virtual

Explicitly delete font structure obtained with LoadQueryFont().

Reimplemented from TVirtualX.

Definition at line 977 of file GX11Gui.cxx.

◆ DeleteGC()

void TGX11::DeleteGC ( GContext_t  gc)
virtual

Explicitly delete a graphics context.

Reimplemented from TVirtualX.

Definition at line 1047 of file GX11Gui.cxx.

◆ DeleteImage()

void TGX11::DeleteImage ( Drawable_t  img)
virtual

Destroy XImage img.

Reimplemented from TVirtualX.

Definition at line 2677 of file GX11Gui.cxx.

◆ DeletePictureData()

void TGX11::DeletePictureData ( void data)
virtual

Delete picture data created by the function ReadPictureDataFromFile.

Reimplemented from TVirtualX.

Definition at line 1307 of file GX11Gui.cxx.

◆ DeletePixmap()

void TGX11::DeletePixmap ( Pixmap_t  pmap)
virtual

Explicitly delete pixmap resource.

Reimplemented from TVirtualX.

Definition at line 1107 of file GX11Gui.cxx.

◆ DeleteProperty()

void TGX11::DeleteProperty ( Window_t  win,
Atom_t prop 
)
virtual

Deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist.

Reimplemented from TVirtualX.

Definition at line 2706 of file GX11Gui.cxx.

◆ DestroyRegion()

void TGX11::DestroyRegion ( Region_t  reg)
virtual

Destroy region.

Reimplemented from TVirtualX.

Definition at line 2511 of file GX11Gui.cxx.

◆ DestroySubwindows()

void TGX11::DestroySubwindows ( Window_t  id)
virtual

Destroy subwindows of this window.

Reimplemented from TVirtualX.

Definition at line 280 of file GX11Gui.cxx.

◆ DestroyWindow()

void TGX11::DestroyWindow ( Window_t  id)
virtual

Destroy window.

Reimplemented from TVirtualX.

Definition at line 270 of file GX11Gui.cxx.

◆ DisplayName()

const char * TGX11::DisplayName ( const char *  dpyName = 0)
virtual

Return hostname on which the display is opened.

Reimplemented from TVirtualX.

Definition at line 995 of file TGX11.cxx.

◆ DrawBox()

void TGX11::DrawBox ( Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2,
EBoxMode  mode 
)
virtual

Draw a box.

  • mode=0 hollow (kHollow)
  • mode=1 solid (kSolid)

Reimplemented from TVirtualX.

Definition at line 524 of file TGX11.cxx.

◆ DrawCellArray()

void TGX11::DrawCellArray ( Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2,
Int_t  nx,
Int_t  ny,
Int_t ic 
)
virtual

Draw a cell array.

Parameters
[in]x1,y1: left down corner
[in]x2,y2: right up corner
[in]nx,ny: array size
[in]ic: array

Draw a cell array. The drawing is done with the pixel precision if (X2-X1)/NX (or Y) is not a exact pixel number the position of the top right corner may be wrong.

Reimplemented from TVirtualX.

Definition at line 558 of file TGX11.cxx.

◆ DrawFillArea()

void TGX11::DrawFillArea ( Int_t  n,
TPoint xyt 
)
virtual

Fill area described by polygon.

Parameters
[in]nnumber of points
[in]xytlist of points

Reimplemented from TVirtualX.

Definition at line 588 of file TGX11.cxx.

◆ DrawLine() [1/2]

void TGX11::DrawLine ( Drawable_t  id,
GContext_t  gc,
Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2 
)
virtual

Draw a line.

Reimplemented from TVirtualX.

Definition at line 1746 of file GX11Gui.cxx.

◆ DrawLine() [2/2]

void TGX11::DrawLine ( Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2 
)
virtual

Draw a line.

Parameters
[in]x1,y1: begin of line
[in]x2,y2: end of line

Reimplemented from TVirtualX.

Definition at line 607 of file TGX11.cxx.

◆ DrawPolyLine()

void TGX11::DrawPolyLine ( Int_t  n,
TPoint xyt 
)
virtual

Draw a line through all points.

Parameters
[in]nnumber of points
[in]xytlist of points

Reimplemented from TVirtualX.

Definition at line 623 of file TGX11.cxx.

◆ DrawPolyMarker()

void TGX11::DrawPolyMarker ( Int_t  n,
TPoint xyt 
)
virtual

Draw n markers with the current attributes at position x, y.

Parameters
[in]nnumber of markers to draw
[in]xytx,y coordinates of markers

Reimplemented from TVirtualX.

Definition at line 675 of file TGX11.cxx.

◆ DrawRectangle()

void TGX11::DrawRectangle ( Drawable_t  id,
GContext_t  gc,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
virtual

Draw a rectangle outline.

Reimplemented from TVirtualX.

Definition at line 2187 of file GX11Gui.cxx.

◆ DrawSegments()

void TGX11::DrawSegments ( Drawable_t  id,
GContext_t  gc,
Segment_t seg,
Int_t  nseg 
)
virtual

Draws multiple line segments. Each line is specified by a pair of points.

Reimplemented from TVirtualX.

Definition at line 2197 of file GX11Gui.cxx.

◆ DrawString()

void TGX11::DrawString ( Drawable_t  id,
GContext_t  gc,
Int_t  x,
Int_t  y,
const char *  s,
Int_t  len 
)
virtual

Draw a string using a specific graphics context in position (x,y).

Reimplemented from TVirtualX.

Definition at line 2070 of file GX11Gui.cxx.

◆ DrawText() [1/2]

void TGX11::DrawText ( Int_t  x,
Int_t  y,
Float_t  angle,
Float_t  mgn,
const char *  text,
ETextMode  mode 
)
virtual

Draw a text string using current font.

Parameters
[in]mode: drawing mode
  • mode=0 : the background is not drawn (kClear)
  • mode=1 : the background is drawn (kOpaque)
[in]x,y: text position
[in]angle: text angle
[in]mgn: magnification factor
[in]text: text string

Reimplemented from TVirtualX.

Reimplemented in TGX11TTF.

Definition at line 750 of file TGX11.cxx.

◆ DrawText() [2/2]

virtual void TGX11::DrawText ( Int_t  x,
Int_t  y,
Float_t  angle,
Float_t  mgn,
const wchar_t *  text,
ETextMode  mode 
)
inlinevirtual

Draws a text string using current font.

Parameters
[in]x,ytext position
[in]angletext angle
[in]mgnmagnification factor
[in]texttext string
[in]modedrawing mode:
  • mode = 0 the background is not drawn (kClear)
  • mode = 1 the background is drawn (kOpaque)

Reimplemented from TVirtualX.

Reimplemented in TGX11TTF.

Definition at line 176 of file TGX11.h.

◆ EmptyRegion()

Bool_t TGX11::EmptyRegion ( Region_t  reg)
virtual

Return true if the region is empty.

Reimplemented from TVirtualX.

Definition at line 2573 of file GX11Gui.cxx.

◆ EqualRegion()

Bool_t TGX11::EqualRegion ( Region_t  rega,
Region_t  regb 
)
virtual

Returns true if two regions are equal.

Reimplemented from TVirtualX.

Definition at line 2589 of file GX11Gui.cxx.

◆ EventsPending()

Int_t TGX11::EventsPending ( )
virtual

Returns number of pending events.

Reimplemented from TVirtualX.

Definition at line 1415 of file GX11Gui.cxx.

◆ FillPolygon()

void TGX11::FillPolygon ( Window_t  id,
GContext_t  gc,
Point_t points,
Int_t  npnt 
)
virtual

FillPolygon fills the region closed by the specified path.

The path is closed automatically if the last point in the list does not coincide with the first point. All point coordinates are treated as relative to the origin. For every pair of points inside the polygon, the line segment connecting them does not intersect the path.

Reimplemented from TVirtualX.

Definition at line 2433 of file GX11Gui.cxx.

◆ FillRectangle()

void TGX11::FillRectangle ( Drawable_t  id,
GContext_t  gc,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
virtual

Draw a filled rectangle. Filling is done according to the gc.

Reimplemented from TVirtualX.

Definition at line 2177 of file GX11Gui.cxx.

◆ FindBestVisual()

void TGX11::FindBestVisual ( )
private

Find best visual, i.e.

the one with the most planes and TrueColor or DirectColor. Sets fVisual, fDepth, fRootWin, fColormap, fBlackPixel and fWhitePixel.

Definition at line 779 of file TGX11.cxx.

◆ FindColor()

Int_t TGX11::FindColor ( ULong_t  pixel,
ULong_t orgcolors,
Int_t  ncolors 
)
private

Returns index in orgcolors (and fNewColors) for pixel.

Definition at line 3018 of file TGX11.cxx.

◆ FindRWindow()

Window_t TGX11::FindRWindow ( Window_t  win,
Window_t  dragwin,
Window_t  input,
int  x,
int  y,
int  maxd 
)
virtual

Recursively search in the children of Window for a Window which is at location x, y and is DND aware, with a maximum depth of maxd.

Possibility to exclude dragwin and input.

Reimplemented from TVirtualX.

Definition at line 2814 of file GX11Gui.cxx.

◆ FindUsableVisual()

void TGX11::FindUsableVisual ( RXVisualInfo *  vlist,
Int_t  nitems 
)
private

Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel.

Definition at line 847 of file TGX11.cxx.

◆ FreeColor()

void TGX11::FreeColor ( Colormap_t  cmap,
ULong_t  pixel 
)
virtual

Free color cell with specified pixel value.

Reimplemented from TVirtualX.

Definition at line 1406 of file GX11Gui.cxx.

◆ FreeFontNames()

void TGX11::FreeFontNames ( char **  fontlist)
virtual

Free list of font names.

Reimplemented from TVirtualX.

Definition at line 2617 of file GX11Gui.cxx.

◆ FreeFontStruct()

void TGX11::FreeFontStruct ( FontStruct_t  fs)
virtual

Free font structure returned by GetFontStruct().

Reimplemented from TVirtualX.

Definition at line 2135 of file GX11Gui.cxx.

◆ GetCharacterUp()

void TGX11::GetCharacterUp ( Float_t chupx,
Float_t chupy 
)
virtual

Return character up vector.

Reimplemented from TVirtualX.

Definition at line 898 of file TGX11.cxx.

◆ GetColor()

XColor_t & TGX11::GetColor ( Int_t  cid)
protected

Return reference to internal color structure associated to color index cid.

Definition at line 908 of file TGX11.cxx.

◆ GetColorBits()

unsigned char * TGX11::GetColorBits ( Drawable_t  wid,
Int_t  x = 0,
Int_t  y = 0,
UInt_t  w = 0,
UInt_t  h = 0 
)
virtual

Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format: b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..

Pixels are numbered from left to right and from top to bottom. By default all pixels from the whole drawable are returned.

Note that return array is 32-bit aligned

Reimplemented from TVirtualX.

Definition at line 3617 of file TGX11.cxx.

◆ GetColormap()

Colormap_t TGX11::GetColormap ( ) const
virtual

Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g.

GL interface).

Reimplemented from TVirtualX.

Definition at line 886 of file GX11Gui.cxx.

◆ GetCurrentWindow()

Window_t TGX11::GetCurrentWindow ( ) const
virtual

Return current window pointer. Protected method used by TGX11TTF.

Reimplemented from TVirtualX.

Definition at line 921 of file TGX11.cxx.

◆ GetDefaultRootWindow()

Window_t TGX11::GetDefaultRootWindow ( ) const
virtual

Return handle to the default root window created when calling XOpenDisplay().

Reimplemented from TVirtualX.

Definition at line 927 of file GX11Gui.cxx.

◆ GetDepth()

Int_t TGX11::GetDepth ( ) const
virtual

Returns depth of screen (number of bit planes).

Equivalent to GetPlanes().

Reimplemented from TVirtualX.

Definition at line 905 of file GX11Gui.cxx.

◆ GetDisplay()

Display_t TGX11::GetDisplay ( ) const
virtual

Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g.

GL interface).

Reimplemented from TVirtualX.

Definition at line 866 of file GX11Gui.cxx.

◆ GetDoubleBuffer()

Int_t TGX11::GetDoubleBuffer ( Int_t  wid)
virtual

Query the double buffer value for the window wid.

Reimplemented from TVirtualX.

Definition at line 942 of file TGX11.cxx.

◆ GetFontHandle()

FontH_t TGX11::GetFontHandle ( FontStruct_t  fs)
virtual

Return handle to font described by font structure.

Reimplemented from TVirtualX.

Definition at line 965 of file GX11Gui.cxx.

◆ GetFontProperties()

void TGX11::GetFontProperties ( FontStruct_t  font,
Int_t max_ascent,
Int_t max_descent 
)
virtual

Return some font properties.

Reimplemented from TVirtualX.

Definition at line 2089 of file GX11Gui.cxx.

◆ GetFontStruct()

FontStruct_t TGX11::GetFontStruct ( FontH_t  fh)
virtual

Retrieve associated font structure once we have the font handle.

Free returned FontStruct_t using FreeFontStruct().

Reimplemented from TVirtualX.

Definition at line 2123 of file GX11Gui.cxx.

◆ GetGC()

void * TGX11::GetGC ( Int_t  which) const
protected

Return desired Graphics Context ("which" maps directly on gGCList[]).

Protected method used by TGX11TTF.

Definition at line 930 of file TGX11.cxx.

◆ GetGCValues()

void TGX11::GetGCValues ( GContext_t  gc,
GCValues_t gval 
)
virtual

Get current values from graphics context gc.

Which values of the context to get is encoded in the GCValues::fMask member. If fMask = 0 then copy all fields.

Reimplemented from TVirtualX.

Definition at line 2102 of file GX11Gui.cxx.

◆ GetGeometry()

void TGX11::GetGeometry ( Int_t  wid,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h 
)
virtual

Return position and size of window wid.

Parameters
[in]wid: window identifier
[in]x,y: window position (output)
[in]w,h: window size (output)

if wid < 0 the size of the display is returned

Reimplemented from TVirtualX.

Definition at line 960 of file TGX11.cxx.

◆ GetImageSize()

void TGX11::GetImageSize ( Drawable_t  id,
UInt_t width,
UInt_t height 
)
virtual

Get size of XImage img.

Reimplemented from TVirtualX.

Definition at line 2648 of file GX11Gui.cxx.

◆ GetInputFocus()

Window_t TGX11::GetInputFocus ( )
virtual

Returns the window id of the window having the input focus.

Reimplemented from TVirtualX.

Definition at line 2224 of file GX11Gui.cxx.

◆ GetNativeEvent()

Handle_t TGX11::GetNativeEvent ( ) const
inlinevirtual

Returns the current native event handle.

Reimplemented from TVirtualX.

Definition at line 181 of file TGX11.h.

◆ GetParent()

Window_t TGX11::GetParent ( Window_t  id) const
virtual

Return the parent of the window.

Reimplemented from TVirtualX.

Definition at line 935 of file GX11Gui.cxx.

◆ GetPasteBuffer()

void TGX11::GetPasteBuffer ( Window_t  id,
Atom_t  atom,
TString text,
Int_t nchar,
Bool_t  del 
)
virtual

Get contents of paste buffer atom into string.

If del is true delete the paste buffer afterwards.

Reimplemented from TVirtualX.

Definition at line 2355 of file GX11Gui.cxx.

◆ GetPixel()

ULong_t TGX11::GetPixel ( Color_t  cindex)
virtual

Return pixel value associated to specified ROOT color number.

Reimplemented from TVirtualX.

Definition at line 1003 of file TGX11.cxx.

◆ GetPlanes()

void TGX11::GetPlanes ( Int_t nplanes)
virtual

Get maximum number of planes.

Reimplemented from TVirtualX.

Definition at line 1018 of file TGX11.cxx.

◆ GetPrimarySelectionOwner()

Window_t TGX11::GetPrimarySelectionOwner ( )
virtual

Returns the window id of the current owner of the primary selection.

That is the window in which, for example some text is selected.

Reimplemented from TVirtualX.

Definition at line 2252 of file GX11Gui.cxx.

◆ GetProperty()

Int_t TGX11::GetProperty ( Window_t  win,
Atom_t  prop,
Long_t  offset,
Long_t  length,
Bool_t  del,
Atom_t  req_type,
Atom_t act_type,
Int_t act_format,
ULong_t nitems,
ULong_t bytes,
unsigned char **  prop_list 
)
virtual

Returns the actual type of the property; the actual format of the property; the number of 8-bit, 16-bit, or 32-bit items transferred; the number of bytes remaining to be read in the property; and a pointer to the data actually returned.

Reimplemented from TVirtualX.

Definition at line 2717 of file GX11Gui.cxx.

◆ GetRegionBox()

void TGX11::GetRegionBox ( Region_t  reg,
Rectangle_t rect 
)
virtual

Return smallest enclosing rectangle.

Reimplemented from TVirtualX.

Definition at line 2597 of file GX11Gui.cxx.

◆ GetRGB()

void TGX11::GetRGB ( Int_t  index,
Float_t r,
Float_t g,
Float_t b 
)
virtual

Get rgb values for color "index".

Reimplemented from TVirtualX.

Definition at line 1026 of file TGX11.cxx.

◆ GetScreen()

Int_t TGX11::GetScreen ( ) const
virtual

Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g.

GL interface).

Reimplemented from TVirtualX.

Definition at line 896 of file GX11Gui.cxx.

◆ GetTextExtent() [1/2]

virtual void TGX11::GetTextExtent ( UInt_t w,
UInt_t h,
wchar_t *  mess 
)
inlinevirtual

Returns the size of the specified character string "mess".

Parameters
[in]wthe text width
[in]hthe text height
[in]messthe string

Reimplemented from TVirtualX.

Definition at line 186 of file TGX11.h.

◆ GetTextExtent() [2/2]

void TGX11::GetTextExtent ( UInt_t w,
UInt_t h,
char *  mess 
)
virtual

Return the size of a character string.

Parameters
[in]w: text width
[in]h: text height
[in]mess: message

Reimplemented from TVirtualX.

Definition at line 1047 of file TGX11.cxx.

◆ GetTextMagnitude()

Float_t TGX11::GetTextMagnitude ( )
inlinevirtual

Returns the current font magnification factor.

Reimplemented from TVirtualX.

Definition at line 187 of file TGX11.h.

◆ GetVisual()

Visual_t TGX11::GetVisual ( ) const
virtual

Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g.

GL interface).

Reimplemented from TVirtualX.

Definition at line 876 of file GX11Gui.cxx.

◆ GetWindowAttributes()

void TGX11::GetWindowAttributes ( Window_t  id,
WindowAttributes_t attr 
)
virtual

Get window attributes and return filled in attributes structure.

Reimplemented from TVirtualX.

Definition at line 776 of file GX11Gui.cxx.

◆ GetWindowID()

Window_t TGX11::GetWindowID ( Int_t  wid)
virtual

Return the X11 window identifier.

Parameters
[in]wid: Workstation identifier (input)

Reimplemented from TVirtualX.

Definition at line 1067 of file TGX11.cxx.

◆ GetWindowSize()

void TGX11::GetWindowSize ( Drawable_t  id,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h 
)
virtual

Return geometry of window (should be called GetGeometry but signature already used).

Reimplemented from TVirtualX.

Definition at line 2415 of file GX11Gui.cxx.

◆ GrabButton()

void TGX11::GrabButton ( Window_t  id,
EMouseButton  button,
UInt_t  modifier,
UInt_t  evmask,
Window_t  confine,
Cursor_t  cursor,
Bool_t  grab = kTRUE 
)
virtual

Establish passive grab on a certain mouse button.

That is, when a certain mouse button is hit while certain modifier's (Shift, Control, Meta, Alt) are active then the mouse will be grabbed for window id. When grab is false, ungrab the mouse button for this button and modifier.

Reimplemented from TVirtualX.

Definition at line 1858 of file GX11Gui.cxx.

◆ GrabKey()

void TGX11::GrabKey ( Window_t  id,
Int_t  keycode,
UInt_t  modifier,
Bool_t  grab = kTRUE 
)
virtual

Establish passive grab on a certain key.

That is, when a certain key keycode is hit while certain modifier's (Shift, Control, Meta, Alt) are active then the keyboard will be grabbed for window id. When grab is false, ungrab the keyboard for this key and modifier.

Reimplemented from TVirtualX.

Definition at line 1837 of file GX11Gui.cxx.

◆ GrabPointer()

void TGX11::GrabPointer ( Window_t  id,
UInt_t  evmask,
Window_t  confine,
Cursor_t  cursor,
Bool_t  grab = kTRUE,
Bool_t  owner_events = kTRUE 
)
virtual

Establish an active pointer grab.

While an active pointer grab is in effect, further pointer events are only reported to the grabbing client window.

Reimplemented from TVirtualX.

Definition at line 1884 of file GX11Gui.cxx.

◆ HasTTFonts()

Bool_t TGX11::HasTTFonts ( ) const
inlinevirtual

Returns True when TrueType fonts are used.

Reimplemented from TVirtualX.

Definition at line 189 of file TGX11.h.

◆ IconifyWindow()

void TGX11::IconifyWindow ( Window_t  id)
virtual

Iconify the window.

Reimplemented from TVirtualX.

Definition at line 343 of file GX11Gui.cxx.

◆ ImgPickPalette()

void TGX11::ImgPickPalette ( RXImage *  image,
Int_t ncol,
Int_t *&  R,
Int_t *&  G,
Int_t *&  B 
)
private

Returns in R G B the ncol colors of the palette used by the image.

The image pixels are changed to index values in these R G B arrays. This produces a colormap with only the used colors (so even on displays with more than 8 planes we will be able to create GIF's when the image contains no more than 256 different colors). If it does contain more colors we will have to use GIFquantize to reduce the number of colors. The R G B arrays must be deleted by the caller.

Definition at line 3330 of file TGX11.cxx.

◆ Init()

Bool_t TGX11::Init ( void display)
virtual

Initialize X11 system. Returns kFALSE in case of failure.

Reimplemented from TVirtualX.

Reimplemented in TGX11TTF.

Definition at line 341 of file TGX11.cxx.

◆ InitWindow()

Int_t TGX11::InitWindow ( ULong_t  win)
virtual

Open window and return window number.

Returns
-1 if window initialization fails.

Reimplemented from TVirtualX.

Definition at line 1300 of file TGX11.cxx.

◆ InternAtom()

Atom_t TGX11::InternAtom ( const char *  atom_name,
Bool_t  only_if_exist 
)
virtual

Return atom handle for atom_name.

If it does not exist create it if only_if_exist is false. Atoms are used to communicate between different programs (i.e. window manager) via the X server.

Reimplemented from TVirtualX.

Definition at line 915 of file GX11Gui.cxx.

◆ IntersectRegion()

void TGX11::IntersectRegion ( Region_t  rega,
Region_t  regb,
Region_t  result 
)
virtual

Compute the intersection of rega and regb and return result region.

The output region may be the same as the result region.

Reimplemented from TVirtualX.

Definition at line 2548 of file GX11Gui.cxx.

◆ IsDNDAware()

Bool_t TGX11::IsDNDAware ( Window_t  win,
Atom_t typelist 
)
virtual

Checks if Window win is DND aware, and knows any of the DND formats passed in argument.

Reimplemented from TVirtualX.

Definition at line 2865 of file GX11Gui.cxx.

◆ KeysymToKeycode()

Int_t TGX11::KeysymToKeycode ( UInt_t  keysym)
virtual

Convert a keysym to the appropriate keycode.

For example keysym is a letter and keycode is the matching keyboard key (which is dependent on the current keyboard mapping).

Reimplemented from TVirtualX.

Definition at line 2166 of file GX11Gui.cxx.

◆ ListFonts()

char ** TGX11::ListFonts ( const char *  fontname,
Int_t  max,
Int_t count 
)
virtual

Return list of font names matching fontname regexp, like "-*-times-*".

Reimplemented from TVirtualX.

Definition at line 2605 of file GX11Gui.cxx.

◆ LoadQueryFont()

FontStruct_t TGX11::LoadQueryFont ( const char *  font_name)
virtual

Load font and query font.

If font is not found 0 is returned, otherwise an opaque pointer to the FontStruct_t. Free the loaded font using DeleteFont().

Reimplemented from TVirtualX.

Definition at line 956 of file GX11Gui.cxx.

◆ LookupString()

void TGX11::LookupString ( Event_t event,
char *  buf,
Int_t  buflen,
UInt_t keysym 
)
virtual

Convert the keycode from the event structure to a key symbol (according to the modifiers specified in the event structure and the current keyboard mapping).

In buf a null terminated ASCII string is returned representing the string that is currently mapped to the key code.

Reimplemented from TVirtualX.

Definition at line 2293 of file GX11Gui.cxx.

◆ LowerWindow()

void TGX11::LowerWindow ( Window_t  id)
virtual

Lower window so it lays below all its siblings.

Reimplemented from TVirtualX.

Definition at line 300 of file GX11Gui.cxx.

◆ MakeOpaqueColors()

void TGX11::MakeOpaqueColors ( Int_t  percent,
ULong_t orgcolors,
Int_t  ncolors 
)
private

Get RGB values for orgcolors, add percent neutral to the RGB and allocate fNewColors.

Definition at line 2973 of file TGX11.cxx.

◆ MapColorStruct()

void TGX11::MapColorStruct ( ColorStruct_t color,
RXColor &  xcolor 
)
private

Map a ColorStruct_t to a XColor structure.

Definition at line 1330 of file GX11Gui.cxx.

◆ MapCursor()

void TGX11::MapCursor ( ECursor  cursor,
Int_t xcursor 
)
private

◆ MapEvent()

void TGX11::MapEvent ( Event_t ev,
void xevi,
Bool_t  tox = kTRUE 
)
private

Map Event_t structure to XEvent structure.

If tox is false map the other way.

Definition at line 1498 of file GX11Gui.cxx.

◆ MapEventMask()

void TGX11::MapEventMask ( UInt_t emask,
UInt_t xemask,
Bool_t  tox = kTRUE 
)
private

Map event mask to or from X.

Definition at line 415 of file GX11Gui.cxx.

◆ MapGCValues()

void TGX11::MapGCValues ( GCValues_t gval,
ULong_t xmask,
RXGCValues &  xgval,
Bool_t  tox = kTRUE 
)
private

Map a GCValues_t to a XCGValues structure if tox is true.

Map the other way in case tox is false.

Definition at line 569 of file GX11Gui.cxx.

◆ MapKeySym()

void TGX11::MapKeySym ( UInt_t keysym,
UInt_t xkeysym,
Bool_t  tox = kTRUE 
)
private

Map to and from X key symbols.

Keysym are the values returned by XLookUpString.

Definition at line 2315 of file GX11Gui.cxx.

◆ MapModifierState()

void TGX11::MapModifierState ( UInt_t state,
UInt_t xstate,
Bool_t  tox = kTRUE 
)
private

Map modifier key state to or from X.

Definition at line 1437 of file GX11Gui.cxx.

◆ MapPictureAttributes()

void TGX11::MapPictureAttributes ( PictureAttributes_t attr,
RXpmAttributes &  xpmattr,
Bool_t  toxpm = kTRUE 
)
private

Map a PictureAttributes_t to a XpmAttributes structure.

If toxpm is kTRUE map from attr to xpmattr, else map the other way.

Definition at line 1116 of file GX11Gui.cxx.

◆ MapRaised()

void TGX11::MapRaised ( Window_t  id)
virtual

Map window on screen and put on top of all windows.

Reimplemented from TVirtualX.

Definition at line 250 of file GX11Gui.cxx.

◆ MapSetWindowAttributes()

void TGX11::MapSetWindowAttributes ( SetWindowAttributes_t attr,
ULong_t xmask,
RXSetWindowAttributes &  xattr 
)
private

Map a SetWindowAttributes_t to a XSetWindowAttributes structure.

Definition at line 480 of file GX11Gui.cxx.

◆ MapSubwindows()

void TGX11::MapSubwindows ( Window_t  id)
virtual

Map sub windows.

Reimplemented from TVirtualX.

Definition at line 240 of file GX11Gui.cxx.

◆ MapWindow()

void TGX11::MapWindow ( Window_t  id)
virtual

Map window on screen.

Reimplemented from TVirtualX.

Definition at line 230 of file GX11Gui.cxx.

◆ MoveResizeWindow()

void TGX11::MoveResizeWindow ( Window_t  id,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
virtual

Move and resize a window.

Reimplemented from TVirtualX.

Definition at line 320 of file GX11Gui.cxx.

◆ MoveWindow() [1/2]

void TGX11::MoveWindow ( Int_t  wid,
Int_t  x,
Int_t  y 
)
virtual

Move the window wid.

Parameters
[in]wid: Window identifier.
[in]x: x new window position
[in]y: y new window position

Reimplemented from TVirtualX.

Definition at line 1079 of file TGX11.cxx.

◆ MoveWindow() [2/2]

void TGX11::MoveWindow ( Window_t  id,
Int_t  x,
Int_t  y 
)
virtual

Move a window.

Reimplemented from TVirtualX.

Definition at line 310 of file GX11Gui.cxx.

◆ NextEvent()

void TGX11::NextEvent ( Event_t event)
virtual

Copies first pending event from event queue to Event_t structure and removes event from queue.

Not all of the event fields are valid for each event type, except fType and fWindow.

Reimplemented from TVirtualX.

Definition at line 1426 of file GX11Gui.cxx.

◆ OpenDisplay() [1/2]

Int_t TGX11::OpenDisplay ( const char *  dpyName)
virtual

Open connection to display server (if such a thing exist on the current platform).

On X11 this method returns on success the X display socket descriptor (> 0), 0 in case of batch mode and < 0 in case of failure (cannot connect to display dpyName). It also initializes the TGX11 class via Init(). Called from TGClient ctor.

Reimplemented from TVirtualX.

Definition at line 822 of file GX11Gui.cxx.

◆ OpenDisplay() [2/2]

Int_t TGX11::OpenDisplay ( void display)

Open the display. Return -1 if the opening fails, 0 when ok.

Definition at line 1090 of file TGX11.cxx.

◆ OpenPixmap()

Int_t TGX11::OpenPixmap ( UInt_t  w,
UInt_t  h 
)
virtual

Open a new pixmap.

Parameters
[in]w,h: Width and height of the pixmap.

Reimplemented from TVirtualX.

Definition at line 1242 of file TGX11.cxx.

◆ ParseColor()

Bool_t TGX11::ParseColor ( Colormap_t  cmap,
const char *  cname,
ColorStruct_t color 
)
virtual

Parse string cname containing color name, like "green" or "#00FF00".

It returns a filled in ColorStruct_t. Returns kFALSE in case parsing failed, kTRUE in case of success. On success, the ColorStruct_t fRed, fGreen and fBlue fields are all filled in and the mask is set for all three colors, but fPixel is not set.

Reimplemented from TVirtualX.

Definition at line 1346 of file GX11Gui.cxx.

◆ PointInRegion()

Bool_t TGX11::PointInRegion ( Int_t  x,
Int_t  y,
Region_t  reg 
)
virtual

Returns true if the point x,y is in the region.

Reimplemented from TVirtualX.

Definition at line 2581 of file GX11Gui.cxx.

◆ PolygonRegion()

Region_t TGX11::PolygonRegion ( Point_t points,
Int_t  np,
Bool_t  winding 
)
virtual

Create region for the polygon defined by the points array.

If winding is true use WindingRule else EvenOddRule as fill rule.

Reimplemented from TVirtualX.

Definition at line 2529 of file GX11Gui.cxx.

◆ PutImage() [1/2]

void TGX11::PutImage ( Drawable_t  id,
GContext_t  gc,
Drawable_t  img,
Int_t  dx,
Int_t  dy,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
virtual

Put (x,y,w,h) part of image img in window win at position dx,dy.

Reimplemented from TVirtualX.

Definition at line 2665 of file GX11Gui.cxx.

◆ PutImage() [2/2]

void TGX11::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 
)
private

Draw image.

Definition at line 3449 of file TGX11.cxx.

◆ PutPixel()

void TGX11::PutPixel ( Drawable_t  id,
Int_t  x,
Int_t  y,
ULong_t  pixel 
)
virtual

Set pixel at specified location in XImage img.

Reimplemented from TVirtualX.

Definition at line 2657 of file GX11Gui.cxx.

◆ QueryColor()

void TGX11::QueryColor ( Colormap_t  cmap,
ColorStruct_t color 
)
virtual

Fill in the primary color components for a specific pixel value.

On input fPixel should be set on return the fRed, fGreen and fBlue components will be set.

Reimplemented from TVirtualX.

Definition at line 1386 of file GX11Gui.cxx.

◆ QueryColors()

void TGX11::QueryColors ( Colormap  cmap,
RXColor *  colors,
Int_t  ncolors 
)
protected

Returns the current RGB value for the pixel in the XColor structure.

Definition at line 382 of file TGX11.cxx.

◆ QueryPointer() [1/2]

void TGX11::QueryPointer ( Int_t ix,
Int_t iy 
)
virtual

Query pointer position.

Parameters
[in]ix: X coordinate of pointer
[in]iy: Y coordinate of pointer (both coordinates are relative to the origin of the root window)

Reimplemented from TVirtualX.

Definition at line 1453 of file TGX11.cxx.

◆ QueryPointer() [2/2]

void TGX11::QueryPointer ( Window_t  id,
Window_t rootw,
Window_t childw,
Int_t root_x,
Int_t root_y,
Int_t win_x,
Int_t win_y,
UInt_t mask 
)
virtual

Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin.

The pointer coordinates returned to win_x and win_y are relative to the origin of the specified window. In this case, QueryPointer returns the child that contains the pointer, if any, or else kNone to childw. QueryPointer returns the current logical state of the keyboard buttons and the modifier keys in mask.

Reimplemented from TVirtualX.

Definition at line 2450 of file GX11Gui.cxx.

◆ RaiseWindow()

void TGX11::RaiseWindow ( Window_t  id)
virtual

Put window on top of window stack.

Reimplemented from TVirtualX.

Definition at line 290 of file GX11Gui.cxx.

◆ ReadGIF()

Pixmap_t TGX11::ReadGIF ( Int_t  x0,
Int_t  y0,
const char *  file,
Window_t  id = 0 
)
virtual

If id is NULL - loads the specified gif file at position [x0,y0] in the current window.

Otherwise creates pixmap from gif file

Reimplemented from TVirtualX.

Definition at line 3514 of file TGX11.cxx.

◆ ReadPictureDataFromFile()

Bool_t TGX11::ReadPictureDataFromFile ( const char *  filename,
char ***  ret_data 
)
virtual

Read picture data from file and store in ret_data.

Returns kTRUE in case of success, kFALSE otherwise.

Reimplemented from TVirtualX.

Definition at line 1293 of file GX11Gui.cxx.

◆ RemovePixmap()

void TGX11::RemovePixmap ( Drawable pix)
private

Remove the pixmap pix.

Definition at line 1471 of file TGX11.cxx.

◆ RemoveWindow()

void TGX11::RemoveWindow ( ULong_t  qwid)
virtual

Remove a window created by Qt (like CloseWindow1()).

Reimplemented from TVirtualX.

Definition at line 1421 of file TGX11.cxx.

◆ ReparentWindow()

void TGX11::ReparentWindow ( Window_t  id,
Window_t  pid,
Int_t  x,
Int_t  y 
)
virtual

Reparent window to new parent window at position (x,y).

Reimplemented from TVirtualX.

Definition at line 353 of file GX11Gui.cxx.

◆ RequestLocator()

Int_t TGX11::RequestLocator ( Int_t  mode,
Int_t  ctyp,
Int_t x,
Int_t y 
)
virtual

Request Locator position.

Parameters
[in]x,y: cursor position at moment of button press (output)
[in]ctyp: cursor type (input)
  • ctyp=1 tracking cross
  • ctyp=2 cross-hair
  • ctyp=3 rubber circle
  • ctyp=4 rubber band
  • ctyp=5 rubber rectangle
[in]mode: input mode
  • mode=0 request
  • mode=1 sample

Request locator: return button number:

  • 1 = left is pressed
  • 2 = middle is pressed
  • 3 = right is pressed in sample mode:
  • 11 = left is released
  • 12 = middle is released
  • 13 = right is released
  • -1 = nothing is pressed or released
  • -2 = leave the window
  • else = keycode (keyboard is pressed)

Reimplemented from TVirtualX.

Definition at line 1504 of file TGX11.cxx.

◆ RequestString()

Int_t TGX11::RequestString ( Int_t  x,
Int_t  y,
char *  text 
)
virtual

Request a string.

Parameters
[in]x,y: position where text is displayed
[in]text: text displayed (input), edited text (output)

Request string: text is displayed and can be edited with Emacs-like keybinding return termination code (0 for ESC, 1 for RETURN)

Reimplemented from TVirtualX.

Definition at line 1682 of file TGX11.cxx.

◆ RescaleWindow()

void TGX11::RescaleWindow ( Int_t  wid,
UInt_t  w,
UInt_t  h 
)
virtual

Rescale the window wid.

Parameters
[in]wid: Window identifier
[in]w: Width
[in]h: Height

Reimplemented from TVirtualX.

Definition at line 1840 of file TGX11.cxx.

◆ ResizePixmap()

int TGX11::ResizePixmap ( Int_t  wid,
UInt_t  w,
UInt_t  h 
)
virtual

Resize a pixmap.

Parameters
[in]wid: pixmap to be resized
[in]w,h: Width and height of the pixmap

Reimplemented from TVirtualX.

Definition at line 1874 of file TGX11.cxx.

◆ ResizeWindow() [1/2]

void TGX11::ResizeWindow ( Int_t  wid)
virtual

Resize the current window if necessary.

Reimplemented from TVirtualX.

Definition at line 1918 of file TGX11.cxx.

◆ ResizeWindow() [2/2]

void TGX11::ResizeWindow ( Window_t  id,
UInt_t  w,
UInt_t  h 
)
virtual

Resize the window.

Reimplemented from TVirtualX.

Definition at line 330 of file GX11Gui.cxx.

◆ ScreenWidthMM()

UInt_t TGX11::ScreenWidthMM ( ) const
virtual

Returns the width of the screen in millimeters.

Reimplemented from TVirtualX.

Definition at line 2696 of file GX11Gui.cxx.

◆ SelectInput()

void TGX11::SelectInput ( Window_t  id,
UInt_t  evmask 
)
virtual

Defines which input events the window is interested in.

By default events are propagated up the window stack. This mask can also be set at window creation time via the SetWindowAttributes_t::fEventMask attribute.

Reimplemented from TVirtualX.

Definition at line 2210 of file GX11Gui.cxx.

◆ SelectWindow()

void TGX11::SelectWindow ( Int_t  wid)
virtual

Select window to which subsequent output is directed.

Reimplemented from TVirtualX.

Definition at line 1957 of file TGX11.cxx.

◆ SendEvent()

void TGX11::SendEvent ( Window_t  id,
Event_t ev 
)
virtual

Send event ev to window id.

Reimplemented from TVirtualX.

Definition at line 1799 of file GX11Gui.cxx.

◆ SetCharacterUp()

void TGX11::SetCharacterUp ( Float_t  chupx,
Float_t  chupy 
)
virtual

Set character up vector.

Reimplemented from TVirtualX.

Definition at line 1982 of file TGX11.cxx.

◆ SetClassHints()

void TGX11::SetClassHints ( Window_t  id,
char *  className,
char *  resourceName 
)
virtual

Set the windows class and resource name.

Reimplemented from TVirtualX.

Definition at line 1952 of file GX11Gui.cxx.

◆ SetClipOFF()

void TGX11::SetClipOFF ( Int_t  wid)
virtual

Turn off the clipping for the window wid.

Reimplemented from TVirtualX.

Definition at line 2003 of file TGX11.cxx.

◆ SetClipRectangles()

void TGX11::SetClipRectangles ( GContext_t  gc,
Int_t  x,
Int_t  y,
Rectangle_t recs,
Int_t  n 
)
virtual

Set clipping rectangles in graphics context.

X, Y specify the origin of the rectangles. Recs specifies an array of rectangles that define the clipping mask and n is the number of rectangles.

Reimplemented from TVirtualX.

Definition at line 2482 of file GX11Gui.cxx.

◆ SetClipRegion()

void TGX11::SetClipRegion ( Int_t  wid,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
virtual

Set clipping region for the window wid.

Parameters
[in]wid: Window identifier
[in]x,y: origin of clipping rectangle
[in]w,h: size of clipping rectangle;

Reimplemented from TVirtualX.

Definition at line 2019 of file TGX11.cxx.

◆ SetColor()

void TGX11::SetColor ( void gc,
Int_t  ci 
)
private

Set the foreground color in GC.

Definition at line 2042 of file TGX11.cxx.

◆ SetCursor() [1/2]

void TGX11::SetCursor ( Int_t  win,
ECursor  cursor 
)
virtual

Set the cursor.

Reimplemented from TVirtualX.

Definition at line 2075 of file TGX11.cxx.

◆ SetCursor() [2/2]

void TGX11::SetCursor ( Window_t  id,
Cursor_t  curid 
)
virtual

Set the specified cursor.

Reimplemented from TVirtualX.

Definition at line 1066 of file GX11Gui.cxx.

◆ SetDashes()

void TGX11::SetDashes ( GContext_t  gc,
Int_t  offset,
const char *  dash_list,
Int_t  n 
)
virtual

Specify a dash pattern.

Offset defines the phase of the pattern. Each element in the dash_list array specifies the length (in pixels) of a segment of the pattern. N defines the length of the list.

Reimplemented from TVirtualX.

Definition at line 1322 of file GX11Gui.cxx.

◆ SetDNDAware()

void TGX11::SetDNDAware ( Window_t  win,
Atom_t typelist 
)
virtual

Add XdndAware property and the list of drag and drop types to the Window win.

Reimplemented from TVirtualX.

Definition at line 2776 of file GX11Gui.cxx.

◆ SetDoubleBuffer()

void TGX11::SetDoubleBuffer ( Int_t  wid,
Int_t  mode 
)
virtual

Set the double buffer on/off on window wid.

Parameters
[in]wid: Window identifier.
  • 999 means all the opened windows.
[in]mode:
  • 1 double buffer is on
  • 0 double buffer is off

Reimplemented from TVirtualX.

Definition at line 2090 of file TGX11.cxx.

◆ SetDoubleBufferOFF()

void TGX11::SetDoubleBufferOFF ( )
virtual

Turn double buffer mode off.

Reimplemented from TVirtualX.

Definition at line 2123 of file TGX11.cxx.

◆ SetDoubleBufferON()

void TGX11::SetDoubleBufferON ( )
virtual

Turn double buffer mode on.

Reimplemented from TVirtualX.

Definition at line 2133 of file TGX11.cxx.

◆ SetDrawMode()

void TGX11::SetDrawMode ( EDrawMode  mode)
virtual

Set the drawing mode.

Parameters
[in]mode: drawing mode
  • mode=1 copy
  • mode=2 xor
  • mode=3 invert
  • mode=4 set the suitable mode for cursor echo according to the vendor

Reimplemented from TVirtualX.

Definition at line 2158 of file TGX11.cxx.

◆ SetFillColor()

void TGX11::SetFillColor ( Color_t  cindex)
virtual

Set color index for fill areas.

Reimplemented from TVirtualX.

Definition at line 2182 of file TGX11.cxx.

◆ SetFillStyle()

void TGX11::SetFillStyle ( Style_t  fstyle)
virtual

Set fill area style.

Parameters
[in]fstyle: compound fill area interior style
  • fstyle = 1000*interiorstyle + styleindex

Reimplemented from TVirtualX.

Definition at line 2201 of file TGX11.cxx.

◆ SetFillStyleIndex()

void TGX11::SetFillStyleIndex ( Int_t  style,
Int_t  fasi 
)
private

Set fill area style index.

Definition at line 2213 of file TGX11.cxx.

◆ SetForeground()

void TGX11::SetForeground ( GContext_t  gc,
ULong_t  foreground 
)
virtual

Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).

Reimplemented from TVirtualX.

Definition at line 2472 of file GX11Gui.cxx.

◆ SetIconName()

void TGX11::SetIconName ( Window_t  id,
char *  name 
)
virtual

Set window icon name.

Reimplemented from TVirtualX.

Definition at line 1920 of file GX11Gui.cxx.

◆ SetIconPixmap()

void TGX11::SetIconPixmap ( Window_t  id,
Pixmap_t  pic 
)
virtual

Set pixmap the WM can use when the window is iconized.

Reimplemented from TVirtualX.

Definition at line 1937 of file GX11Gui.cxx.

◆ SetInput()

void TGX11::SetInput ( Int_t  inp)
private

Set input on or off.

Definition at line 2256 of file TGX11.cxx.

◆ SetInputFocus()

void TGX11::SetInputFocus ( Window_t  id)
virtual

Set keyboard input focus to window id.

Reimplemented from TVirtualX.

Definition at line 2236 of file GX11Gui.cxx.

◆ SetKeyAutoRepeat()

void TGX11::SetKeyAutoRepeat ( Bool_t  on = kTRUE)
virtual

Turn key auto repeat on or off.

Reimplemented from TVirtualX.

Definition at line 1823 of file GX11Gui.cxx.

◆ SetLineColor()

void TGX11::SetLineColor ( Color_t  cindex)
virtual

Set color index for lines.

Reimplemented from TVirtualX.

Definition at line 2275 of file TGX11.cxx.

◆ SetLineStyle()

void TGX11::SetLineStyle ( Style_t  linestyle)
virtual

Set line style.

Reimplemented from TVirtualX.

Definition at line 2322 of file TGX11.cxx.

◆ SetLineType()

void TGX11::SetLineType ( Int_t  n,
Int_t dash 
)
virtual

Set line type.

Parameters
[in]n: length of dash list
[in]dash(n): dash segment lengths
  • if n <= 0 use solid lines
  • if n > 0 use dashed lines described by DASH(N) e.g. N=4,DASH=(6,3,1,3) gives a dashed-dotted line with dash length 6 and a gap of 7 between dashes

Reimplemented from TVirtualX.

Definition at line 2296 of file TGX11.cxx.

◆ SetLineWidth()

void TGX11::SetLineWidth ( Width_t  width)
virtual

Set line width.

Parameters
[in]width: line width in pixels

Reimplemented from TVirtualX.

Definition at line 2361 of file TGX11.cxx.

◆ SetMarkerColor()

void TGX11::SetMarkerColor ( Color_t  cindex)
virtual

Set color index for markers.

Reimplemented from TVirtualX.

Definition at line 2380 of file TGX11.cxx.

◆ SetMarkerSize()

void TGX11::SetMarkerSize ( Float_t  msize)
virtual

Set marker size index.

Parameters
[in]msize: marker scale factor

Reimplemented from TVirtualX.

Definition at line 2394 of file TGX11.cxx.

◆ SetMarkerStyle()

void TGX11::SetMarkerStyle ( Style_t  markerstyle)
virtual

Set marker style.

Reimplemented from TVirtualX.

Definition at line 2434 of file TGX11.cxx.

◆ SetMarkerType()

void TGX11::SetMarkerType ( Int_t  type,
Int_t  n,
RXPoint *  xy 
)
private

Set marker type.

Parameters
[in]type: marker type
[in]n: length of marker description
[in]xy: list of points describing marker shape
  • if n == 0 marker is a single point
  • if TYPE == 0 marker is hollow circle of diameter N
  • if TYPE == 1 marker is filled circle of diameter N
  • if TYPE == 2 marker is a hollow polygon describe by line XY
  • if TYPE == 3 marker is a filled polygon describe by line XY
  • if TYPE == 4 marker is described by segmented line XY e.g. TYPE=4,N=4,XY=(-3,0,3,0,0,-3,0,3) sets a plus shape of 7x7 pixels

Definition at line 2419 of file TGX11.cxx.

◆ SetMWMHints()

void TGX11::SetMWMHints ( Window_t  id,
UInt_t  value,
UInt_t  funcs,
UInt_t  input 
)
virtual

Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).

Reimplemented from TVirtualX.

Definition at line 1966 of file GX11Gui.cxx.

◆ SetOpacity()

void TGX11::SetOpacity ( Int_t  percent)
virtual

Set opacity of a window.

This image manipulation routine works by adding to a percent amount of neutral to each pixels RGB. Since it requires quite some additional color map entries is it only supported on displays with more than > 8 color planes (> 256 colors).

Reimplemented from TVirtualX.

Definition at line 2883 of file TGX11.cxx.

◆ SetPrimarySelectionOwner()

void TGX11::SetPrimarySelectionOwner ( Window_t  id)
virtual

Makes the window id the current owner of the primary selection.

That is the window in which, for example some text is selected.

Reimplemented from TVirtualX.

Definition at line 2261 of file GX11Gui.cxx.

◆ SetRGB()

void TGX11::SetRGB ( Int_t  cindex,
Float_t  r,
Float_t  g,
Float_t  b 
)
virtual

Set color intensities for given color index.

Parameters
[in]cindex: color index
[in]r,g,b: red, green, blue intensities between 0.0 and 1.0

Reimplemented from TVirtualX.

Definition at line 3034 of file TGX11.cxx.

◆ SetSelectionOwner()

Bool_t TGX11::SetSelectionOwner ( Window_t  owner,
Atom_t sel 
)
virtual

Changes the owner and last-change time for the specified selection.

Reimplemented from TVirtualX.

Definition at line 2753 of file GX11Gui.cxx.

◆ SetTextAlign()

void TGX11::SetTextAlign ( Short_t  talign = 11)
virtual

Set text alignment.

Parameters
[in]taligntext alignment

Reimplemented from TVirtualX.

Definition at line 3067 of file TGX11.cxx.

◆ SetTextColor()

void TGX11::SetTextColor ( Color_t  cindex)
virtual

Set color index for text.

Reimplemented from TVirtualX.

Definition at line 3124 of file TGX11.cxx.

◆ SetTextFont() [1/2]

Int_t TGX11::SetTextFont ( char *  fontname,
ETextSetMode  mode 
)
virtual

Set text font to specified name.

Parameters
[in]fontnamefont name
[in]modeloading flag
  • mode=0 search if the font exist (kCheck)
  • mode=1 search the font and load it if it exists (kLoad)

Set text font to specified name. This function returns 0 if the specified font is found, 1 if not.

Reimplemented from TVirtualX.

Reimplemented in TGX11TTF.

Definition at line 3153 of file TGX11.cxx.

◆ SetTextFont() [2/2]

void TGX11::SetTextFont ( Font_t  fontnumber)
virtual

Set current text font number.

Reimplemented from TVirtualX.

Reimplemented in TGX11TTF.

Definition at line 3194 of file TGX11.cxx.

◆ SetTextMagnitude()

void TGX11::SetTextMagnitude ( Float_t  mgn = 1)
inlinevirtual

Sets the current text magnification factor to "mgn".

Reimplemented from TVirtualX.

Definition at line 228 of file TGX11.h.

◆ SetTextSize()

void TGX11::SetTextSize ( Float_t  textsize)
virtual

Set current text size.

Reimplemented from TVirtualX.

Reimplemented in TGX11TTF.

Definition at line 3202 of file TGX11.cxx.

◆ SetTypeList()

void TGX11::SetTypeList ( Window_t  win,
Atom_t  prop,
Atom_t typelist 
)
virtual

Add the list of drag and drop types to the Window win.

Reimplemented from TVirtualX.

Definition at line 2797 of file GX11Gui.cxx.

◆ SetWindowBackground()

void TGX11::SetWindowBackground ( Window_t  id,
ULong_t  color 
)
virtual

Set the window background color.

Reimplemented from TVirtualX.

Definition at line 363 of file GX11Gui.cxx.

◆ SetWindowBackgroundPixmap()

void TGX11::SetWindowBackgroundPixmap ( Window_t  id,
Pixmap_t  pxm 
)
virtual

Set pixmap as window background.

Reimplemented from TVirtualX.

Definition at line 373 of file GX11Gui.cxx.

◆ SetWindowName()

void TGX11::SetWindowName ( Window_t  id,
char *  name 
)
virtual

Set window name.

Reimplemented from TVirtualX.

Definition at line 1903 of file GX11Gui.cxx.

◆ SetWMPosition()

void TGX11::SetWMPosition ( Window_t  id,
Int_t  x,
Int_t  y 
)
virtual

Tell the window manager the desired window position.

Reimplemented from TVirtualX.

Definition at line 1984 of file GX11Gui.cxx.

◆ SetWMSize()

void TGX11::SetWMSize ( Window_t  id,
UInt_t  w,
UInt_t  h 
)
virtual

Tell the window manager the desired window size.

Reimplemented from TVirtualX.

Definition at line 2000 of file GX11Gui.cxx.

◆ SetWMSizeHints()

void TGX11::SetWMSizeHints ( Window_t  id,
UInt_t  wmin,
UInt_t  hmin,
UInt_t  wmax,
UInt_t  hmax,
UInt_t  winc,
UInt_t  hinc 
)
virtual

Give the window manager minimum and maximum size hints.

Also specify via winc and hinc the resize increments.

Reimplemented from TVirtualX.

Definition at line 2017 of file GX11Gui.cxx.

◆ SetWMState()

void TGX11::SetWMState ( Window_t  id,
EInitialState  state 
)
virtual

Set the initial state of the window. Either kNormalState or kIconicState.

Reimplemented from TVirtualX.

Definition at line 2039 of file GX11Gui.cxx.

◆ SetWMTransientHint()

void TGX11::SetWMTransientHint ( Window_t  id,
Window_t  main_id 
)
virtual

Tell window manager that window is a transient window of main.

Reimplemented from TVirtualX.

Definition at line 2060 of file GX11Gui.cxx.

◆ ShapeCombineMask()

void TGX11::ShapeCombineMask ( Window_t  id,
Int_t  x,
Int_t  y,
Pixmap_t  mask 
)
virtual

The Nonrectangular Window Shape Extension adds nonrectangular windows to the System.

This allows for making shaped (partially transparent) windows

Reimplemented from TVirtualX.

Definition at line 2687 of file GX11Gui.cxx.

◆ SubtractRegion()

void TGX11::SubtractRegion ( Region_t  rega,
Region_t  regb,
Region_t  result 
)
virtual

Subtract rega from regb.

Reimplemented from TVirtualX.

Definition at line 2556 of file GX11Gui.cxx.

◆ SupportsExtension()

Int_t TGX11::SupportsExtension ( const char *  ext) const
virtual

Returns 1 if window system server supports extension given by the argument, returns 0 in case extension is not supported and returns -1 in case of error (like server not initialized).

Examples:

  • "Apple-WM" - does server run on MacOS X;
  • "XINERAMA" - does server support Xinerama. See also the output of xdpyinfo.

Reimplemented from TVirtualX.

Definition at line 3691 of file TGX11.cxx.

◆ Sync()

void TGX11::Sync ( Int_t  mode)
virtual

Set synchronisation on or off.

Parameters
[in]mode: synchronisation on/off
  • mode=1 on
  • mode<>0 off

Reimplemented from TVirtualX.

Definition at line 3214 of file TGX11.cxx.

◆ TextWidth()

Int_t TGX11::TextWidth ( FontStruct_t  font,
const char *  s,
Int_t  len 
)
virtual

Return length of string in pixels. Size depends on font.

Reimplemented from TVirtualX.

Definition at line 2081 of file GX11Gui.cxx.

◆ TranslateCoordinates()

void TGX11::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 
)
virtual

TranslateCoordinates translates coordinates from the frame of reference of one window to another.

If the point is contained in a mapped child of the destination, the id of that child is returned as well.

Reimplemented from TVirtualX.

Definition at line 2399 of file GX11Gui.cxx.

◆ UnionRectWithRegion()

void TGX11::UnionRectWithRegion ( Rectangle_t rect,
Region_t  src,
Region_t  dest 
)
virtual

Union of rectangle with a region.

Reimplemented from TVirtualX.

Definition at line 2519 of file GX11Gui.cxx.

◆ UnionRegion()

void TGX11::UnionRegion ( Region_t  rega,
Region_t  regb,
Region_t  result 
)
virtual

Compute the union of rega and regb and return result region.

The output region may be the same result region.

Reimplemented from TVirtualX.

Definition at line 2539 of file GX11Gui.cxx.

◆ UnmapWindow()

void TGX11::UnmapWindow ( Window_t  id)
virtual

Unmap window from screen.

Reimplemented from TVirtualX.

Definition at line 260 of file GX11Gui.cxx.

◆ Update()

void TGX11::Update ( Int_t  mode = 0)
virtual

Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.

Flush flushes output buffer. Sync flushes buffer and waits till all requests have been processed by X server.

Reimplemented from TVirtualX.

Definition at line 2492 of file GX11Gui.cxx.

◆ UpdateWindow()

void TGX11::UpdateWindow ( Int_t  mode)
virtual

Update display.

Parameters
[in]mode: (1) update (0) sync

Synchronise client and server once (not permanent). Copy the pixmap gCws->fDrawing on the window gCws->fWindow if the double buffer is on.

Reimplemented from TVirtualX.

Definition at line 3237 of file TGX11.cxx.

◆ Warp()

void TGX11::Warp ( Int_t  ix,
Int_t  iy,
Window_t  id = 0 
)
virtual

Set pointer position.

Parameters
[in]ixNew X coordinate of pointer
[in]iyNew Y coordinate of pointer
[in]idWindow identifier

Coordinates are relative to the origin of the window id or to the origin of the current window if id == 0.

Reimplemented from TVirtualX.

Definition at line 3260 of file TGX11.cxx.

◆ WMDeleteNotify()

void TGX11::WMDeleteNotify ( Window_t  id)
virtual

Tell WM to send message when window is closed via WM.

Reimplemented from TVirtualX.

Definition at line 1813 of file GX11Gui.cxx.

◆ WriteGIF()

Int_t TGX11::WriteGIF ( char *  name)
virtual

Writes the current window into GIF file.

Returns 1 in case of success, 0 otherwise.

Reimplemented from TVirtualX.

Definition at line 3386 of file TGX11.cxx.

◆ WritePixmap()

void TGX11::WritePixmap ( Int_t  wid,
UInt_t  w,
UInt_t  h,
char *  pxname 
)
virtual

Write the pixmap wid in the bitmap file pxname.

Parameters
[in]wid: Pixmap address
[in]w,h: Width and height of the pixmap.
[in]pxname: pixmap name

Reimplemented from TVirtualX.

Definition at line 3277 of file TGX11.cxx.

◆ XorRegion()

void TGX11::XorRegion ( Region_t  rega,
Region_t  regb,
Region_t  result 
)
virtual

Calculate the difference between the union and intersection of two regions.

Reimplemented from TVirtualX.

Definition at line 2565 of file GX11Gui.cxx.

Member Data Documentation

◆ fBlackPixel

ULong_t TGX11::fBlackPixel
protected

Value of black pixel in colormap.

Definition at line 133 of file TGX11.h.

◆ fBlueDiv

Int_t TGX11::fBlueDiv
protected

Blue value divider.

Definition at line 145 of file TGX11.h.

◆ fBlueShift

Int_t TGX11::fBlueShift
protected

Bits to left shift blue.

Definition at line 148 of file TGX11.h.

◆ fCharacterUpX

Float_t TGX11::fCharacterUpX
protected

Character Up vector along X.

Definition at line 139 of file TGX11.h.

◆ fCharacterUpY

Float_t TGX11::fCharacterUpY
protected

Character Up vector along Y.

Definition at line 140 of file TGX11.h.

◆ fColormap

Colormap TGX11::fColormap
protected

Default colormap, 0 if b/w.

Definition at line 132 of file TGX11.h.

◆ fColors

TExMap* TGX11::fColors
private

Hash list of colors.

Definition at line 88 of file TGX11.h.

◆ fCursors

Cursor TGX11::fCursors[kNumCursors]
private

List of cursors.

Definition at line 89 of file TGX11.h.

◆ fDepth

Int_t TGX11::fDepth
protected

Number of color planes.

Definition at line 142 of file TGX11.h.

◆ fDisplay

void* TGX11::fDisplay
protected

Pointer to display.

Definition at line 128 of file TGX11.h.

◆ fGreenDiv

Int_t TGX11::fGreenDiv
protected

Green value divider.

Definition at line 144 of file TGX11.h.

◆ fGreenShift

Int_t TGX11::fGreenShift
protected

Bits to left shift green.

Definition at line 147 of file TGX11.h.

◆ fHasTTFonts

Bool_t TGX11::fHasTTFonts
protected

True when TrueType fonts are used.

Definition at line 149 of file TGX11.h.

◆ fHasXft

Bool_t TGX11::fHasXft
protected

True when XftFonts are used.

Definition at line 150 of file TGX11.h.

◆ fMaxNumberOfWindows

Int_t TGX11::fMaxNumberOfWindows
private

Maximum number of windows.

Definition at line 86 of file TGX11.h.

◆ fRedDiv

Int_t TGX11::fRedDiv
protected

Red value divider, -1 if no TrueColor visual.

Definition at line 143 of file TGX11.h.

◆ fRedShift

Int_t TGX11::fRedShift
protected

Bits to left shift red, -1 if no TrueColor visual.

Definition at line 146 of file TGX11.h.

◆ fRootWin

Drawable TGX11::fRootWin
protected

Root window used as parent of all windows.

Definition at line 130 of file TGX11.h.

◆ fScreenNumber

Int_t TGX11::fScreenNumber
protected

Screen number.

Definition at line 135 of file TGX11.h.

◆ fTextAlign

Int_t TGX11::fTextAlign
protected

Text alignment (set in SetTextAlign)

Definition at line 138 of file TGX11.h.

◆ fTextAlignH

Int_t TGX11::fTextAlignH
protected

Text Alignment Horizontal.

Definition at line 136 of file TGX11.h.

◆ fTextAlignV

Int_t TGX11::fTextAlignV
protected

Text Alignment Vertical.

Definition at line 137 of file TGX11.h.

◆ fTextMagnitude

Float_t TGX11::fTextMagnitude
protected

Text Magnitude.

Definition at line 141 of file TGX11.h.

◆ fVisRootWin

Drawable TGX11::fVisRootWin
protected

Root window with fVisual to be used to create GC's and XImages.

Definition at line 131 of file TGX11.h.

◆ fVisual

RVisual* TGX11::fVisual
protected

Pointer to visual used by all windows.

Definition at line 129 of file TGX11.h.

◆ fWhitePixel

ULong_t TGX11::fWhitePixel
protected

Value of white pixel in colormap.

Definition at line 134 of file TGX11.h.

◆ fWindows

XWindow_t* TGX11::fWindows
private

List of windows.

Definition at line 87 of file TGX11.h.

◆ fXEvent

void* TGX11::fXEvent
private

Current native (X11) event.

Definition at line 90 of file TGX11.h.

Libraries for TGX11:
[legend]

The documentation for this class was generated from the following files: