ROOT
6.07/01
Reference Guide
|
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 () | |
TGX11 (const TGX11 &org) | |
Copy constructor. Currently only used by TGX11TTF. More... | |
TGX11 (const char *name, const char *title) | |
Normal Constructor. More... | |
virtual | ~TGX11 () |
Destructor. More... | |
Bool_t | Init (void *display) |
Initialize X11 system. Returns kFALSE in case of failure. More... | |
void | ClearWindow () |
Clear current window. More... | |
void | ClosePixmap () |
Delete current pixmap. More... | |
void | CloseWindow () |
Delete current window. 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... | |
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 (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... | |
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... | |
void | GetCharacterUp (Float_t &chupx, Float_t &chupy) |
Return character up vector. More... | |
Int_t | GetDoubleBuffer (Int_t wid) |
Query the double buffer value for the window wid. 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... | |
const char * | DisplayName (const char *dpyName=0) |
Return hostname on which the display is opened. More... | |
Handle_t | GetNativeEvent () const |
Returns the current native event handle. 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... | |
void | GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b) |
Get rgb values for color "index". More... | |
virtual void | GetTextExtent (UInt_t &w, UInt_t &h, char *mess) |
Return the size of a character string. More... | |
virtual void | GetTextExtent (UInt_t &, UInt_t &, wchar_t *) |
Returns the size of the specified character string "mess". More... | |
Float_t | GetTextMagnitude () |
Returns the current font magnification factor. More... | |
Window_t | GetWindowID (Int_t wid) |
Return the X11 window identifier. More... | |
Bool_t | HasTTFonts () const |
Returns True when TrueType fonts are used. More... | |
Int_t | InitWindow (ULong_t window) |
Open window and return window number. 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... | |
Int_t | AddPixmap (ULong_t pixid, UInt_t w, UInt_t h) |
Register pixmap created by gVirtualGL. More... | |
void | RemoveWindow (ULong_t qwid) |
Remove a window created by Qt (like CloseWindow1()). More... | |
void | MoveWindow (Int_t wid, Int_t x, Int_t y) |
Move the window wid. 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... | |
void | QueryPointer (Int_t &ix, Int_t &iy) |
Query pointer position. 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... | |
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 | SelectWindow (Int_t wid) |
Select window to which subsequent output is directed. More... | |
void | SetCharacterUp (Float_t chupx, Float_t chupy) |
Set character up vector. More... | |
void | SetClipOFF (Int_t wid) |
Turn off the clipping for the window wid. 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 | 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 | SetLineColor (Color_t cindex) |
Set color index for lines. More... | |
void | SetLineType (Int_t n, Int_t *dash) |
Set line type. More... | |
void | SetLineStyle (Style_t linestyle) |
Set line style. 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 | SetOpacity (Int_t percent) |
Set opacity of a window. More... | |
void | SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b) |
Set color intensities for given color index. 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 | Sync (Int_t mode) |
Set synchronisation on or off. 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... | |
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... | |
Window_t | GetCurrentWindow () const |
Return current window pointer. Protected method used by TGX11TTF. 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 | GetWindowAttributes (Window_t id, WindowAttributes_t &attr) |
Get window attributes and return filled in attributes structure. More... | |
void | MapWindow (Window_t id) |
Map window on screen. More... | |
void | MapSubwindows (Window_t id) |
Map sub windows. More... | |
void | MapRaised (Window_t id) |
Map window on screen and put on top of all windows. More... | |
void | UnmapWindow (Window_t id) |
Unmap window from screen. More... | |
void | DestroyWindow (Window_t id) |
Destroy window. More... | |
void | DestroySubwindows (Window_t id) |
Destroy subwindows of this window. More... | |
void | RaiseWindow (Window_t id) |
Put window on top of window stack. More... | |
void | LowerWindow (Window_t id) |
Lower window so it lays below all its siblings. More... | |
void | MoveWindow (Window_t id, Int_t x, Int_t y) |
Move a window. 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 | ResizeWindow (Window_t id, UInt_t w, UInt_t h) |
Resize the window. More... | |
void | IconifyWindow (Window_t id) |
Iconify the window. 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... | |
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... | |
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... | |
Int_t | OpenDisplay (const char *dpyName) |
Open connection to display server (if such a thing exist on the current platform). More... | |
void | CloseDisplay () |
Close connection to display server. 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... | |
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... | |
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... | |
Int_t | GetDepth () const |
Returns depth of screen (number of bit planes). 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... | |
Atom_t | InternAtom (const char *atom_name, Bool_t only_if_exist) |
Return atom handle for atom_name. More... | |
Window_t | GetDefaultRootWindow () const |
Return handle to the default root window created when calling XOpenDisplay(). More... | |
Window_t | GetParent (Window_t id) const |
Return the parent of the window. More... | |
FontStruct_t | LoadQueryFont (const char *font_name) |
Load font and query font. More... | |
FontH_t | GetFontHandle (FontStruct_t fs) |
Return handle to font described by font structure. More... | |
void | DeleteFont (FontStruct_t fs) |
Explicitly delete font structure obtained with LoadQueryFont(). 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... | |
void | ChangeGC (GContext_t gc, GCValues_t *gval) |
Change entries in an existing graphics context, gc, by values from gval. More... | |
void | CopyGC (GContext_t org, GContext_t dest, Mask_t mask) |
Copies graphics context from org to dest. More... | |
void | DeleteGC (GContext_t gc) |
Explicitly delete a graphics context. More... | |
Cursor_t | CreateCursor (ECursor cursor) |
Create cursor handle (just return cursor from cursor pool fCursors). More... | |
void | SetCursor (Window_t id, Cursor_t curid) |
Set the specified cursor. 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 | 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... | |
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 ... More... | |
Pixmap_t | CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height) |
create pixmap from RGB data. 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... | |
void | DeletePixmap (Pixmap_t pmap) |
Explicitly delete pixmap resource. 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... | |
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 | ReadPictureDataFromFile (const char *filename, char ***ret_data) |
Read picture data from file and store in ret_data. More... | |
void | DeletePictureData (void *data) |
Delete picture data created by the function ReadPictureDataFromFile. More... | |
void | SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n) |
Specify a dash pattern. 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 | 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 | QueryColor (Colormap_t cmap, ColorStruct_t &color) |
Fill in the primary color components for a specific pixel value. More... | |
void | FreeColor (Colormap_t cmap, ULong_t pixel) |
Free color cell with specified pixel value. More... | |
Int_t | EventsPending () |
Returns number of pending events. More... | |
void | NextEvent (Event_t &event) |
Copies first pending event from event queue to Event_t structure and removes event from queue. More... | |
void | Bell (Int_t percent) |
Sound bell. Percent is loudness from -100% .. 100%. 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 | ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr) |
Change window attributes. 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 | DrawLine (Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2) |
Draw a line. 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... | |
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 | SendEvent (Window_t id, Event_t *ev) |
Send event ev to window id. More... | |
void | WMDeleteNotify (Window_t id) |
Tell WM to send message when window is closed via WM. More... | |
void | SetKeyAutoRepeat (Bool_t on=kTRUE) |
Turn key auto repeat on or off. 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 | 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 | 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... | |
void | SetWindowName (Window_t id, char *name) |
Set window name. 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 | SetClassHints (Window_t id, char *className, char *resourceName) |
Set the windows class and resource name. 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 | 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 | 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... | |
Int_t | TextWidth (FontStruct_t font, const char *s, Int_t len) |
Return length of string in pixels. Size depends on font. More... | |
void | GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent) |
Return some font properties. More... | |
void | GetGCValues (GContext_t gc, GCValues_t &gval) |
Get current values from graphics context gc. More... | |
FontStruct_t | GetFontStruct (FontH_t fh) |
Retrieve associated font structure once we have the font handle. More... | |
void | FreeFontStruct (FontStruct_t fs) |
Free font structure returned by GetFontStruct(). More... | |
void | ClearWindow (Window_t id) |
Clear window. More... | |
Int_t | KeysymToKeycode (UInt_t keysym) |
Convert a keysym to the appropriate keycode. 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... | |
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 | SelectInput (Window_t id, UInt_t evmask) |
Defines which input events the window is interested in. More... | |
Window_t | GetInputFocus () |
Returns the window id of the window having the input focus. More... | |
void | SetInputFocus (Window_t id) |
Set keyboard input focus to window id. More... | |
Window_t | GetPrimarySelectionOwner () |
Returns the window id of the current owner of the primary selection. More... | |
void | SetPrimarySelectionOwner (Window_t id) |
Makes the window id the current owner of the primary selection. 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 | 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 | GetPasteBuffer (Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del) |
Get contents of paste buffer atom into string. 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 | 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 | FillPolygon (Window_t id, GContext_t gc, Point_t *points, Int_t npnt) |
FillPolygon fills the region closed by the specified path. 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 | SetForeground (GContext_t gc, ULong_t foreground) |
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set). 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 | Update (Int_t mode=0) |
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer. More... | |
Region_t | CreateRegion () |
Create a new empty region. More... | |
void | DestroyRegion (Region_t reg) |
Destroy region. More... | |
void | UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest) |
Union of rectangle with a 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 | UnionRegion (Region_t rega, Region_t regb, Region_t result) |
Compute the union of rega and regb and return result region. More... | |
void | IntersectRegion (Region_t rega, Region_t regb, Region_t result) |
Compute the intersection of rega and regb and return result region. More... | |
void | SubtractRegion (Region_t rega, Region_t regb, Region_t result) |
Subtract rega from regb. More... | |
void | XorRegion (Region_t rega, Region_t regb, Region_t result) |
Calculate the difference between the union and intersection of two regions. More... | |
Bool_t | EmptyRegion (Region_t reg) |
Return true if the region is empty. 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... | |
Bool_t | EqualRegion (Region_t rega, Region_t regb) |
Returns true if two regions are equal. More... | |
void | GetRegionBox (Region_t reg, Rectangle_t *) |
Return smallest enclosing rectangle. More... | |
char ** | ListFonts (const char *fontname, Int_t max, Int_t &count) |
Return list of font names matching fontname regexp, like "-*-times-*". More... | |
void | FreeFontNames (char **fontlist) |
Free list of font names. More... | |
Drawable_t | CreateImage (UInt_t width, UInt_t height) |
Create a client-side XImage. Returns handle to XImage. More... | |
void | GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height) |
Get size of XImage img. 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 | 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 | DeleteImage (Drawable_t img) |
Destroy XImage img. 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... | |
UInt_t | ScreenWidthMM () const |
Returns the width of the screen in millimeters. 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... | |
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 | ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t) |
Changes the specified dynamic parameters if the pointer is actively grabbed by the client. 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... | |
Bool_t | SetSelectionOwner (Window_t, Atom_t &) |
Changes the owner and last-change time for the specified selection. 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 | SetDNDAware (Window_t, Atom_t *) |
Add XdndAware property and the list of drag and drop types to the Window win. 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... | |
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... | |
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... | |
Public Member Functions inherited from TVirtualX | |
TVirtualX () | |
TVirtualX (const char *name, const char *title) | |
virtual | ~TVirtualX () |
virtual void | CreateOpenGLContext (Int_t wid=0) |
Creates OpenGL context for window "wid". More... | |
virtual void | DeleteOpenGLContext (Int_t wid=0) |
Deletes OpenGL context for window "wid". 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 | 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 Handle_t | CreateOpenGLContext (Window_t windowID, Handle_t sharedContext) |
Creates OpenGL context for window "windowID". More... | |
virtual Bool_t | MakeOpenGLContextCurrent (Handle_t ctx, Window_t windowID) |
Makes context ctx current OpenGL context. More... | |
virtual Handle_t | GetCurrentOpenGLContext () |
Asks OpenGL subsystem about the current OpenGL context. More... | |
virtual void | FlushOpenGLBuffer (Handle_t ctx) |
Flushes OpenGL buffer. More... | |
virtual UInt_t | ExecCommand (TGWin32Command *code) |
Executes the command "code" coming from the other threads (Win32) 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 void | SelectPixmap (Int_t qpixid) |
Selects the pixmap "qpixid". 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 | DispatchClientMessage (UInt_t messageID) |
Force processing of event, sent by SendEvent before. More... | |
virtual FontStruct_t | GetGCFont (GContext_t gc) |
Return the font associated with the graphics context gc. More... | |
virtual void | BeginModalSessionFor (Window_t window) |
Start a modal session for a dialog window. More... | |
virtual Bool_t | IsCmdThread () const |
virtual void | MapGCFont (GContext_t, FontStruct_t) |
Map the XftFont with the Graphics Context using it. More... | |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TString &name, const TString &title) | |
TNamed (const TNamed &named) | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. More... | |
virtual | ~TNamed () |
virtual void | Clear (Option_t *option="") |
Set name and title to empty strings (""). More... | |
virtual TObject * | Clone (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 | SetName (const char *name) |
Change (i.e. More... | |
virtual void | SetNameTitle (const char *name, const char *title) |
Change (i.e. set) all the TNamed parameters (name and title). More... | |
virtual void | SetTitle (const char *title="") |
Change (i.e. set) the title of the TNamed. More... | |
virtual void | ls (Option_t *option="") const |
List TNamed name and title. More... | |
virtual void | Print (Option_t *option="") const |
Print TNamed name and title. More... | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual | ~TObject () |
TObject destructor. 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... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. 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 TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current pad. More... | |
virtual void | Dump () const |
Dump contents of object on stdout. 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 TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual Option_t * | GetOption () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. 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... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
Bool_t | IsOnHeap () const |
Bool_t | IsZombie () const |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. 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 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... | |
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... | |
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 | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. 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... | |
void * | operator new (size_t sz) |
void * | operator new[] (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz, void *vp) |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
void | ResetBit (UInt_t f) |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
void | InvertBit (UInt_t f) |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. 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... | |
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... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. 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 |
virtual Style_t | GetLineStyle () const |
virtual Width_t | GetLineWidth () const |
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 | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. More... | |
ClassDef (TAttLine, 2) | |
Public Member Functions inherited from TAttFill | |
TAttFill () | |
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 |
virtual Style_t | GetFillStyle () const |
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 | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
Set a transparent fill color. More... | |
Public Member Functions inherited from TAttText | |
TAttText () | |
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 |
virtual Float_t | GetTextAngle () const |
virtual Color_t | GetTextColor () const |
virtual Font_t | GetTextFont () const |
virtual Float_t | GetTextSize () const |
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 | SetTextAttributes () |
Invoke the DialogCanvas Text attributes. More... | |
virtual void | SetTextAngle (Float_t tangle=0) |
virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
Set a transparent marker color. More... | |
virtual void | SetTextSizePixels (Int_t npixels) |
Set the text size in pixels. More... | |
Public Member Functions inherited from TAttMarker | |
TAttMarker () | |
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 |
virtual Style_t | GetMarkerStyle () const |
virtual Size_t | GetMarkerSize () const |
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 | SetMarkerColorAlpha (Color_t mcolor, Float_t malpha) |
Set a transparent marker color. More... | |
ClassDef (TAttMarker, 2) | |
Protected Member Functions | |
Bool_t | AllocColor (Colormap cmap, RXColor *color) |
Allocate color in colormap. More... | |
void | QueryColors (Colormap cmap, RXColor *colors, Int_t ncolors) |
Returns the current RGB value for the pixel in the XColor structure. More... | |
void * | GetGC (Int_t which) const |
Return desired Graphics Context ("which" maps directly on gGCList[]). More... | |
XColor_t & | GetColor (Int_t cid) |
Return reference to internal color structure associated to color index cid. More... | |
Protected Member Functions inherited from TObject | |
void | MakeZombie () |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
Protected Attributes | |
void * | fDisplay |
Pointer to display. More... | |
RVisual * | fVisual |
Pointer to visual used by all windows. More... | |
Drawable | fRootWin |
Root window used as parent of all windows. More... | |
Drawable | fVisRootWin |
Root window with fVisual to be used to create GC's and XImages. More... | |
Colormap | fColormap |
Default colormap, 0 if b/w. More... | |
ULong_t | fBlackPixel |
Value of black pixel in colormap. More... | |
ULong_t | fWhitePixel |
Value of white pixel in colormap. More... | |
Int_t | fScreenNumber |
Screen number. More... | |
Int_t | fTextAlignH |
Text Alignment Horizontal. More... | |
Int_t | fTextAlignV |
Text Alignment Vertical. More... | |
Int_t | fTextAlign |
Text alignment (set in SetTextAlign) More... | |
Float_t | fCharacterUpX |
Character Up vector along X. More... | |
Float_t | fCharacterUpY |
Character Up vector along Y. More... | |
Float_t | fTextMagnitude |
Text Magnitude. More... | |
Int_t | fDepth |
Number of color planes. More... | |
Int_t | fRedDiv |
Red value divider, -1 if no TrueColor visual. More... | |
Int_t | fGreenDiv |
Green value divider. More... | |
Int_t | fBlueDiv |
Blue value divider. More... | |
Int_t | fRedShift |
Bits to left shift red, -1 if no TrueColor visual. More... | |
Int_t | fGreenShift |
Bits to left shift green. More... | |
Int_t | fBlueShift |
Bits to left shift blue. More... | |
Bool_t | fHasTTFonts |
True when TrueType fonts are used. More... | |
Bool_t | fHasXft |
True when XftFonts are used. 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 |
Style_t | fLineStyle |
Width_t | fLineWidth |
Protected Attributes inherited from TAttFill | |
Color_t | fFillColor |
Style_t | fFillStyle |
Protected Attributes inherited from TAttText | |
Float_t | fTextAngle |
Float_t | fTextSize |
Short_t | fTextAlign |
Color_t | fTextColor |
Font_t | fTextFont |
Protected Attributes inherited from TAttMarker | |
Color_t | fMarkerColor |
Style_t | fMarkerStyle |
Size_t | fMarkerSize |
Private Member Functions | |
void | CloseWindow1 () |
Delete current window. More... | |
void | ClearPixmap (Drawable *pix) |
Clear the pixmap pix. 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... | |
void | FindUsableVisual (RXVisualInfo *vlist, Int_t nitems) |
Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel. 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... | |
void | CollectImageColors (ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors, Int_t &maxcolors) |
Collect in orgcolors all different original image colors. 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... | |
Int_t | FindColor (ULong_t pixel, ULong_t *orgcolors, Int_t ncolors) |
Returns index in orgcolors (and fNewColors) for pixel. 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 | 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 | MapSetWindowAttributes (SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr) |
Map a SetWindowAttributes_t to a XSetWindowAttributes structure. More... | |
void | MapCursor (ECursor cursor, Int_t &xcursor) |
void | MapColorStruct (ColorStruct_t *color, RXColor &xcolor) |
Map a ColorStruct_t to a XColor structure. More... | |
void | MapPictureAttributes (PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE) |
Map a PictureAttributes_t to a XpmAttributes structure. More... | |
void | MapModifierState (UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE) |
Map modifier key state to or from X. More... | |
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 | MapKeySym (UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE) |
Map to and from X key symbols. More... | |
Private Attributes | |
Int_t | fMaxNumberOfWindows |
Maximum number of windows. More... | |
XWindow_t * | fWindows |
List of windows. More... | |
TExMap * | fColors |
Hash list of colors. More... | |
Cursor | fCursors [kNumCursors] |
List of cursors. More... | |
void * | fXEvent |
Current native (X11) event. More... | |
Additional Inherited Members | |
Public Types inherited from TVirtualX | |
enum | EDrawMode { kCopy = 1, kXor, kInvert } |
enum | EBoxMode { kHollow, kFilled } |
enum | ETextMode { kClear, kOpaque } |
enum | ETextSetMode { kCheck, kLoad } |
Public Types inherited from TObject | |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
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 void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
#include <TGX11.h>
TGX11::TGX11 | ( | ) |
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.
Definition at line 361 of file TGX11.cxx.
Referenced by AllocColor(), TGX11TTF::DrawImage(), MakeOpaqueColors(), and SetRGB().
|
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 1365 of file GX11Gui.cxx.
Sound bell. Percent is loudness from -100% .. 100%.
Reimplemented from TVirtualX.
Definition at line 1689 of file GX11Gui.cxx.
Changes the specified dynamic parameters if the pointer is actively grabbed by the client.
Reimplemented from TVirtualX.
Definition at line 2729 of file GX11Gui.cxx.
|
virtual |
Change entries in an existing graphics context, gc, by values from gval.
Reimplemented from TVirtualX.
Definition at line 1007 of file GX11Gui.cxx.
|
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 2762 of file GX11Gui.cxx.
|
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 1733 of file GX11Gui.cxx.
|
virtual |
Change window attributes.
Reimplemented from TVirtualX.
Definition at line 1712 of file GX11Gui.cxx.
|
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 1767 of file GX11Gui.cxx.
Clear a window area to the background color.
Reimplemented from TVirtualX.
Definition at line 1755 of file GX11Gui.cxx.
|
virtual |
|
virtual |
Close connection to display server.
Reimplemented from TVirtualX.
Definition at line 854 of file GX11Gui.cxx.
|
virtual |
|
virtual |
|
private |
Delete current window.
Definition at line 456 of file TGX11.cxx.
Referenced by ClosePixmap(), and CloseWindow().
|
private |
Collect in orgcolors all different original image colors.
Definition at line 2696 of file TGX11.cxx.
Referenced by ImgPickPalette(), and SetOpacity().
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 2278 of file GX11Gui.cxx.
|
virtual |
Requests that the specified selection be converted to the specified target type.
Reimplemented from TVirtualX.
Definition at line 2743 of file GX11Gui.cxx.
|
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 1699 of file GX11Gui.cxx.
|
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 1026 of file GX11Gui.cxx.
|
virtual |
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.
Reimplemented from TVirtualX.
Definition at line 1096 of file GX11Gui.cxx.
Create cursor handle (just return cursor from cursor pool fCursors).
Reimplemented from TVirtualX.
Definition at line 1057 of file GX11Gui.cxx.
|
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 985 of file GX11Gui.cxx.
|
virtual |
Create a client-side XImage. Returns handle to XImage.
Reimplemented from TVirtualX.
Definition at line 2624 of file GX11Gui.cxx.
|
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 1250 of file GX11Gui.cxx.
|
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 1197 of file GX11Gui.cxx.
|
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 1076 of file GX11Gui.cxx.
Referenced by ReadGIF().
|
virtual |
Create a pixmap from bitmap data.
Ones will get foreground color and zeroes background color.
Reimplemented from TVirtualX.
Definition at line 1085 of file GX11Gui.cxx.
|
virtual |
Create a new empty region.
Reimplemented from TVirtualX.
Definition at line 2502 of file GX11Gui.cxx.
|
virtual |
Return handle to newly created X window.
Reimplemented from TVirtualX.
Definition at line 382 of file GX11Gui.cxx.
|
virtual |
Explicitly delete font structure obtained with LoadQueryFont().
Reimplemented from TVirtualX.
Definition at line 976 of file GX11Gui.cxx.
|
virtual |
Explicitly delete a graphics context.
Reimplemented from TVirtualX.
Definition at line 1046 of file GX11Gui.cxx.
|
virtual |
Delete picture data created by the function ReadPictureDataFromFile.
Reimplemented from TVirtualX.
Definition at line 1306 of file GX11Gui.cxx.
Explicitly delete pixmap resource.
Reimplemented from TVirtualX.
Definition at line 1106 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 2705 of file GX11Gui.cxx.
Destroy subwindows of this window.
Reimplemented from TVirtualX.
Definition at line 279 of file GX11Gui.cxx.
|
virtual |
|
virtual |
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.
|
virtual |
|
virtual |
Draw a rectangle outline.
Reimplemented from TVirtualX.
Definition at line 2186 of file GX11Gui.cxx.
|
virtual |
Draws multiple line segments. Each line is specified by a pair of points.
Reimplemented from TVirtualX.
Definition at line 2196 of file GX11Gui.cxx.
|
virtual |
Draw a string using a specific graphics context in position (x,y).
Reimplemented from TVirtualX.
Definition at line 2069 of file GX11Gui.cxx.
|
virtual |
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.
Definition at line 746 of file TGX11.cxx.
Referenced by TGX11TTF::DrawText().
|
inlinevirtual |
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 2572 of file GX11Gui.cxx.
Returns true if two regions are equal.
Reimplemented from TVirtualX.
Definition at line 2588 of file GX11Gui.cxx.
|
virtual |
Returns number of pending events.
Reimplemented from TVirtualX.
Definition at line 1414 of file GX11Gui.cxx.
|
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 2432 of file GX11Gui.cxx.
|
virtual |
Draw a filled rectangle. Filling is done according to the gc.
Reimplemented from TVirtualX.
Definition at line 2176 of file GX11Gui.cxx.
|
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 775 of file TGX11.cxx.
Referenced by OpenDisplay().
Returns index in orgcolors (and fNewColors) for pixel.
Definition at line 2766 of file TGX11.cxx.
Referenced by ImgPickPalette(), and SetOpacity().
|
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 2813 of file GX11Gui.cxx.
Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel.
Definition at line 843 of file TGX11.cxx.
Referenced by FindBestVisual().
|
virtual |
Free color cell with specified pixel value.
Reimplemented from TVirtualX.
Definition at line 1405 of file GX11Gui.cxx.
|
virtual |
|
virtual |
Free font structure returned by GetFontStruct().
Reimplemented from TVirtualX.
Definition at line 2134 of file GX11Gui.cxx.
Return reference to internal color structure associated to color index cid.
Definition at line 904 of file TGX11.cxx.
Referenced by ClearWindow(), DrawCellArray(), GetPixel(), GetRGB(), InitWindow(), OpenDisplay(), RequestLocator(), SetColor(), SetRGB(), and SetTextColor().
|
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.
|
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 885 of file GX11Gui.cxx.
|
virtual |
Return current window pointer. Protected method used by TGX11TTF.
Reimplemented from TVirtualX.
Definition at line 917 of file TGX11.cxx.
Referenced by TGX11TTF::GetBackground(), TGX11TTF::IsVisible(), and TGX11TTF::RenderString().
|
virtual |
Return handle to the default root window created when calling XOpenDisplay().
Reimplemented from TVirtualX.
Definition at line 926 of file GX11Gui.cxx.
|
virtual |
Returns depth of screen (number of bit planes).
Equivalent to GetPlanes().
Reimplemented from TVirtualX.
Definition at line 904 of file GX11Gui.cxx.
|
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 865 of file GX11Gui.cxx.
|
virtual |
Return handle to font described by font structure.
Reimplemented from TVirtualX.
Definition at line 964 of file GX11Gui.cxx.
|
virtual |
Return some font properties.
Reimplemented from TVirtualX.
Definition at line 2088 of file GX11Gui.cxx.
|
virtual |
Retrieve associated font structure once we have the font handle.
Free returned FontStruct_t using FreeFontStruct().
Reimplemented from TVirtualX.
Definition at line 2122 of file GX11Gui.cxx.
Return desired Graphics Context ("which" maps directly on gGCList[]).
Protected method used by TGX11TTF.
Definition at line 926 of file TGX11.cxx.
Referenced by TGX11TTF::RenderString().
|
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 2101 of file GX11Gui.cxx.
|
virtual |
|
virtual |
Returns the window id of the window having the input focus.
Reimplemented from TVirtualX.
Definition at line 2223 of file GX11Gui.cxx.
|
inlinevirtual |
Return the parent of the window.
Reimplemented from TVirtualX.
Definition at line 934 of file GX11Gui.cxx.
|
virtual |
Get contents of paste buffer atom into string.
If del is true delete the paste buffer afterwards.
Reimplemented from TVirtualX.
Definition at line 2354 of file GX11Gui.cxx.
Return pixel value associated to specified ROOT color number.
Reimplemented from TVirtualX.
Definition at line 999 of file TGX11.cxx.
Referenced by WriteGIF().
|
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 2251 of file GX11Gui.cxx.
|
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 2716 of file GX11Gui.cxx.
|
virtual |
Return smallest enclosing rectangle.
Reimplemented from TVirtualX.
Definition at line 2596 of file GX11Gui.cxx.
|
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 895 of file GX11Gui.cxx.
|
inlinevirtual |
|
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 875 of file GX11Gui.cxx.
|
virtual |
Get window attributes and return filled in attributes structure.
Reimplemented from TVirtualX.
Definition at line 775 of file GX11Gui.cxx.
Referenced by FindRWindow().
Return geometry of window (should be called GetGeometry but signature already used).
Reimplemented from TVirtualX.
Definition at line 2414 of file GX11Gui.cxx.
Referenced by CreatePictureFromFile().
|
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 1857 of file GX11Gui.cxx.
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 1836 of file GX11Gui.cxx.
|
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 1883 of file GX11Gui.cxx.
|
inlinevirtual |
|
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 3078 of file TGX11.cxx.
Referenced by WriteGIF().
Initialize X11 system. Returns kFALSE in case of failure.
Reimplemented from TVirtualX.
Reimplemented in TGX11TTF.
Definition at line 337 of file TGX11.cxx.
Referenced by TGX11TTF::Init(), and OpenDisplay().
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 914 of file GX11Gui.cxx.
Referenced by FindRWindow(), IsDNDAware(), and SetDNDAware().
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 2547 of file GX11Gui.cxx.
Checks if Window win is DND aware, and knows any of the DND formats passed in argument.
Reimplemented from TVirtualX.
Definition at line 2864 of file GX11Gui.cxx.
Referenced by FindRWindow().
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 2165 of file GX11Gui.cxx.
Return list of font names matching fontname regexp, like "-*-times-*".
Reimplemented from TVirtualX.
Definition at line 2604 of file GX11Gui.cxx.
|
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 955 of file GX11Gui.cxx.
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 2292 of file GX11Gui.cxx.
Lower window so it lays below all its siblings.
Reimplemented from TVirtualX.
Definition at line 299 of file GX11Gui.cxx.
Get RGB values for orgcolors, add percent neutral to the RGB and allocate fNewColors.
Definition at line 2721 of file TGX11.cxx.
Referenced by SetOpacity().
|
private |
Map a ColorStruct_t to a XColor structure.
Definition at line 1329 of file GX11Gui.cxx.
Referenced by AllocColor().
Map Event_t structure to XEvent structure.
If tox is false map the other way.
Definition at line 1497 of file GX11Gui.cxx.
Referenced by CheckEvent(), LookupString(), NextEvent(), and SendEvent().
Map event mask to or from X.
Definition at line 414 of file GX11Gui.cxx.
Referenced by ChangeActivePointerGrab(), GrabButton(), GrabPointer(), MapSetWindowAttributes(), and SelectInput().
|
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 568 of file GX11Gui.cxx.
Referenced by ChangeGC(), CopyGC(), CreateGC(), and GetGCValues().
Map to and from X key symbols.
Keysym are the values returned by XLookUpString.
Definition at line 2314 of file GX11Gui.cxx.
Referenced by KeysymToKeycode(), and LookupString().
Map modifier key state to or from X.
Definition at line 1436 of file GX11Gui.cxx.
Referenced by GrabButton(), GrabKey(), MapEvent(), and QueryPointer().
|
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 1115 of file GX11Gui.cxx.
Referenced by CreatePictureFromData(), and CreatePictureFromFile().
Map window on screen and put on top of all windows.
Reimplemented from TVirtualX.
Definition at line 249 of file GX11Gui.cxx.
|
private |
Map a SetWindowAttributes_t to a XSetWindowAttributes structure.
Definition at line 479 of file GX11Gui.cxx.
Referenced by ChangeWindowAttributes(), and CreateWindow().
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 1425 of file GX11Gui.cxx.
|
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 821 of file GX11Gui.cxx.
|
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 1345 of file GX11Gui.cxx.
Returns true if the point x,y is in the region.
Reimplemented from TVirtualX.
Definition at line 2580 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 2528 of file GX11Gui.cxx.
|
virtual |
Put (x,y,w,h) part of image img in window win at position dx,dy.
Reimplemented from TVirtualX.
Definition at line 2664 of file GX11Gui.cxx.
|
virtual |
Set pixel at specified location in XImage img.
Reimplemented from TVirtualX.
Definition at line 2656 of file GX11Gui.cxx.
|
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 1385 of file GX11Gui.cxx.
Returns the current RGB value for the pixel in the XColor structure.
Definition at line 378 of file TGX11.cxx.
Referenced by TGX11TTF::DrawImage(), ImgPickPalette(), and MakeOpaqueColors().
|
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 2449 of file GX11Gui.cxx.
Put window on top of window stack.
Reimplemented from TVirtualX.
Definition at line 289 of file GX11Gui.cxx.
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 3262 of file TGX11.cxx.
Referenced by CreatePictureFromFile().
|
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 1292 of file GX11Gui.cxx.
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 352 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.
|
virtual |
Returns the width of the screen in millimeters.
Reimplemented from TVirtualX.
Definition at line 2695 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 2209 of file GX11Gui.cxx.
Select window to which subsequent output is directed.
Reimplemented from TVirtualX.
Definition at line 1953 of file TGX11.cxx.
Referenced by RemoveWindow().
Send event ev to window id.
Reimplemented from TVirtualX.
Definition at line 1798 of file GX11Gui.cxx.
Set the windows class and resource name.
Reimplemented from TVirtualX.
Definition at line 1951 of file GX11Gui.cxx.
|
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 2481 of file GX11Gui.cxx.
Set the foreground color in GC.
Definition at line 2038 of file TGX11.cxx.
Referenced by ClearPixmap(), ClearWindow(), OpenPixmap(), PutImage(), RescaleWindow(), ResizePixmap(), ResizeWindow(), SetDoubleBufferON(), SetFillColor(), SetLineColor(), SetMarkerColor(), and SetTextColor().
Set the specified cursor.
Reimplemented from TVirtualX.
Definition at line 1065 of file GX11Gui.cxx.
|
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 1321 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 2775 of file GX11Gui.cxx.
|
virtual |
Turn double buffer mode off.
Reimplemented from TVirtualX.
Definition at line 2119 of file TGX11.cxx.
Referenced by SetDoubleBuffer().
|
virtual |
Turn double buffer mode on.
Reimplemented from TVirtualX.
Definition at line 2129 of file TGX11.cxx.
Referenced by SetDoubleBuffer().
|
virtual |
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).
Reimplemented from TVirtualX.
Definition at line 2471 of file GX11Gui.cxx.
Set pixmap the WM can use when the window is iconized.
Reimplemented from TVirtualX.
Definition at line 1936 of file GX11Gui.cxx.
Set keyboard input focus to window id.
Reimplemented from TVirtualX.
Definition at line 2235 of file GX11Gui.cxx.
Turn key auto repeat on or off.
Reimplemented from TVirtualX.
Definition at line 1822 of file GX11Gui.cxx.
Set line type.
[in] | n | : length of dash list |
[in] | dash(n) | : dash segment lengths |
Reimplemented from TVirtualX.
Definition at line 2292 of file TGX11.cxx.
Referenced by SetLineStyle().
Set marker style.
Reimplemented from TVirtualX.
Definition at line 2429 of file TGX11.cxx.
Referenced by SetMarkerSize().
Set marker type.
[in] | type | : marker type |
[in] | n | : length of marker description |
[in] | xy | : list of points describing marker shape |
Definition at line 2414 of file TGX11.cxx.
Referenced by SetMarkerStyle().
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
Reimplemented from TVirtualX.
Definition at line 1965 of file GX11Gui.cxx.
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.
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 2260 of file GX11Gui.cxx.
Set color intensities for given color index.
[in] | cindex | : color index |
[in] | r,g,b | : red, green, blue intensities between 0.0 and 1.0 |
Reimplemented from TVirtualX.
Definition at line 2782 of file TGX11.cxx.
Referenced by GetPixel(), ReadGIF(), and SetColor().
Changes the owner and last-change time for the specified selection.
Reimplemented from TVirtualX.
Definition at line 2752 of file GX11Gui.cxx.
|
virtual |
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.
Definition at line 2901 of file TGX11.cxx.
Referenced by TGX11TTF::SetTextFont().
Set current text size.
Reimplemented from TVirtualX.
Reimplemented in TGX11TTF.
Definition at line 2950 of file TGX11.cxx.
Referenced by TGX11TTF::SetTextSize().
Add the list of drag and drop types to the Window win.
Reimplemented from TVirtualX.
Definition at line 2796 of file GX11Gui.cxx.
Set the window background color.
Reimplemented from TVirtualX.
Definition at line 362 of file GX11Gui.cxx.
Set pixmap as window background.
Reimplemented from TVirtualX.
Definition at line 372 of file GX11Gui.cxx.
Tell the window manager the desired window position.
Reimplemented from TVirtualX.
Definition at line 1983 of file GX11Gui.cxx.
Tell the window manager the desired window size.
Reimplemented from TVirtualX.
Definition at line 1999 of file GX11Gui.cxx.
|
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 2016 of file GX11Gui.cxx.
|
virtual |
Set the initial state of the window. Either kNormalState or kIconicState.
Reimplemented from TVirtualX.
Definition at line 2038 of file GX11Gui.cxx.
Tell window manager that window is a transient window of main.
Reimplemented from TVirtualX.
Definition at line 2059 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 2686 of file GX11Gui.cxx.
|
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:
Reimplemented from TVirtualX.
|
virtual |
Return length of string in pixels. Size depends on font.
Reimplemented from TVirtualX.
Definition at line 2080 of file GX11Gui.cxx.
|
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 2398 of file GX11Gui.cxx.
|
virtual |
Union of rectangle with a region.
Reimplemented from TVirtualX.
Definition at line 2518 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 2538 of file GX11Gui.cxx.
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 2491 of file GX11Gui.cxx.
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.
Tell WM to send message when window is closed via WM.
Reimplemented from TVirtualX.
Definition at line 1812 of file GX11Gui.cxx.
|
virtual |
Calculate the difference between the union and intersection of two regions.
Reimplemented from TVirtualX.
Definition at line 2564 of file GX11Gui.cxx.
|
protected |
Value of black pixel in colormap.
Definition at line 135 of file TGX11.h.
Referenced by CreateWindow(), FindBestVisual(), FindUsableVisual(), OpenDisplay(), and TGX11().
|
protected |
Blue value divider.
Definition at line 147 of file TGX11.h.
Referenced by AllocColor(), OpenDisplay(), and TGX11().
|
protected |
Bits to left shift blue.
Definition at line 150 of file TGX11.h.
Referenced by AllocColor(), OpenDisplay(), QueryColors(), and TGX11().
|
protected |
Character Up vector along X.
Definition at line 141 of file TGX11.h.
Referenced by GetCharacterUp(), SetCharacterUp(), and TGX11().
|
protected |
Character Up vector along Y.
Definition at line 142 of file TGX11.h.
Referenced by GetCharacterUp(), SetCharacterUp(), and TGX11().
|
protected |
Default colormap, 0 if b/w.
Definition at line 134 of file TGX11.h.
Referenced by CloseWindow1(), CreateWindow(), TGX11TTF::DrawImage(), FindBestVisual(), FindUsableVisual(), GetColormap(), GetWindowAttributes(), ImgPickPalette(), InitWindow(), MakeOpaqueColors(), RemoveWindow(), SetColor(), SetOpacity(), SetRGB(), and TGX11().
|
private |
Hash list of colors.
Definition at line 90 of file TGX11.h.
Referenced by GetColor(), TGX11(), and ~TGX11().
|
private |
List of cursors.
Definition at line 91 of file TGX11.h.
Referenced by ChangeActivePointerGrab(), CreateCursor(), OpenDisplay(), SetCursor(), and TGX11().
|
protected |
Number of color planes.
Definition at line 144 of file TGX11.h.
Referenced by CreateImage(), CreatePictureFromData(), CreatePictureFromFile(), CreatePixmap(), CreateWindow(), FindBestVisual(), FindUsableVisual(), GetDepth(), GetPlanes(), TGX11TTF::Init(), InitWindow(), OpenPixmap(), TGX11TTF::RenderString(), RescaleWindow(), ResizePixmap(), ResizeWindow(), SetDoubleBufferON(), SetOpacity(), and TGX11().
|
protected |
Pointer to display.
Definition at line 130 of file TGX11.h.
Referenced by AllocColor(), Bell(), ChangeActivePointerGrab(), ChangeGC(), ChangeProperties(), ChangeProperty(), ChangeWindowAttributes(), CheckEvent(), ClearArea(), ClearPixmap(), ClearWindow(), CloseDisplay(), CloseWindow1(), ConvertPrimarySelection(), ConvertSelection(), CopyArea(), CopyGC(), CopyPixmap(), CopyWindowtoPixmap(), CreateBitmap(), CreateGC(), CreateImage(), CreatePictureFromData(), CreatePictureFromFile(), CreatePixmap(), CreateWindow(), DeleteFont(), DeleteGC(), DeletePixmap(), DeleteProperty(), DestroySubwindows(), DestroyWindow(), DrawBox(), DrawCellArray(), DrawFillArea(), DrawLine(), DrawPolyLine(), DrawPolyMarker(), DrawRectangle(), DrawSegments(), DrawString(), DrawText(), EventsPending(), FillPolygon(), FillRectangle(), FindBestVisual(), FindRWindow(), FindUsableVisual(), FreeColor(), FreeFontStruct(), TGX11TTF::GetBackground(), GetDisplay(), GetFontStruct(), GetGCValues(), GetGeometry(), GetInputFocus(), GetParent(), GetPasteBuffer(), GetPrimarySelectionOwner(), GetProperty(), GetTextExtent(), GetWindowAttributes(), GetWindowSize(), GrabButton(), GrabKey(), GrabPointer(), IconifyWindow(), InitWindow(), InternAtom(), IsDNDAware(), KeysymToKeycode(), ListFonts(), LoadQueryFont(), LowerWindow(), MapEvent(), MapRaised(), MapSubwindows(), MapWindow(), MoveResizeWindow(), MoveWindow(), NextEvent(), OpenDisplay(), OpenPixmap(), ParseColor(), PutImage(), QueryColor(), QueryColors(), QueryPointer(), RaiseWindow(), RemovePixmap(), RemoveWindow(), TGX11TTF::RenderString(), ReparentWindow(), RequestLocator(), RequestString(), RescaleWindow(), ResizePixmap(), ResizeWindow(), ScreenWidthMM(), SelectInput(), SelectWindow(), SendEvent(), SetClassHints(), SetClipOFF(), SetClipRectangles(), SetClipRegion(), SetColor(), SetCursor(), SetDashes(), SetDNDAware(), SetDoubleBufferON(), SetDrawMode(), SetFillColor(), SetFillStyleIndex(), SetForeground(), SetIconName(), SetIconPixmap(), SetInput(), SetInputFocus(), SetKeyAutoRepeat(), SetLineType(), SetLineWidth(), SetMWMHints(), SetOpacity(), SetPrimarySelectionOwner(), SetRGB(), SetSelectionOwner(), SetTextColor(), SetTextFont(), SetTypeList(), SetWindowBackground(), SetWindowBackgroundPixmap(), SetWindowName(), SetWMPosition(), SetWMSize(), SetWMSizeHints(), SetWMState(), SetWMTransientHint(), ShapeCombineMask(), SupportsExtension(), Sync(), TGX11(), TranslateCoordinates(), UnmapWindow(), Update(), UpdateWindow(), Warp(), WMDeleteNotify(), WriteGIF(), and WritePixmap().
|
protected |
Green value divider.
Definition at line 146 of file TGX11.h.
Referenced by AllocColor(), OpenDisplay(), and TGX11().
|
protected |
Bits to left shift green.
Definition at line 149 of file TGX11.h.
Referenced by AllocColor(), OpenDisplay(), QueryColors(), and TGX11().
|
protected |
True when TrueType fonts are used.
Definition at line 151 of file TGX11.h.
Referenced by TGX11TTF::DrawText(), HasTTFonts(), TGX11TTF::SetTextFont(), TGX11TTF::SetTextSize(), and TGX11().
|
protected |
True when XftFonts are used.
Definition at line 152 of file TGX11.h.
Referenced by TGX11TTF::Init(), MapGCValues(), and TGX11().
|
private |
Maximum number of windows.
Definition at line 88 of file TGX11.h.
Referenced by AddPixmap(), AddWindow(), CloseWindow1(), InitWindow(), OpenPixmap(), RemoveWindow(), SelectWindow(), SetDoubleBuffer(), and TGX11().
|
protected |
Red value divider, -1 if no TrueColor visual.
Definition at line 145 of file TGX11.h.
Referenced by AllocColor(), CloseWindow1(), FreeColor(), OpenDisplay(), QueryColors(), RemoveWindow(), SetOpacity(), SetRGB(), and TGX11().
|
protected |
Bits to left shift red, -1 if no TrueColor visual.
Definition at line 148 of file TGX11.h.
Referenced by AllocColor(), OpenDisplay(), QueryColors(), and TGX11().
|
protected |
Root window used as parent of all windows.
Definition at line 132 of file TGX11.h.
Referenced by CreateBitmap(), CreateGC(), CreatePictureFromData(), CreatePictureFromFile(), CreatePixmap(), CreateWindow(), FindBestVisual(), GetDefaultRootWindow(), GetGeometry(), GetWindowAttributes(), OpenDisplay(), OpenPixmap(), RescaleWindow(), ResizePixmap(), ResizeWindow(), SetDoubleBufferON(), SetFillStyleIndex(), and TGX11().
|
protected |
Screen number.
Definition at line 137 of file TGX11.h.
Referenced by FindBestVisual(), FindUsableVisual(), GetGeometry(), GetScreen(), IconifyWindow(), OpenDisplay(), and TGX11().
|
protected |
Text alignment (set in SetTextAlign)
Definition at line 140 of file TGX11.h.
Referenced by TGX11TTF::Align(), DrawText(), SetTextAlign(), and TGX11().
|
protected |
Text Alignment Horizontal.
Definition at line 138 of file TGX11.h.
Referenced by SetTextAlign(), and TGX11().
|
protected |
Text Alignment Vertical.
Definition at line 139 of file TGX11.h.
Referenced by SetTextAlign(), and TGX11().
|
protected |
Text Magnitude.
Definition at line 143 of file TGX11.h.
Referenced by GetTextExtent(), GetTextMagnitude(), SetTextMagnitude(), and TGX11().
|
protected |
Root window with fVisual to be used to create GC's and XImages.
Definition at line 133 of file TGX11.h.
Referenced by CreateGC(), CreatePictureFromData(), CreatePictureFromFile(), CreateWindow(), FindBestVisual(), FindUsableVisual(), OpenDisplay(), and TGX11().
|
protected |
Pointer to visual used by all windows.
Definition at line 131 of file TGX11.h.
Referenced by CreateImage(), CreateWindow(), FindBestVisual(), FindUsableVisual(), GetVisual(), InitWindow(), OpenDisplay(), QueryColors(), TGX11TTF::RenderString(), and TGX11().
|
protected |
Value of white pixel in colormap.
Definition at line 136 of file TGX11.h.
Referenced by FindBestVisual(), FindUsableVisual(), OpenDisplay(), and TGX11().
|
private |
List of windows.
Definition at line 89 of file TGX11.h.
Referenced by AddPixmap(), AddWindow(), CloseWindow1(), CopyPixmap(), GetDoubleBuffer(), GetGeometry(), GetWindowID(), InitWindow(), MoveWindow(), OpenPixmap(), RemoveWindow(), RescaleWindow(), ResizePixmap(), ResizeWindow(), SelectWindow(), SetClipOFF(), SetClipRegion(), SetCursor(), SetDoubleBuffer(), TGX11(), WritePixmap(), and ~TGX11().
|
private |
Current native (X11) event.
Definition at line 92 of file TGX11.h.
Referenced by GetNativeEvent(), NextEvent(), TGX11(), and ~TGX11().