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).
Public Member Functions | |
TGX11 () | |
Default constructor. | |
TGX11 (const char *name, const char *title) | |
Normal Constructor. | |
TGX11 (const TGX11 &org) | |
Copy constructor. Currently only used by TGX11TTF. | |
~TGX11 () override | |
Destructor. | |
Int_t | AddPixmap (ULong_t pixid, UInt_t w, UInt_t h) override |
Register pixmap created by gVirtualGL. | |
Int_t | AddWindow (ULong_t qwid, UInt_t w, UInt_t h) override |
Register a window created by Qt as a ROOT window (like InitWindow()). | |
Bool_t | AllocColor (Colormap_t cmap, ColorStruct_t &color) override |
Find and allocate a color cell according to the color values specified in the ColorStruct_t. | |
void | Bell (Int_t percent) override |
Sound bell. Percent is loudness from -100% .. 100%. | |
void | ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t) override |
Changes the specified dynamic parameters if the pointer is actively grabbed by the client. | |
void | ChangeGC (GContext_t gc, GCValues_t *gval) override |
Change entries in an existing graphics context, gc, by values from gval. | |
void | ChangeProperties (Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len) override |
This function alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. | |
void | ChangeProperty (Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len) override |
This function alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. | |
void | ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr) override |
Change window attributes. | |
Bool_t | CheckEvent (Window_t id, EGEventType type, Event_t &ev) override |
Check if there is for window "id" an event of type "type". | |
void | ClearArea (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) override |
Clear a window area to the background color. | |
void | ClearWindow () override |
Clear current window. | |
void | ClearWindow (Window_t id) override |
Clear window. | |
void | CloseDisplay () override |
Close connection to display server. | |
void | ClosePixmap () override |
Delete current pixmap. | |
void | CloseWindow () override |
Delete current window. | |
void | ConvertPrimarySelection (Window_t id, Atom_t clipboard, Time_t when) override |
XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner. | |
void | ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &) override |
Requests that the specified selection be converted to the specified target type. | |
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) override |
Copy a drawable (i.e. | |
void | CopyGC (GContext_t org, GContext_t dest, Mask_t mask) override |
Copies graphics context from org to dest. | |
void | CopyPixmap (Int_t wid, Int_t xpos, Int_t ypos) override |
Copy the pixmap wid at the position xpos, ypos in the current window. | |
Pixmap_t | CreateBitmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height) override |
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data. | |
Cursor_t | CreateCursor (ECursor cursor) override |
Create cursor handle (just return cursor from cursor pool fCursors). | |
GContext_t | CreateGC (Drawable_t id, GCValues_t *gval) override |
Create a graphics context using the values set in gval (but only for those entries that are in the mask). | |
Drawable_t | CreateImage (UInt_t width, UInt_t height) override |
Create a client-side XImage. Returns handle to XImage. | |
Bool_t | CreatePictureFromData (Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr) override |
Create a picture pixmap from data. | |
Bool_t | CreatePictureFromFile (Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr) override |
Create a picture pixmap from data on file. | |
Pixmap_t | CreatePixmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth) override |
Create a pixmap from bitmap data. | |
Pixmap_t | CreatePixmap (Drawable_t id, UInt_t w, UInt_t h) override |
Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it. | |
Pixmap_t | CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height) override |
create pixmap from RGB data. | |
Region_t | CreateRegion () override |
Create a new empty region. | |
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) override |
Return handle to newly created X window. | |
void | DeleteFont (FontStruct_t fs) override |
Explicitly delete font structure obtained with LoadQueryFont(). | |
void | DeleteGC (GContext_t gc) override |
Explicitly delete a graphics context. | |
void | DeleteImage (Drawable_t img) override |
Destroy XImage img. | |
void | DeletePictureData (void *data) override |
Delete picture data created by the function ReadPictureDataFromFile. | |
void | DeletePixmap (Pixmap_t pmap) override |
Explicitly delete pixmap resource. | |
void | DeleteProperty (Window_t, Atom_t &) override |
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. | |
void | DestroyRegion (Region_t reg) override |
Destroy region. | |
void | DestroySubwindows (Window_t id) override |
Destroy subwindows of this window. | |
void | DestroyWindow (Window_t id) override |
Destroy window. | |
const char * | DisplayName (const char *dpyName=nullptr) override |
Return hostname on which the display is opened. | |
void | DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode) override |
Draw a box. | |
void | DrawCellArray (Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic) override |
Draw a cell array. | |
void | DrawFillArea (Int_t n, TPoint *xy) override |
Fill area described by polygon. | |
void | DrawLine (Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2) override |
Draw a line. | |
void | DrawLine (Int_t x1, Int_t y1, Int_t x2, Int_t y2) override |
Draw a line. | |
void | DrawPolyLine (Int_t n, TPoint *xy) override |
Draw a line through all points. | |
void | DrawPolyMarker (Int_t n, TPoint *xy) override |
Draw n markers with the current attributes at position x, y. | |
void | DrawRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) override |
Draw a rectangle outline. | |
void | DrawSegments (Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg) override |
Draws multiple line segments. Each line is specified by a pair of points. | |
void | DrawString (Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len) override |
Draw a string using a specific graphics context in position (x,y). | |
void | DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode) override |
Draw a text string using current font. | |
void | DrawText (Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode) override |
Draws a text string using current font. | |
Bool_t | EmptyRegion (Region_t reg) override |
Return true if the region is empty. | |
Bool_t | EqualRegion (Region_t rega, Region_t regb) override |
Returns true if two regions are equal. | |
Int_t | EventsPending () override |
Returns number of pending events. | |
void | FillPolygon (Window_t id, GContext_t gc, Point_t *points, Int_t npnt) override |
FillPolygon fills the region closed by the specified path. | |
void | FillRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) override |
Draw a filled rectangle. Filling is done according to the gc. | |
Window_t | FindRWindow (Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd) override |
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. | |
void | FreeColor (Colormap_t cmap, ULong_t pixel) override |
Free color cell with specified pixel value. | |
void | FreeFontNames (char **fontlist) override |
Free list of font names. | |
void | FreeFontStruct (FontStruct_t fs) override |
Free font structure returned by GetFontStruct(). | |
void | GetCharacterUp (Float_t &chupx, Float_t &chupy) override |
Return character up vector. | |
unsigned char * | GetColorBits (Drawable_t wid, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0) override |
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 . | |
Colormap_t | GetColormap () const override |
Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. | |
Window_t | GetCurrentWindow () const override |
Return current window pointer. Protected method used by TGX11TTF. | |
Window_t | GetDefaultRootWindow () const override |
Return handle to the default root window created when calling XOpenDisplay(). | |
Int_t | GetDepth () const override |
Returns depth of screen (number of bit planes). | |
Display_t | GetDisplay () const override |
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. | |
Int_t | GetDoubleBuffer (Int_t wid) override |
Query the double buffer value for the window wid. | |
FontH_t | GetFontHandle (FontStruct_t fs) override |
Return handle to font described by font structure. | |
void | GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent) override |
Return some font properties. | |
FontStruct_t | GetFontStruct (FontH_t fh) override |
Retrieve associated font structure once we have the font handle. | |
void | GetGCValues (GContext_t gc, GCValues_t &gval) override |
Get current values from graphics context gc. | |
void | GetGeometry (Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override |
Return position and size of window wid. | |
void | GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height) override |
Get size of XImage img. | |
Window_t | GetInputFocus () override |
Returns the window id of the window having the input focus. | |
Handle_t | GetNativeEvent () const override |
Returns the current native event handle. | |
Window_t | GetParent (Window_t id) const override |
Return the parent of the window. | |
void | GetPasteBuffer (Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del) override |
Get contents of paste buffer atom into string. | |
ULong_t | GetPixel (Color_t cindex) override |
Return pixel value associated to specified ROOT color number. | |
void | GetPlanes (Int_t &nplanes) override |
Get maximum number of planes. | |
Window_t | GetPrimarySelectionOwner () override |
Returns the window id of the current owner of the primary selection. | |
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 **) override |
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. | |
void | GetRegionBox (Region_t reg, Rectangle_t *) override |
Return smallest enclosing rectangle. | |
void | GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b) override |
Get rgb values for color "index". | |
Int_t | GetScreen () const override |
Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. | |
void | GetTextExtent (UInt_t &, UInt_t &, wchar_t *) override |
Returns the size of the specified character string "mess". | |
void | GetTextExtent (UInt_t &w, UInt_t &h, char *mess) override |
Return the size of a character string. | |
Float_t | GetTextMagnitude () override |
Returns the current font magnification factor. | |
Visual_t | GetVisual () const override |
Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. | |
void | GetWindowAttributes (Window_t id, WindowAttributes_t &attr) override |
Get window attributes and return filled in attributes structure. | |
Window_t | GetWindowID (Int_t wid) override |
Return the X11 window identifier. | |
void | GetWindowSize (Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override |
Return geometry of window (should be called GetGeometry but signature already used). | |
void | GrabButton (Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE) override |
Establish passive grab on a certain mouse button. | |
void | GrabKey (Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE) override |
Establish passive grab on a certain key. | |
void | GrabPointer (Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE) override |
Establish an active pointer grab. | |
Bool_t | HasTTFonts () const override |
Returns True when TrueType fonts are used. | |
void | IconifyWindow (Window_t id) override |
Iconify the window. | |
Bool_t | Init (void *display) override |
Initialize X11 system. Returns kFALSE in case of failure. | |
Int_t | InitWindow (ULong_t window) override |
Open window and return window number. | |
Atom_t | InternAtom (const char *atom_name, Bool_t only_if_exist) override |
Return atom handle for atom_name. | |
void | IntersectRegion (Region_t rega, Region_t regb, Region_t result) override |
Compute the intersection of rega and regb and return result region. | |
TClass * | IsA () const override |
Bool_t | IsDNDAware (Window_t win, Atom_t *typelist) override |
Checks if Window win is DND aware, and knows any of the DND formats passed in argument. | |
Int_t | KeysymToKeycode (UInt_t keysym) override |
Convert a keysym to the appropriate keycode. | |
char ** | ListFonts (const char *fontname, Int_t max, Int_t &count) override |
Return list of font names matching fontname regexp, like "-*-times-*". | |
FontStruct_t | LoadQueryFont (const char *font_name) override |
Load font and query font. | |
void | LookupString (Event_t *event, char *buf, Int_t buflen, UInt_t &keysym) override |
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). | |
void | LowerWindow (Window_t id) override |
Lower window so it lays below all its siblings. | |
void | MapRaised (Window_t id) override |
Map window on screen and put on top of all windows. | |
void | MapSubwindows (Window_t id) override |
Map sub windows. | |
void | MapWindow (Window_t id) override |
Map window on screen. | |
void | MoveResizeWindow (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) override |
Move and resize a window. | |
void | MoveWindow (Int_t wid, Int_t x, Int_t y) override |
Move the window wid. | |
void | MoveWindow (Window_t id, Int_t x, Int_t y) override |
Move a window. | |
void | NextEvent (Event_t &event) override |
Copies first pending event from event queue to Event_t structure and removes event from queue. | |
Int_t | OpenDisplay (const char *dpyName) override |
Open connection to display server (if such a thing exist on the current platform). | |
Int_t | OpenDisplay (void *display) |
Open the display. Return -1 if the opening fails, 0 when ok. | |
Int_t | OpenPixmap (UInt_t w, UInt_t h) override |
Open a new pixmap. | |
Bool_t | ParseColor (Colormap_t cmap, const char *cname, ColorStruct_t &color) override |
Parse string cname containing color name, like "green" or "#00FF00". | |
Bool_t | PointInRegion (Int_t x, Int_t y, Region_t reg) override |
Returns true if the point x,y is in the region. | |
Region_t | PolygonRegion (Point_t *points, Int_t np, Bool_t winding) override |
Create region for the polygon defined by the points array. | |
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) override |
Put (x,y,w,h) part of image img in window win at position dx,dy. | |
void | PutPixel (Drawable_t id, Int_t x, Int_t y, ULong_t pixel) override |
Set pixel at specified location in XImage img. | |
void | QueryColor (Colormap_t cmap, ColorStruct_t &color) override |
Fill in the primary color components for a specific pixel value. | |
void | QueryPointer (Int_t &ix, Int_t &iy) override |
Query pointer position. | |
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) override |
Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin. | |
void | RaiseWindow (Window_t id) override |
Put window on top of window stack. | |
Pixmap_t | ReadGIF (Int_t x0, Int_t y0, const char *file, Window_t id=0) override |
If id is NULL - loads the specified gif file at position [x0,y0] in the current window. | |
Bool_t | ReadPictureDataFromFile (const char *filename, char ***ret_data) override |
Read picture data from file and store in ret_data. | |
void | RemoveWindow (ULong_t qwid) override |
Remove a window created by Qt (like CloseWindow1()). | |
void | ReparentWindow (Window_t id, Window_t pid, Int_t x, Int_t y) override |
Reparent window to new parent window at position (x,y). | |
Int_t | RequestLocator (Int_t mode, Int_t ctyp, Int_t &x, Int_t &y) override |
Request Locator position. | |
Int_t | RequestString (Int_t x, Int_t y, char *text) override |
Request a string. | |
void | RescaleWindow (Int_t wid, UInt_t w, UInt_t h) override |
Rescale the window wid. | |
Int_t | ResizePixmap (Int_t wid, UInt_t w, UInt_t h) override |
Resize a pixmap. | |
void | ResizeWindow (Int_t wid) override |
Resize the current window if necessary. | |
void | ResizeWindow (Window_t id, UInt_t w, UInt_t h) override |
Resize the window. | |
UInt_t | ScreenWidthMM () const override |
Returns the width of the screen in millimeters. | |
void | SelectInput (Window_t id, UInt_t evmask) override |
Defines which input events the window is interested in. | |
void | SelectWindow (Int_t wid) override |
Select window to which subsequent output is directed. | |
void | SendEvent (Window_t id, Event_t *ev) override |
Send event ev to window id. | |
void | SetCharacterUp (Float_t chupx, Float_t chupy) override |
Set character up vector. | |
void | SetClassHints (Window_t id, char *className, char *resourceName) override |
Set the windows class and resource name. | |
void | SetClipOFF (Int_t wid) override |
Turn off the clipping for the window wid. | |
void | SetClipRectangles (GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n) override |
Set clipping rectangles in graphics context. | |
void | SetClipRegion (Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h) override |
Set clipping region for the window wid. | |
void | SetCursor (Int_t win, ECursor cursor) override |
Set the cursor. | |
void | SetCursor (Window_t id, Cursor_t curid) override |
Set the specified cursor. | |
void | SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n) override |
Specify a dash pattern. | |
void | SetDNDAware (Window_t, Atom_t *) override |
Add XdndAware property and the list of drag and drop types to the Window win. | |
void | SetDoubleBuffer (Int_t wid, Int_t mode) override |
Set the double buffer on/off on window wid. | |
void | SetDoubleBufferOFF () override |
Turn double buffer mode off. | |
void | SetDoubleBufferON () override |
Turn double buffer mode on. | |
void | SetDrawMode (EDrawMode mode) override |
Set the drawing mode. | |
void | SetFillColor (Color_t cindex) override |
Set color index for fill areas. | |
void | SetFillStyle (Style_t style) override |
Set fill area style. | |
void | SetForeground (GContext_t gc, ULong_t foreground) override |
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set). | |
void | SetIconName (Window_t id, char *name) override |
Set window icon name. | |
void | SetIconPixmap (Window_t id, Pixmap_t pic) override |
Set pixmap the WM can use when the window is iconized. | |
void | SetInputFocus (Window_t id) override |
Set keyboard input focus to window id. | |
void | SetKeyAutoRepeat (Bool_t on=kTRUE) override |
Turn key auto repeat on or off. | |
void | SetLineColor (Color_t cindex) override |
Set color index for lines. | |
void | SetLineStyle (Style_t linestyle) override |
Set line style. | |
void | SetLineType (Int_t n, Int_t *dash) override |
Set line type. | |
void | SetLineWidth (Width_t width) override |
Set line width. | |
void | SetMarkerColor (Color_t cindex) override |
Set color index for markers. | |
void | SetMarkerSize (Float_t markersize) override |
Set marker size index. | |
void | SetMarkerStyle (Style_t markerstyle) override |
Set marker style. | |
void | SetMWMHints (Window_t id, UInt_t value, UInt_t funcs, UInt_t input) override |
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?). | |
void | SetOpacity (Int_t percent) override |
Set opacity of a window. | |
void | SetPrimarySelectionOwner (Window_t id) override |
Makes the window id the current owner of the primary selection. | |
void | SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b) override |
Set color intensities for given color index. | |
Bool_t | SetSelectionOwner (Window_t, Atom_t &) override |
Changes the owner and last-change time for the specified selection. | |
void | SetTextAlign (Short_t talign=11) override |
Set text alignment. | |
void | SetTextColor (Color_t cindex) override |
Set color index for text. | |
Int_t | SetTextFont (char *fontname, ETextSetMode mode) override |
Set text font to specified name. | |
void | SetTextFont (Font_t fontnumber) override |
Set current text font number. | |
void | SetTextMagnitude (Float_t mgn=1) override |
Sets the current text magnification factor to "mgn". | |
void | SetTextSize (Float_t textsize) override |
Set current text size. | |
void | SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist) override |
Add the list of drag and drop types to the Window win. | |
void | SetWindowBackground (Window_t id, ULong_t color) override |
Set the window background color. | |
void | SetWindowBackgroundPixmap (Window_t id, Pixmap_t pxm) override |
Set pixmap as window background. | |
void | SetWindowName (Window_t id, char *name) override |
Set window name. | |
void | SetWMPosition (Window_t id, Int_t x, Int_t y) override |
Tell the window manager the desired window position. | |
void | SetWMSize (Window_t id, UInt_t w, UInt_t h) override |
Tell the window manager the desired window size. | |
void | SetWMSizeHints (Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc) override |
Give the window manager minimum and maximum size hints. | |
void | SetWMState (Window_t id, EInitialState state) override |
Set the initial state of the window. Either kNormalState or kIconicState. | |
void | SetWMTransientHint (Window_t id, Window_t main_id) override |
Tell window manager that window is a transient window of main. | |
void | ShapeCombineMask (Window_t id, Int_t x, Int_t y, Pixmap_t mask) override |
The Nonrectangular Window Shape Extension adds nonrectangular windows to the System. | |
void | Streamer (TBuffer &) override |
Stream an object of class TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
void | SubtractRegion (Region_t rega, Region_t regb, Region_t result) override |
Subtract rega from regb. | |
Int_t | SupportsExtension (const char *ext) const override |
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). | |
void | Sync (Int_t mode) override |
Set synchronisation on or off. | |
Int_t | TextWidth (FontStruct_t font, const char *s, Int_t len) override |
Return length of string in pixels. Size depends on font. | |
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) override |
TranslateCoordinates translates coordinates from the frame of reference of one window to another. | |
void | UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest) override |
Union of rectangle with a region. | |
void | UnionRegion (Region_t rega, Region_t regb, Region_t result) override |
Compute the union of rega and regb and return result region. | |
void | UnmapWindow (Window_t id) override |
Unmap window from screen. | |
void | Update (Int_t mode=0) override |
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer. | |
void | UpdateWindow (Int_t mode) override |
Update display. | |
void | Warp (Int_t ix, Int_t iy, Window_t id=0) override |
Set pointer position. | |
void | WMDeleteNotify (Window_t id) override |
Tell WM to send message when window is closed via WM. | |
Int_t | WriteGIF (char *name) override |
Writes the current window into GIF file. | |
void | WritePixmap (Int_t wid, UInt_t w, UInt_t h, char *pxname) override |
Write the pixmap wid in the bitmap file pxname. | |
void | XorRegion (Region_t rega, Region_t regb, Region_t result) override |
Calculate the difference between the union and intersection of two regions. | |
Public Member Functions inherited from TVirtualX | |
TVirtualX () | |
TVirtualX (const char *name, const char *title) | |
Ctor of ABC. | |
virtual | ~TVirtualX () |
virtual void | BeginModalSessionFor (Window_t window) |
Start a modal session for a dialog window. | |
virtual void | CreateOpenGLContext (Int_t wid=0) |
Creates OpenGL context for window "wid". | |
virtual Handle_t | CreateOpenGLContext (Window_t windowID, Handle_t sharedContext) |
Creates OpenGL context for window "windowID". | |
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. | |
virtual void | DeleteOpenGLContext (Int_t wid=0) |
Deletes OpenGL context for window "wid". | |
virtual void | DispatchClientMessage (UInt_t messageID) |
Force processing of event, sent by SendEvent before. | |
virtual UInt_t | ExecCommand (TGWin32Command *code) |
Executes the command "code" coming from the other threads (Win32) | |
virtual void | FlushOpenGLBuffer (Handle_t ctx) |
Flushes OpenGL buffer. | |
virtual Handle_t | GetCurrentOpenGLContext () |
Asks OpenGL subsystem about the current OpenGL context. | |
EDrawMode | GetDrawMode () |
virtual Int_t | GetFontAscent () const |
Returns the ascent of the current font (in pixels). | |
virtual Int_t | GetFontAscent (const char *mess) const |
Default version is noop, but in principle what ROOT understands as ascent is text related. | |
virtual Int_t | GetFontDescent () const |
Returns the descent of the current font (in pixels. | |
virtual Int_t | GetFontDescent (const char *mess) const |
Default version is noop, but in principle what ROOT understands as descent requires a certain text. | |
virtual FontStruct_t | GetGCFont (GContext_t gc) |
Return the font associated with the graphics context gc. | |
virtual Double_t | GetOpenGLScalingFactor () |
On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height. | |
TClass * | IsA () const override |
virtual Bool_t | IsCmdThread () const |
virtual Bool_t | MakeOpenGLContextCurrent (Handle_t ctx, Window_t windowID) |
Makes context ctx current OpenGL context. | |
virtual void | MapGCFont (GContext_t, FontStruct_t) |
Map the XftFont with the Graphics Context using it. | |
virtual Bool_t | NeedRedraw (ULongptr_t tgwindow, Bool_t force) |
Notify the low level GUI layer ROOT requires "tgwindow" to be updated. | |
virtual void | SelectPixmap (Int_t qpixid) |
Selects the pixmap "qpixid". | |
void | SetFillColor (Color_t cindex) override |
Sets color index "cindex" for fill areas. | |
void | SetFillStyle (Style_t style) override |
Sets fill area style. | |
void | SetLineColor (Color_t cindex) override |
Sets color index "cindex" for drawing lines. | |
void | SetLineStyle (Style_t linestyle) override |
Sets the line style. | |
void | SetLineWidth (Width_t width) override |
Sets the line width. | |
void | SetMarkerColor (Color_t cindex) override |
Sets color index "cindex" for markers. | |
void | SetMarkerSize (Float_t markersize) override |
Sets marker size index. | |
void | SetMarkerStyle (Style_t markerstyle) override |
Sets marker style. | |
void | SetTextAlign (Short_t talign=11) override |
Sets the text alignment. | |
void | SetTextColor (Color_t cindex) override |
Sets the color index "cindex" for text. | |
void | SetTextFont (Font_t fontnumber) override |
Sets the current text font number. | |
void | SetTextSize (Float_t textsize) override |
Sets the current text size to "textsize". | |
void | Streamer (TBuffer &) override |
Stream an object of class TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. | |
void | Clear (Option_t *option="") override |
Set name and title to empty strings (""). | |
TObject * | Clone (const char *newname="") const override |
Make a clone of an object using the Streamer facility. | |
Int_t | Compare (const TObject *obj) const override |
Compare two TNamed objects. | |
void | Copy (TObject &named) const override |
Copy this to obj. | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. | |
const char * | GetName () const override |
Returns name of object. | |
const char * | GetTitle () const override |
Returns title of object. | |
ULong_t | Hash () const override |
Return hash value for this object. | |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
List TNamed name and title. | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. | |
void | Print (Option_t *option="") const override |
Print TNamed name and title. | |
virtual void | SetName (const char *name) |
Set the name of the TNamed. | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. | |
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. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1) . | |
virtual void | Dump () const |
Dump contents of object on stdout. | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. | |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
Execute method on this object with the given parameter string, e.g. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
Execute method on this object with parameters stored in the TObjArray. | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual const char * | GetIconName () const |
Returns mime type name of object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
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. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. | |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
IsDestructed. | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
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). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification (the base implementation is no-op). | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete (void *ptr, void *vp) |
Only called by placement new when throwing an exception. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
void | operator delete[] (void *ptr, void *vp) |
Only called by placement new[] when throwing an exception. | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
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. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. | |
virtual | ~TAttLine () |
AttLine destructor. | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. | |
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. | |
virtual Color_t | GetLineColor () const |
Return the line color. | |
virtual Style_t | GetLineStyle () const |
Return the line style. | |
virtual Width_t | GetLineWidth () const |
Return the line width. | |
virtual void | Modify () |
Change current line attributes if necessary. | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. | |
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. | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. | |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TAttFill | |
TAttFill () | |
AttFill default constructor. | |
TAttFill (Color_t fcolor, Style_t fstyle) | |
AttFill normal constructor. | |
virtual | ~TAttFill () |
AttFill destructor. | |
void | Copy (TAttFill &attfill) const |
Copy this fill attributes to a new TAttFill. | |
virtual Color_t | GetFillColor () const |
Return the fill area color. | |
virtual Style_t | GetFillStyle () const |
Return the fill area style. | |
virtual Bool_t | IsTransparent () const |
virtual void | Modify () |
Change current fill area attributes if necessary. | |
virtual void | ResetAttFill (Option_t *option="") |
Reset this fill attributes to default values. | |
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. | |
virtual void | SetFillAttributes () |
Invoke the DialogCanvas Fill attributes. | |
virtual void | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
Set a transparent fill color. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TAttText | |
TAttText () | |
AttText default constructor. | |
TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) | |
AttText normal constructor. | |
virtual | ~TAttText () |
AttText destructor. | |
void | Copy (TAttText &atttext) const |
Copy this text attributes to a new TAttText. | |
virtual Short_t | GetTextAlign () const |
Return the text alignment. | |
virtual Float_t | GetTextAngle () const |
Return the text angle. | |
virtual Color_t | GetTextColor () const |
Return the text color. | |
virtual Font_t | GetTextFont () const |
Return the text font. | |
virtual Float_t | GetTextSize () const |
Return the text size. | |
virtual Float_t | GetTextSizePercent (Float_t size) |
Return the text in percent of the pad size. | |
virtual void | Modify () |
Change current text attributes if necessary. | |
virtual void | ResetAttText (Option_t *toption="") |
Reset this text attributes to default values. | |
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. | |
virtual void | SetTextAngle (Float_t tangle=0) |
Set the text angle. | |
virtual void | SetTextAttributes () |
Invoke the DialogCanvas Text attributes. | |
virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
Set a transparent marker color. | |
virtual void | SetTextSizePixels (Int_t npixels) |
Set the text size in pixel. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TAttMarker | |
TAttMarker () | |
TAttMarker default constructor. | |
TAttMarker (Color_t color, Style_t style, Size_t msize) | |
TAttMarker normal constructor. | |
virtual | ~TAttMarker () |
TAttMarker destructor. | |
void | Copy (TAttMarker &attmarker) const |
Copy this marker attributes to a new TAttMarker. | |
virtual Color_t | GetMarkerColor () const |
Return the marker color. | |
virtual Size_t | GetMarkerSize () const |
Return the marker size. | |
virtual Style_t | GetMarkerStyle () const |
Return the marker style. | |
virtual void | Modify () |
Change current marker attributes if necessary. | |
virtual void | ResetAttMarker (Option_t *toption="") |
Reset this marker attributes to the default values. | |
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. | |
virtual void | SetMarkerAttributes () |
Invoke the DialogCanvas Marker attributes. | |
virtual void | SetMarkerColorAlpha (Color_t mcolor, Float_t malpha) |
Set a transparent marker color. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TVirtualX | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static TVirtualX *& | Instance () |
Returns gVirtualX global. | |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Static Public Member Functions inherited from TAttLine | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TAttFill | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TAttText | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TAttMarker | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Width_t | GetMarkerLineWidth (Style_t style) |
Internal helper function that returns the line width of the given marker style (0 = filled marker) | |
static Style_t | GetMarkerStyleBase (Style_t style) |
Internal helper function that returns the corresponding marker style with line width 1 for the given style. | |
Protected Member Functions | |
Bool_t | AllocColor (Colormap cmap, RXColor *color) |
Allocate color in colormap. | |
XColor_t & | GetColor (Int_t cid) |
Return reference to internal color structure associated to color index cid. | |
void * | GetGC (Int_t which) const |
Return desired Graphics Context ("which" maps directly on gGCList[]). | |
void | QueryColors (Colormap cmap, RXColor *colors, Int_t ncolors) |
Returns the current RGB value for the pixel in the XColor structure. | |
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). | |
void | MakeZombie () |
Protected Attributes | |
ULong_t | fBlackPixel |
Value of black pixel in colormap. | |
Int_t | fBlueDiv |
Blue value divider. | |
Int_t | fBlueShift |
Bits to left shift blue. | |
Float_t | fCharacterUpX |
Character Up vector along X. | |
Float_t | fCharacterUpY |
Character Up vector along Y. | |
Colormap | fColormap |
Default colormap, 0 if b/w. | |
Int_t | fDepth |
Number of color planes. | |
void * | fDisplay |
Pointer to display. | |
Int_t | fGreenDiv |
Green value divider. | |
Int_t | fGreenShift |
Bits to left shift green. | |
Bool_t | fHasTTFonts |
True when TrueType fonts are used. | |
Bool_t | fHasXft |
True when XftFonts are used. | |
Int_t | fRedDiv |
Red value divider, -1 if no TrueColor visual. | |
Int_t | fRedShift |
Bits to left shift red, -1 if no TrueColor visual. | |
Drawable | fRootWin |
Root window used as parent of all windows. | |
Int_t | fScreenNumber |
Screen number. | |
Int_t | fTextAlign |
Text alignment (set in SetTextAlign) | |
Int_t | fTextAlignH |
Text Alignment Horizontal. | |
Int_t | fTextAlignV |
Text Alignment Vertical. | |
Float_t | fTextMagnitude |
Text Magnitude. | |
Drawable | fVisRootWin |
Root window with fVisual to be used to create GC's and XImages. | |
RVisual * | fVisual |
Pointer to visual used by all windows. | |
ULong_t | fWhitePixel |
Value of white pixel in colormap. | |
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. | |
Style_t | fLineStyle |
Line style. | |
Width_t | fLineWidth |
Line width. | |
Protected Attributes inherited from TAttFill | |
Color_t | fFillColor |
Fill area color. | |
Style_t | fFillStyle |
Fill area style. | |
Protected Attributes inherited from TAttText | |
Short_t | fTextAlign |
Text alignment. | |
Float_t | fTextAngle |
Text angle. | |
Color_t | fTextColor |
Text color. | |
Font_t | fTextFont |
Text font. | |
Float_t | fTextSize |
Text size. | |
Protected Attributes inherited from TAttMarker | |
Color_t | fMarkerColor |
Marker color. | |
Size_t | fMarkerSize |
Marker size. | |
Style_t | fMarkerStyle |
Marker style. | |
Private Member Functions | |
void | ClearPixmap (Drawable *pix) |
Clear the pixmap pix. | |
void | CloseWindow1 () |
Delete current window. | |
void | CollectImageColors (ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors, Int_t &maxcolors) |
Collect in orgcolors all different original image colors. | |
void | CopyWindowtoPixmap (Drawable *pix, Int_t xpos, Int_t ypos) |
Copy area of current window in the pixmap pix. | |
void | FindBestVisual () |
Find best visual, i.e. | |
Int_t | FindColor (ULong_t pixel, ULong_t *orgcolors, Int_t ncolors) |
Returns index in orgcolors (and fNewColors) for pixel. | |
void | FindUsableVisual (RXVisualInfo *vlist, Int_t nitems) |
Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel. | |
void | ImgPickPalette (RXImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B) |
Returns in R G B the ncol colors of the palette used by the image. | |
void | MakeOpaqueColors (Int_t percent, ULong_t *orgcolors, Int_t ncolors) |
Get RGB values for orgcolors, add percent neutral to the RGB and allocate fNewColors. | |
void | MapColorStruct (ColorStruct_t *color, RXColor &xcolor) |
Map a ColorStruct_t to a XColor structure. | |
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. | |
void | MapEventMask (UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE) |
Map event mask to or from X. | |
void | MapGCValues (GCValues_t &gval, ULong_t &xmask, RXGCValues &xgval, Bool_t tox=kTRUE) |
Map a GCValues_t to a XCGValues structure if tox is true. | |
void | MapKeySym (UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE) |
Map to and from X key symbols. | |
void | MapModifierState (UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE) |
Map modifier key state to or from X. | |
void | MapPictureAttributes (PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE) |
Map a PictureAttributes_t to a XpmAttributes structure. | |
void | MapSetWindowAttributes (SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr) |
Map a SetWindowAttributes_t to a XSetWindowAttributes structure. | |
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. | |
void | RemovePixmap (Drawable *pix) |
Remove the pixmap pix. | |
void | SetColor (void *gc, Int_t ci) |
Set the foreground color in GC. | |
void | SetFillStyleIndex (Int_t style, Int_t fasi) |
Set fill area style index. | |
void | SetInput (Int_t inp) |
Set input on or off. | |
void | SetMarkerType (Int_t type, Int_t n, RXPoint *xy) |
Set marker type. | |
Private Attributes | |
TExMap * | fColors |
Hash list of colors. | |
Cursor | fCursors [kNumCursors] |
List of cursors. | |
Int_t | fMaxNumberOfWindows |
Maximum number of windows. | |
XWindow_t * | fWindows |
List of windows. | |
void * | fXEvent |
Current native (X11) event. | |
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 = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) } |
enum | EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) } |
enum | EStatusBits { kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) , kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 )) } |
Protected Types inherited from TObject | |
enum | { kOnlyPrepStep = (1ULL << ( 3 )) } |
#include <TGX11.h>
TGX11::TGX11 | ( | const TGX11 & | org | ) |
TGX11::TGX11 | ( | const char * | name, |
const char * | title | ||
) |
Register a window created by Qt as a ROOT window (like InitWindow()).
Reimplemented from TVirtualX.
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.:
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.
|
overridevirtual |
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 1351 of file GX11Gui.cxx.
|
overridevirtual |
Sound bell. Percent is loudness from -100% .. 100%.
Reimplemented from TVirtualX.
Definition at line 1675 of file GX11Gui.cxx.
Changes the specified dynamic parameters if the pointer is actively grabbed by the client.
Reimplemented from TVirtualX.
Definition at line 2718 of file GX11Gui.cxx.
|
overridevirtual |
Change entries in an existing graphics context, gc, by values from gval.
Reimplemented from TVirtualX.
Definition at line 993 of file GX11Gui.cxx.
|
overridevirtual |
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 2751 of file GX11Gui.cxx.
|
overridevirtual |
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 1719 of file GX11Gui.cxx.
|
overridevirtual |
Change window attributes.
Reimplemented from TVirtualX.
Definition at line 1698 of file GX11Gui.cxx.
|
overridevirtual |
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 1753 of file GX11Gui.cxx.
|
static |
|
inlinestaticconstexpr |
Clear a window area to the background color.
Reimplemented from TVirtualX.
Definition at line 1741 of file GX11Gui.cxx.
|
private |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Close connection to display server.
Reimplemented from TVirtualX.
Definition at line 840 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
|
private |
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 2267 of file GX11Gui.cxx.
|
overridevirtual |
Requests that the specified selection be converted to the specified target type.
Reimplemented from TVirtualX.
Definition at line 2732 of file GX11Gui.cxx.
|
overridevirtual |
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 1685 of file GX11Gui.cxx.
|
overridevirtual |
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 1012 of file GX11Gui.cxx.
|
overridevirtual |
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.
Reimplemented from TVirtualX.
Definition at line 1082 of file GX11Gui.cxx.
Create cursor handle (just return cursor from cursor pool fCursors).
Reimplemented from TVirtualX.
Definition at line 1043 of file GX11Gui.cxx.
|
overridevirtual |
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 971 of file GX11Gui.cxx.
|
overridevirtual |
Create a client-side XImage. Returns handle to XImage.
Reimplemented from TVirtualX.
Definition at line 2613 of file GX11Gui.cxx.
|
overridevirtual |
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 1236 of file GX11Gui.cxx.
|
overridevirtual |
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 1183 of file GX11Gui.cxx.
|
overridevirtual |
Create a pixmap from bitmap data.
Ones will get foreground color and zeroes background color.
Reimplemented from TVirtualX.
Definition at line 1071 of file GX11Gui.cxx.
|
overridevirtual |
Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it.
Reimplemented from TVirtualX.
Definition at line 1062 of file GX11Gui.cxx.
|
overridevirtual |
Create a new empty region.
Reimplemented from TVirtualX.
Definition at line 2491 of file GX11Gui.cxx.
|
overridevirtual |
Return handle to newly created X window.
Reimplemented from TVirtualX.
Definition at line 370 of file GX11Gui.cxx.
|
inlinestatic |
|
overridevirtual |
Explicitly delete font structure obtained with LoadQueryFont().
Reimplemented from TVirtualX.
Definition at line 962 of file GX11Gui.cxx.
|
overridevirtual |
Explicitly delete a graphics context.
Reimplemented from TVirtualX.
Definition at line 1032 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
Delete picture data created by the function ReadPictureDataFromFile.
Reimplemented from TVirtualX.
Definition at line 1292 of file GX11Gui.cxx.
|
overridevirtual |
Explicitly delete pixmap resource.
Reimplemented from TVirtualX.
Definition at line 1092 of file GX11Gui.cxx.
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 2694 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
Destroy subwindows of this window.
Reimplemented from TVirtualX.
Definition at line 267 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Draw a cell array.
[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.
|
overridevirtual |
|
overridevirtual |
Draw a rectangle outline.
Reimplemented from TVirtualX.
Definition at line 2175 of file GX11Gui.cxx.
|
overridevirtual |
Draws multiple line segments. Each line is specified by a pair of points.
Reimplemented from TVirtualX.
Definition at line 2185 of file GX11Gui.cxx.
|
overridevirtual |
Draw a string using a specific graphics context in position (x,y).
Reimplemented from TVirtualX.
Definition at line 2058 of file GX11Gui.cxx.
|
overridevirtual |
Draw a text string using current font.
[in] | mode | : drawing mode
|
[in] | x,y | : text position |
[in] | angle | : text angle |
[in] | mgn | : magnification factor |
[in] | text | : text string |
Reimplemented from TVirtualX.
Reimplemented in TGX11TTF.
|
inlineoverridevirtual |
Draws a text string using current font.
[in] | x,y | text position |
[in] | angle | text angle |
[in] | mgn | magnification factor |
[in] | text | text string |
[in] | mode | drawing mode:
|
Reimplemented from TVirtualX.
Reimplemented in TGX11TTF.
Return true if the region is empty.
Reimplemented from TVirtualX.
Definition at line 2561 of file GX11Gui.cxx.
Returns true if two regions are equal.
Reimplemented from TVirtualX.
Definition at line 2577 of file GX11Gui.cxx.
|
overridevirtual |
Returns number of pending events.
Reimplemented from TVirtualX.
Definition at line 1400 of file GX11Gui.cxx.
|
overridevirtual |
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 2421 of file GX11Gui.cxx.
|
overridevirtual |
Draw a filled rectangle. Filling is done according to the gc.
Reimplemented from TVirtualX.
Definition at line 2165 of file GX11Gui.cxx.
|
private |
|
overridevirtual |
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 2802 of file GX11Gui.cxx.
|
private |
|
overridevirtual |
Free color cell with specified pixel value.
Reimplemented from TVirtualX.
Definition at line 1391 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
Free font structure returned by GetFontStruct().
Reimplemented from TVirtualX.
Definition at line 2123 of file GX11Gui.cxx.
|
overridevirtual |
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.
|
overridevirtual |
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 871 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
Return handle to the default root window created when calling XOpenDisplay().
Reimplemented from TVirtualX.
Definition at line 912 of file GX11Gui.cxx.
|
overridevirtual |
Returns depth of screen (number of bit planes).
Equivalent to GetPlanes().
Reimplemented from TVirtualX.
Definition at line 890 of file GX11Gui.cxx.
|
overridevirtual |
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 851 of file GX11Gui.cxx.
|
overridevirtual |
Return handle to font described by font structure.
Reimplemented from TVirtualX.
Definition at line 950 of file GX11Gui.cxx.
|
overridevirtual |
Return some font properties.
Reimplemented from TVirtualX.
Definition at line 2077 of file GX11Gui.cxx.
|
overridevirtual |
Retrieve associated font structure once we have the font handle.
Free returned FontStruct_t using FreeFontStruct().
Reimplemented from TVirtualX.
Definition at line 2111 of file GX11Gui.cxx.
|
protected |
|
overridevirtual |
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 2090 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
Returns the window id of the window having the input focus.
Reimplemented from TVirtualX.
Definition at line 2212 of file GX11Gui.cxx.
|
inlineoverridevirtual |
Return the parent of the window.
Reimplemented from TVirtualX.
Definition at line 920 of file GX11Gui.cxx.
|
overridevirtual |
Get contents of paste buffer atom into string.
If del is true delete the paste buffer afterwards.
Reimplemented from TVirtualX.
Definition at line 2343 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
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 2240 of file GX11Gui.cxx.
|
overridevirtual |
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 2705 of file GX11Gui.cxx.
|
overridevirtual |
Return smallest enclosing rectangle.
Reimplemented from TVirtualX.
Definition at line 2585 of file GX11Gui.cxx.
|
overridevirtual |
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 881 of file GX11Gui.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
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 861 of file GX11Gui.cxx.
|
overridevirtual |
Get window attributes and return filled in attributes structure.
Reimplemented from TVirtualX.
Definition at line 763 of file GX11Gui.cxx.
|
overridevirtual |
Return geometry of window (should be called GetGeometry but signature already used).
Reimplemented from TVirtualX.
Definition at line 2403 of file GX11Gui.cxx.
|
overridevirtual |
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 1846 of file GX11Gui.cxx.
|
overridevirtual |
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 1825 of file GX11Gui.cxx.
|
overridevirtual |
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 1872 of file GX11Gui.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
|
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.
|
overridevirtual |
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 900 of file GX11Gui.cxx.
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 2536 of file GX11Gui.cxx.
|
inlineoverridevirtual |
Checks if Window win is DND aware, and knows any of the DND formats passed in argument.
Reimplemented from TVirtualX.
Definition at line 2853 of file GX11Gui.cxx.
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 2154 of file GX11Gui.cxx.
Return list of font names matching fontname regexp, like "-*-times-*".
Reimplemented from TVirtualX.
Definition at line 2593 of file GX11Gui.cxx.
|
overridevirtual |
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 941 of file GX11Gui.cxx.
|
overridevirtual |
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 2281 of file GX11Gui.cxx.
|
overridevirtual |
Lower window so it lays below all its siblings.
Reimplemented from TVirtualX.
Definition at line 287 of file GX11Gui.cxx.
|
private |
Map a ColorStruct_t to a XColor structure.
Definition at line 1315 of file GX11Gui.cxx.
Map Event_t structure to XEvent structure.
If tox is false map the other way.
Definition at line 1483 of file GX11Gui.cxx.
Map event mask to or from X.
Definition at line 402 of file GX11Gui.cxx.
|
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 556 of file GX11Gui.cxx.
Map to and from X key symbols.
Keysym are the values returned by XLookUpString.
Definition at line 2303 of file GX11Gui.cxx.
Map modifier key state to or from X.
Definition at line 1422 of file GX11Gui.cxx.
|
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 1101 of file GX11Gui.cxx.
|
overridevirtual |
Map window on screen and put on top of all windows.
Reimplemented from TVirtualX.
Definition at line 237 of file GX11Gui.cxx.
|
private |
Map a SetWindowAttributes_t to a XSetWindowAttributes structure.
Definition at line 467 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
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 1411 of file GX11Gui.cxx.
|
overridevirtual |
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 809 of file GX11Gui.cxx.
Int_t TGX11::OpenDisplay | ( | void * | display | ) |
|
overridevirtual |
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 1331 of file GX11Gui.cxx.
Returns true if the point x,y is in the region.
Reimplemented from TVirtualX.
Definition at line 2569 of file GX11Gui.cxx.
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 2517 of file GX11Gui.cxx.
|
overridevirtual |
Put (x,y,w,h) part of image img in window win at position dx,dy.
Reimplemented from TVirtualX.
Definition at line 2653 of file GX11Gui.cxx.
|
overridevirtual |
Set pixel at specified location in XImage img.
Reimplemented from TVirtualX.
Definition at line 2645 of file GX11Gui.cxx.
|
overridevirtual |
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 1371 of file GX11Gui.cxx.
|
overridevirtual |
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 2438 of file GX11Gui.cxx.
|
overridevirtual |
Put window on top of window stack.
Reimplemented from TVirtualX.
Definition at line 277 of file GX11Gui.cxx.
|
overridevirtual |
Read picture data from file and store in ret_data.
Returns kTRUE in case of success, kFALSE otherwise.
Reimplemented from TVirtualX.
Definition at line 1278 of file GX11Gui.cxx.
|
private |
|
overridevirtual |
Remove a window created by Qt (like CloseWindow1()).
Reimplemented from TVirtualX.
Reparent window to new parent window at position (x,y).
Reimplemented from TVirtualX.
Definition at line 340 of file GX11Gui.cxx.
Request Locator position.
[in] | x,y | : cursor position at moment of button press (output) |
[in] | ctyp | : cursor type (input)
|
[in] | mode | : input mode
|
Request locator: return button number:
Reimplemented from TVirtualX.
Request a string.
[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.
|
overridevirtual |
|
overridevirtual |
Returns the width of the screen in millimeters.
Reimplemented from TVirtualX.
Definition at line 2684 of file GX11Gui.cxx.
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 2198 of file GX11Gui.cxx.
|
overridevirtual |
Send event ev to window id.
Reimplemented from TVirtualX.
Definition at line 1784 of file GX11Gui.cxx.
|
overridevirtual |
Set the windows class and resource name.
Reimplemented from TVirtualX.
Definition at line 1940 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
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 2470 of file GX11Gui.cxx.
|
private |
Set the specified cursor.
Reimplemented from TVirtualX.
Definition at line 1051 of file GX11Gui.cxx.
|
overridevirtual |
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 1307 of file GX11Gui.cxx.
Add XdndAware property and the list of drag and drop types to the Window win.
Reimplemented from TVirtualX.
Definition at line 2764 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).
Reimplemented from TVirtualX.
Definition at line 2460 of file GX11Gui.cxx.
|
overridevirtual |
Set pixmap the WM can use when the window is iconized.
Reimplemented from TVirtualX.
Definition at line 1925 of file GX11Gui.cxx.
|
private |
|
overridevirtual |
Set keyboard input focus to window id.
Reimplemented from TVirtualX.
Definition at line 2224 of file GX11Gui.cxx.
Turn key auto repeat on or off.
Reimplemented from TVirtualX.
Definition at line 1808 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
Set line type.
[in] | n | : length of dash list |
[in] | dash | : dash segment lengths |
Reimplemented from TVirtualX.
|
overridevirtual |
|
overridevirtual |
Set color index for markers.
Reimplemented from TAttMarker.
|
overridevirtual |
|
overridevirtual |
Set marker type.
[in] | type | : marker type |
[in] | n | : length of marker description |
[in] | xy | : list of points describing marker shape |
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
Reimplemented from TVirtualX.
Definition at line 1954 of file GX11Gui.cxx.
|
overridevirtual |
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.
|
overridevirtual |
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 2249 of file GX11Gui.cxx.
Changes the owner and last-change time for the specified selection.
Reimplemented from TVirtualX.
Definition at line 2741 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Set text font to specified name.
[in] | fontname | font name |
[in] | mode | loading flag
|
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.
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Add the list of drag and drop types to the Window win.
Reimplemented from TVirtualX.
Definition at line 2785 of file GX11Gui.cxx.
Set the window background color.
Reimplemented from TVirtualX.
Definition at line 350 of file GX11Gui.cxx.
Set pixmap as window background.
Reimplemented from TVirtualX.
Definition at line 360 of file GX11Gui.cxx.
|
overridevirtual |
Tell the window manager the desired window position.
Reimplemented from TVirtualX.
Definition at line 1972 of file GX11Gui.cxx.
Tell the window manager the desired window size.
Reimplemented from TVirtualX.
Definition at line 1988 of file GX11Gui.cxx.
|
overridevirtual |
Give the window manager minimum and maximum size hints.
Also specify via winc and hinc the resize increments.
Reimplemented from TVirtualX.
Definition at line 2005 of file GX11Gui.cxx.
|
overridevirtual |
Set the initial state of the window. Either kNormalState or kIconicState.
Reimplemented from TVirtualX.
Definition at line 2027 of file GX11Gui.cxx.
Tell window manager that window is a transient window of main.
Reimplemented from TVirtualX.
Definition at line 2048 of file GX11Gui.cxx.
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 2675 of file GX11Gui.cxx.
|
overridevirtual |
|
inline |
|
overridevirtual |
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:
Reimplemented from TVirtualX.
|
overridevirtual |
|
overridevirtual |
Return length of string in pixels. Size depends on font.
Reimplemented from TVirtualX.
Definition at line 2069 of file GX11Gui.cxx.
|
overridevirtual |
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 2387 of file GX11Gui.cxx.
|
overridevirtual |
Union of rectangle with a region.
Reimplemented from TVirtualX.
Definition at line 2507 of file GX11Gui.cxx.
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 2527 of file GX11Gui.cxx.
|
overridevirtual |
|
overridevirtual |
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 2480 of file GX11Gui.cxx.
|
overridevirtual |
Set pointer position.
[in] | ix | New X coordinate of pointer |
[in] | iy | New Y coordinate of pointer |
[in] | id | Window 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.
|
overridevirtual |
Tell WM to send message when window is closed via WM.
Reimplemented from TVirtualX.
Definition at line 1798 of file GX11Gui.cxx.
|
overridevirtual |
Calculate the difference between the union and intersection of two regions.
Reimplemented from TVirtualX.
Definition at line 2553 of file GX11Gui.cxx.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |