ROOT
6.06/09
Reference Guide
|
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
An instance of TVirtualX itself defines a batch interface to the graphics system.
Definition at line 70 of file TVirtualX.h.
Public Types | |
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) } |
Public Member Functions | |
TVirtualX () | |
TVirtualX (const char *name, const char *title) | |
virtual | ~TVirtualX () |
virtual Bool_t | Init (void *display=0) |
Initializes the X system. More... | |
virtual void | ClearWindow () |
Clears the entire area of the current window. More... | |
virtual void | ClosePixmap () |
Deletes current pixmap. More... | |
virtual void | CloseWindow () |
Deletes current window. More... | |
virtual void | CopyPixmap (Int_t wid, Int_t xpos, Int_t ypos) |
Copies the pixmap "wid" at the position [xpos,ypos] in the current window. More... | |
virtual 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 void | DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode) |
Draws a box between [x1,y1] and [x2,y2] according to the "mode". More... | |
virtual void | DrawCellArray (Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic) |
Draws a cell array. More... | |
virtual void | DrawFillArea (Int_t n, TPoint *xy) |
Fills area described by the polygon. More... | |
virtual void | DrawLine (Int_t x1, Int_t y1, Int_t x2, Int_t y2) |
Draws a line. More... | |
virtual void | DrawPolyLine (Int_t n, TPoint *xy) |
Draws a line through all points in the list. More... | |
virtual void | DrawPolyMarker (Int_t n, TPoint *xy) |
Draws "n" markers with the current attributes at position [x,y]. More... | |
virtual void | DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode) |
Draws a text string using current font. More... | |
virtual void | DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text, ETextMode mode) |
Draws a text string using current font. More... | |
virtual UInt_t | ExecCommand (TGWin32Command *code) |
Executes the command "code" coming from the other threads (Win32) More... | |
virtual void | GetCharacterUp (Float_t &chupx, Float_t &chupy) |
Returns character up vector. More... | |
EDrawMode | GetDrawMode () |
virtual Int_t | GetDoubleBuffer (Int_t wid) |
Queries the double buffer value for the window "wid". More... | |
virtual void | GetGeometry (Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) |
Returns position and size of window "wid". More... | |
virtual const char * | DisplayName (const char *=0) |
Returns hostname on which the display is opened. More... | |
virtual Handle_t | GetNativeEvent () const |
Returns the current native event handle. More... | |
virtual ULong_t | GetPixel (Color_t cindex) |
Returns pixel value associated to specified ROOT color number "cindex". More... | |
virtual void | GetPlanes (Int_t &nplanes) |
Returns the maximum number of planes. More... | |
virtual void | GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b) |
Returns RGB values for color "index". More... | |
virtual void | GetTextExtent (UInt_t &w, UInt_t &h, char *mess) |
Returns the size of the specified character string "mess". More... | |
virtual void | GetTextExtent (UInt_t &w, UInt_t &h, wchar_t *mess) |
Returns the size of the specified character string "mess". More... | |
virtual 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 Float_t | GetTextMagnitude () |
Returns the current font magnification factor. More... | |
virtual Window_t | GetWindowID (Int_t wid) |
Returns the X11 window identifier. More... | |
virtual Bool_t | HasTTFonts () const |
Returns True when TrueType fonts are used. More... | |
virtual Int_t | InitWindow (ULong_t window) |
Creates a new window and return window number. More... | |
virtual Int_t | AddWindow (ULong_t qwid, UInt_t w, UInt_t h) |
Registers a window created by Qt as a ROOT window. More... | |
virtual Int_t | AddPixmap (ULong_t pixid, UInt_t w, UInt_t h) |
Registers a pixmap created by TGLManager as a ROOT pixmap. More... | |
virtual void | RemoveWindow (ULong_t qwid) |
Removes the created by Qt window "qwid". More... | |
virtual void | MoveWindow (Int_t wid, Int_t x, Int_t y) |
Moves the window "wid" to the specified x and y coordinates. More... | |
virtual Int_t | OpenPixmap (UInt_t w, UInt_t h) |
Creates a pixmap of the width "w" and height "h" you specified. More... | |
virtual void | QueryPointer (Int_t &ix, Int_t &iy) |
Returns the pointer position. More... | |
virtual Pixmap_t | ReadGIF (Int_t x0, Int_t y0, const char *file, Window_t id=0) |
If id is NULL - loads the specified gif file at position [x0,y0] in the current window. More... | |
virtual Int_t | RequestLocator (Int_t mode, Int_t ctyp, Int_t &x, Int_t &y) |
Requests Locator position. More... | |
virtual Int_t | RequestString (Int_t x, Int_t y, char *text) |
Requests string: text is displayed and can be edited with Emacs-like keybinding. More... | |
virtual void | RescaleWindow (Int_t wid, UInt_t w, UInt_t h) |
Rescales the window "wid". More... | |
virtual Int_t | ResizePixmap (Int_t wid, UInt_t w, UInt_t h) |
Resizes the specified pixmap "wid". More... | |
virtual void | ResizeWindow (Int_t wid) |
Resizes the window "wid" if necessary. More... | |
virtual void | SelectWindow (Int_t wid) |
Selects the window "wid" to which subsequent output is directed. More... | |
virtual void | SelectPixmap (Int_t qpixid) |
Selects the pixmap "qpixid". More... | |
virtual void | SetCharacterUp (Float_t chupx, Float_t chupy) |
Sets character up vector. More... | |
virtual void | SetClipOFF (Int_t wid) |
Turns off the clipping for the window "wid". More... | |
virtual void | SetClipRegion (Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h) |
Sets clipping region for the window "wid". More... | |
virtual void | SetCursor (Int_t win, ECursor cursor) |
The cursor "cursor" will be used when the pointer is in the window "wid". More... | |
virtual void | SetDoubleBuffer (Int_t wid, Int_t mode) |
Sets the double buffer on/off on the window "wid". More... | |
virtual void | SetDoubleBufferOFF () |
Turns double buffer mode off. More... | |
virtual void | SetDoubleBufferON () |
Turns double buffer mode on. More... | |
virtual void | SetDrawMode (EDrawMode mode) |
Sets the drawing mode. More... | |
virtual void | SetFillColor (Color_t cindex) |
Sets color index "cindex" for fill areas. More... | |
virtual void | SetFillStyle (Style_t style) |
Sets fill area style. More... | |
virtual void | SetLineColor (Color_t cindex) |
Sets color index "cindex" for drawing lines. More... | |
virtual void | SetLineType (Int_t n, Int_t *dash) |
Sets the line type. More... | |
virtual void | SetLineStyle (Style_t linestyle) |
Sets the line style. More... | |
virtual void | SetLineWidth (Width_t width) |
Sets the line width. More... | |
virtual void | SetMarkerColor (Color_t cindex) |
Sets color index "cindex" for markers. More... | |
virtual void | SetMarkerSize (Float_t markersize) |
Sets marker size index. More... | |
virtual void | SetMarkerStyle (Style_t markerstyle) |
Sets marker style. More... | |
virtual void | SetOpacity (Int_t percent) |
Sets opacity of the current window. More... | |
virtual void | SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b) |
Sets color intensities the specified color index "cindex". More... | |
virtual void | SetTextAlign (Short_t talign=11) |
Sets the text alignment. More... | |
virtual void | SetTextColor (Color_t cindex) |
Sets the color index "cindex" for text. More... | |
virtual Int_t | SetTextFont (char *fontname, ETextSetMode mode) |
Sets text font to specified name "fontname".This function returns 0 if the specified font is found, 1 if it is not. More... | |
virtual void | SetTextFont (Font_t fontnumber) |
Sets the current text font number. More... | |
virtual void | SetTextMagnitude (Float_t mgn) |
Sets the current text magnification factor to "mgn". More... | |
virtual void | SetTextSize (Float_t textsize) |
Sets the current text size to "textsize". More... | |
virtual void | Sync (Int_t mode) |
Set synchronisation on or off. More... | |
virtual void | UpdateWindow (Int_t mode) |
Updates or synchronises client and server once (not permanent). More... | |
virtual void | Warp (Int_t ix, Int_t iy, Window_t id=0) |
Sets the pointer position. More... | |
virtual Int_t | WriteGIF (char *name) |
Writes the current window into GIF file. More... | |
virtual void | WritePixmap (Int_t wid, UInt_t w, UInt_t h, char *pxname) |
Writes the pixmap "wid" in the bitmap file "pxname". More... | |
virtual Window_t | GetCurrentWindow () const |
pointer to the current internal window used in canvas graphics More... | |
virtual Int_t | SupportsExtension (const char *ext) const |
Returns 1 if window system server supports extension given by the argument, returns 0 in case extension is not supported and returns -1 in case of error (like server not initialized). More... | |
virtual void | GetWindowAttributes (Window_t id, WindowAttributes_t &attr) |
The WindowAttributes_t structure is set to default. More... | |
virtual void | MapWindow (Window_t id) |
Maps the window "id" and all of its subwindows that have had map requests. More... | |
virtual void | MapSubwindows (Window_t id) |
Maps all subwindows for the specified window "id" in top-to-bottom stacking order. More... | |
virtual void | MapRaised (Window_t id) |
Maps the window "id" and all of its subwindows that have had map requests on the screen and put this window on the top of of the stack of all windows. More... | |
virtual void | UnmapWindow (Window_t id) |
Unmaps the specified window "id". More... | |
virtual void | DestroyWindow (Window_t id) |
Destroys the window "id" as well as all of its subwindows. More... | |
virtual void | DestroySubwindows (Window_t id) |
The DestroySubwindows function destroys all inferior windows of the specified window, in bottom-to-top stacking order. More... | |
virtual void | RaiseWindow (Window_t id) |
Raises the specified window to the top of the stack so that no sibling window obscures it. More... | |
virtual void | LowerWindow (Window_t id) |
Lowers the specified window "id" to the bottom of the stack so that it does not obscure any sibling windows. More... | |
virtual void | MoveWindow (Window_t id, Int_t x, Int_t y) |
Moves the specified window to the specified x and y coordinates. More... | |
virtual void | MoveResizeWindow (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) |
Changes the size and location of the specified window "id" without raising it. More... | |
virtual void | ResizeWindow (Window_t id, UInt_t w, UInt_t h) |
Changes the width and height of the specified window "id", not including its borders. More... | |
virtual void | IconifyWindow (Window_t id) |
Iconifies the window "id". 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 | ReparentWindow (Window_t id, Window_t pid, Int_t x, Int_t y) |
If the specified window is mapped, ReparentWindow automatically performs an UnmapWindow request on it, removes it from its current position in the hierarchy, and inserts it as the child of the specified parent. More... | |
virtual void | SetWindowBackground (Window_t id, ULong_t color) |
Sets the background of the window "id" to the specified color value "color". More... | |
virtual void | SetWindowBackgroundPixmap (Window_t id, Pixmap_t pxm) |
Sets the background pixmap of the window "id" to the specified pixmap "pxm". More... | |
virtual Window_t | CreateWindow (Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype) |
Creates an unmapped subwindow for a specified parent window and returns the created window. More... | |
virtual Int_t | OpenDisplay (const char *dpyName) |
Opens connection to display server (if such a thing exist on the current platform). More... | |
virtual void | CloseDisplay () |
Closes connection to display server and destroys all windows. More... | |
virtual Display_t | GetDisplay () const |
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More... | |
virtual Visual_t | GetVisual () const |
Returns handle to visual. More... | |
virtual Int_t | GetScreen () const |
Returns screen number. More... | |
virtual Int_t | GetDepth () const |
Returns depth of screen (number of bit planes). More... | |
virtual UInt_t | ScreenWidthMM () const |
Returns the width of the screen in millimeters. More... | |
virtual Colormap_t | GetColormap () const |
Returns handle to colormap. More... | |
virtual Atom_t | InternAtom (const char *atom_name, Bool_t only_if_exist) |
Returns the atom identifier associated with the specified "atom_name" string. More... | |
virtual Window_t | GetDefaultRootWindow () const |
Returns handle to the default root window created when calling XOpenDisplay(). More... | |
virtual Window_t | GetParent (Window_t id) const |
Returns the parent of the window "id". More... | |
virtual FontStruct_t | LoadQueryFont (const char *font_name) |
Provides the most common way for accessing a font: opens (loads) the specified font and returns a pointer to the appropriate FontStruct_t structure. More... | |
virtual FontH_t | GetFontHandle (FontStruct_t fs) |
Returns the font handle of the specified font structure "fs". More... | |
virtual void | DeleteFont (FontStruct_t fs) |
Explicitly deletes the font structure "fs" obtained via LoadQueryFont(). More... | |
virtual GContext_t | CreateGC (Drawable_t id, GCValues_t *gval) |
Creates a graphics context using the provided GCValues_t *gval structure. More... | |
virtual void | ChangeGC (GContext_t gc, GCValues_t *gval) |
Changes the components specified by the mask in gval for the specified GC. More... | |
virtual void | CopyGC (GContext_t org, GContext_t dest, Mask_t mask) |
Copies the specified components from the source GC "org" to the destination GC "dest". More... | |
virtual void | DeleteGC (GContext_t gc) |
Deletes the specified GC "gc". More... | |
virtual Cursor_t | CreateCursor (ECursor cursor) |
Creates the specified cursor. More... | |
virtual void | SetCursor (Window_t id, Cursor_t curid) |
Sets the cursor "curid" to be used when the pointer is in the window "id". More... | |
virtual Pixmap_t | CreatePixmap (Drawable_t id, UInt_t w, UInt_t h) |
Creates a pixmap of the specified width and height and returns a pixmap ID that identifies it. More... | |
virtual Pixmap_t | CreatePixmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth) |
Creates a pixmap from bitmap data of the width, height, and depth you specified and returns a pixmap that identifies it. More... | |
virtual Pixmap_t | CreateBitmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height) |
Creates a bitmap (i.e. More... | |
virtual void | DeletePixmap (Pixmap_t pmap) |
Explicitly deletes the pixmap resource "pmap". More... | |
virtual Bool_t | CreatePictureFromFile (Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr) |
Creates a picture pict from data in file "filename". More... | |
virtual Bool_t | CreatePictureFromData (Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr) |
Creates a picture pict from data in bitmap format. More... | |
virtual Pixmap_t | CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height) |
create pixmap from RGB data. More... | |
virtual Bool_t | ReadPictureDataFromFile (const char *filename, char ***ret_data) |
Reads picture data from file "filename" and store it in "ret_data". More... | |
virtual void | DeletePictureData (void *data) |
Delete picture data created by the function ReadPictureDataFromFile. More... | |
virtual void | SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n) |
Sets the dash-offset and dash-list attributes for dashed line styles in the specified GC. More... | |
virtual Bool_t | ParseColor (Colormap_t cmap, const char *cname, ColorStruct_t &color) |
Looks up the string name of a color "cname" with respect to the screen associated with the specified colormap. More... | |
virtual Bool_t | AllocColor (Colormap_t cmap, ColorStruct_t &color) |
Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware. More... | |
virtual void | QueryColor (Colormap_t cmap, ColorStruct_t &color) |
Returns the current RGB value for the pixel in the "color" structure. More... | |
virtual void | FreeColor (Colormap_t cmap, ULong_t pixel) |
Frees color cell with specified pixel value. More... | |
virtual Int_t | EventsPending () |
Returns the number of events that have been received from the X server but have not been removed from the event queue. More... | |
virtual void | NextEvent (Event_t &event) |
The "event" is set to default event. More... | |
virtual void | Bell (Int_t percent) |
Sets the sound bell. Percent is loudness from -100% to 100%. More... | |
virtual void | CopyArea (Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y) |
Combines the specified rectangle of "src" with the specified rectangle of "dest" according to the "gc". More... | |
virtual void | ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr) |
Changes the attributes of the specified window "id" according the values provided in "attr". More... | |
virtual void | ChangeProperty (Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len) |
Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. More... | |
virtual void | DrawLine (Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2) |
Uses the components of the specified GC to draw a line between the specified set of points (x1, y1) and (x2, y2). More... | |
virtual void | ClearArea (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) |
Paints a rectangular area in the specified window "id" according to the specified dimensions with the window's background pixel or pixmap. More... | |
virtual Bool_t | CheckEvent (Window_t id, EGEventType type, Event_t &ev) |
Check if there is for window "id" an event of type "type". More... | |
virtual void | SendEvent (Window_t id, Event_t *ev) |
Specifies the event "ev" is to be sent to the window "id". More... | |
virtual void | DispatchClientMessage (UInt_t messageID) |
Force processing of event, sent by SendEvent before. More... | |
virtual void | WMDeleteNotify (Window_t id) |
Tells WM to send message when window is closed via WM. More... | |
virtual void | SetKeyAutoRepeat (Bool_t on=kTRUE) |
Turns key auto repeat on (kTRUE) or off (kFALSE). More... | |
virtual void | GrabKey (Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE) |
Establishes a passive grab on the keyboard. More... | |
virtual void | GrabButton (Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE) |
Establishes a passive grab on a certain mouse button. More... | |
virtual void | GrabPointer (Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE) |
Establishes an active pointer grab. More... | |
virtual void | SetWindowName (Window_t id, char *name) |
Sets the window name. More... | |
virtual void | SetIconName (Window_t id, char *name) |
Sets the window icon name. More... | |
virtual void | SetIconPixmap (Window_t id, Pixmap_t pix) |
Sets the icon name pixmap. More... | |
virtual void | SetClassHints (Window_t id, char *className, char *resourceName) |
Sets the windows class and resource name. More... | |
virtual void | SetMWMHints (Window_t id, UInt_t value, UInt_t funcs, UInt_t input) |
Sets decoration style. More... | |
virtual void | SetWMPosition (Window_t id, Int_t x, Int_t y) |
Tells the window manager the desired position [x,y] of window "id". More... | |
virtual void | SetWMSize (Window_t id, UInt_t w, UInt_t h) |
Tells window manager the desired size of window "id". More... | |
virtual void | SetWMSizeHints (Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc) |
Gives the window manager minimum and maximum size hints of the window "id". More... | |
virtual void | SetWMState (Window_t id, EInitialState state) |
Sets the initial state of the window "id": either kNormalState or kIconicState. More... | |
virtual void | SetWMTransientHint (Window_t id, Window_t main_id) |
Tells window manager that the window "id" is a transient window of the window "main_id". More... | |
virtual void | DrawString (Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len) |
Each character image, as defined by the font in the GC, is treated as an additional mask for a fill operation on the drawable. More... | |
virtual Int_t | TextWidth (FontStruct_t font, const char *s, Int_t len) |
Return length of the string "s" in pixels. Size depends on font. More... | |
virtual void | GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent) |
Returns the font properties. More... | |
virtual void | GetGCValues (GContext_t gc, GCValues_t &gval) |
Returns the components specified by the mask in "gval" for the specified GC "gc" (see also the GCValues_t structure) More... | |
virtual FontStruct_t | GetGCFont (GContext_t gc) |
Return the font associated with the graphics context gc. More... | |
virtual FontStruct_t | GetFontStruct (FontH_t fh) |
Retrieves the associated font structure of the font specified font handle "fh". More... | |
virtual void | FreeFontStruct (FontStruct_t fs) |
Frees the font structure "fs". More... | |
virtual void | ClearWindow (Window_t id) |
Clears the entire area in the specified window and it is equivalent to ClearArea(id, 0, 0, 0, 0) More... | |
virtual Int_t | KeysymToKeycode (UInt_t keysym) |
Converts the "keysym" to the appropriate keycode. More... | |
virtual void | FillRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) |
Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h]. More... | |
virtual void | DrawRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) |
Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h]. More... | |
virtual void | DrawSegments (Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg) |
Draws multiple line segments. More... | |
virtual void | SelectInput (Window_t id, UInt_t evmask) |
Defines which input events the window is interested in. More... | |
virtual Window_t | GetInputFocus () |
Returns the window id of the window having the input focus. More... | |
virtual void | SetInputFocus (Window_t id) |
Changes the input focus to specified window "id". More... | |
virtual Window_t | GetPrimarySelectionOwner () |
Returns the window id of the current owner of the primary selection. More... | |
virtual void | SetPrimarySelectionOwner (Window_t id) |
Makes the window "id" the current owner of the primary selection. More... | |
virtual void | ConvertPrimarySelection (Window_t id, Atom_t clipboard, Time_t when) |
Causes a SelectionRequest event to be sent to the current primary selection owner. More... | |
virtual void | LookupString (Event_t *event, char *buf, Int_t buflen, UInt_t &keysym) |
Converts the keycode from the event structure to a key symbol (according to the modifiers specified in the event structure and the current keyboard mapping). More... | |
virtual void | GetPasteBuffer (Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del) |
Gets contents of the paste buffer "atom" into the string "text". More... | |
virtual void | TranslateCoordinates (Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child) |
Translates coordinates in one window to the coordinate space of another window. More... | |
virtual void | GetWindowSize (Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) |
Returns the location and the size of window "id". More... | |
virtual void | FillPolygon (Window_t id, GContext_t gc, Point_t *points, Int_t npnt) |
Fills the region closed by the specified path. More... | |
virtual void | QueryPointer (Window_t id, Window_t &rootw, Window_t &childw, Int_t &root_x, Int_t &root_y, Int_t &win_x, Int_t &win_y, UInt_t &mask) |
Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin. More... | |
virtual void | SetForeground (GContext_t gc, ULong_t foreground) |
Sets the foreground color for the specified GC (shortcut for ChangeGC with only foreground mask set). More... | |
virtual void | SetClipRectangles (GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n) |
Sets clipping rectangles in graphics context. More... | |
virtual void | Update (Int_t mode=0) |
Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer. More... | |
virtual Region_t | CreateRegion () |
Creates a new empty region. More... | |
virtual void | DestroyRegion (Region_t reg) |
Destroys the region "reg". More... | |
virtual void | UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest) |
Updates the destination region from a union of the specified rectangle and the specified source region. More... | |
virtual Region_t | PolygonRegion (Point_t *points, Int_t np, Bool_t winding) |
Returns a region for the polygon defined by the points array. More... | |
virtual void | UnionRegion (Region_t rega, Region_t regb, Region_t result) |
Computes the union of two regions. More... | |
virtual void | IntersectRegion (Region_t rega, Region_t regb, Region_t result) |
Computes the intersection of two regions. More... | |
virtual void | SubtractRegion (Region_t rega, Region_t regb, Region_t result) |
Subtracts regb from rega and stores the results in result. More... | |
virtual void | XorRegion (Region_t rega, Region_t regb, Region_t result) |
Calculates the difference between the union and intersection of two regions. More... | |
virtual Bool_t | EmptyRegion (Region_t reg) |
Returns kTRUE if the region reg is empty. More... | |
virtual Bool_t | PointInRegion (Int_t x, Int_t y, Region_t reg) |
Returns kTRUE if the point [x, y] is contained in the region reg. More... | |
virtual Bool_t | EqualRegion (Region_t rega, Region_t regb) |
Returns kTRUE if the two regions have the same offset, size, and shape. More... | |
virtual void | GetRegionBox (Region_t reg, Rectangle_t *rect) |
Returns smallest enclosing rectangle. More... | |
virtual char ** | ListFonts (const char *fontname, Int_t max, Int_t &count) |
Returns list of font names matching fontname regexp, like "-*-times-*". More... | |
virtual void | FreeFontNames (char **fontlist) |
Frees the specified the array of strings "fontlist". More... | |
virtual Drawable_t | CreateImage (UInt_t width, UInt_t height) |
Allocates the memory needed for an drawable. More... | |
virtual void | GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height) |
Returns the width and height of the image id. More... | |
virtual void | PutPixel (Drawable_t id, Int_t x, Int_t y, ULong_t pixel) |
Overwrites the pixel in the image with the specified pixel value. More... | |
virtual void | PutImage (Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h) |
Combines an image with a rectangle of the specified drawable. More... | |
virtual void | DeleteImage (Drawable_t img) |
Deallocates the memory associated with the image img. More... | |
virtual unsigned char * | GetColorBits (Drawable_t wid, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0) |
Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format: More... | |
virtual void | ShapeCombineMask (Window_t id, Int_t x, Int_t y, Pixmap_t mask) |
The Non-rectangular Window Shape Extension adds non-rectangular windows to the System. More... | |
virtual void | DeleteProperty (Window_t, Atom_t &) |
Deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist. More... | |
virtual Int_t | GetProperty (Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t *, Int_t *, ULong_t *, ULong_t *, unsigned char **) |
Returns the actual type of the property; the actual format of the property; the number of 8-bit, 16-bit, or 32-bit items transferred; the number of bytes remaining to be read in the property; and a pointer to the data actually returned. More... | |
virtual void | ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t) |
Changes the specified dynamic parameters if the pointer is actively grabbed by the client and if the specified time is no earlier than the last-pointer-grab time and no later than the current X server time. More... | |
virtual void | ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &) |
Requests that the specified selection be converted to the specified target type. More... | |
virtual Bool_t | SetSelectionOwner (Window_t, Atom_t &) |
Changes the owner and last-change time for the specified selection. More... | |
virtual void | ChangeProperties (Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len) |
Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. More... | |
virtual void | SetDNDAware (Window_t, Atom_t *) |
Add XdndAware property and the list of drag and drop types to the Window win. More... | |
virtual void | SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist) |
Add the list of drag and drop types to the Window win. More... | |
virtual Window_t | FindRWindow (Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd) |
Recursively search in the children of Window for a Window which is at location x, y and is DND aware, with a maximum depth of maxd. More... | |
virtual Bool_t | IsDNDAware (Window_t win, Atom_t *typelist) |
Checks if the Window is DND aware, and knows any of the DND formats passed in argument. More... | |
virtual 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) | |
Static Public Member Functions | |
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... | |
Protected Attributes | |
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 |
Additional Inherited Members | |
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... | |
#include <TVirtualX.h>
enum TVirtualX::EBoxMode |
Enumerator | |
---|---|
kHollow | |
kFilled |
Definition at line 74 of file TVirtualX.h.
enum TVirtualX::EDrawMode |
Enumerator | |
---|---|
kCopy | |
kXor | |
kInvert |
Definition at line 73 of file TVirtualX.h.
enum TVirtualX::ETextMode |
Enumerator | |
---|---|
kClear | |
kOpaque |
Definition at line 75 of file TVirtualX.h.
Enumerator | |
---|---|
kCheck | |
kLoad |
Definition at line 76 of file TVirtualX.h.
|
inline |
Definition at line 82 of file TVirtualX.h.
TVirtualX::TVirtualX | ( | const char * | name, |
const char * | title | ||
) |
|
inlinevirtual |
Definition at line 84 of file TVirtualX.h.
Registers a pixmap created by TGLManager as a ROOT pixmap.
[in] | pixid | pixmap identifier |
[in] | w,h | the width and height, which define the pixmap size |
Reimplemented in TGCocoa, TGWin32, and TGX11.
Definition at line 560 of file TVirtualX.cxx.
Registers a window created by Qt as a ROOT window.
[in] | qwid | window identifier |
[in] | w,h | the width and height, which define the window size |
Reimplemented in TGWin32, TGWin32VirtualXProxy, TGX11, and TGCocoa.
Definition at line 549 of file TVirtualX.cxx.
|
virtual |
Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware.
If no cell could be allocated it returns kFALSE, otherwise kTRUE.
The pixel value is set to default. Let system think we could allocate color.
[in] | cmap | the colormap |
[in] | color | specifies and returns the values actually used in the cmap |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 112 of file TVirtualX.cxx.
Start a modal session for a dialog window.
Definition at line 2486 of file TVirtualX.cxx.
Sets the sound bell. Percent is loudness from -100% to 100%.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1516 of file TVirtualX.cxx.
Changes the specified dynamic parameters if the pointer is actively grabbed by the client and if the specified time is no earlier than the last-pointer-grab time and no later than the current X server time.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2422 of file TVirtualX.cxx.
|
virtual |
Changes the components specified by the mask in gval for the specified GC.
[in] | gc | specifies the GC to be changed |
[in] | gval | specifies the mask and the values to be set |
(see also the GCValues_t structure)
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1338 of file TVirtualX.cxx.
|
virtual |
Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2446 of file TVirtualX.cxx.
|
virtual |
Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.
[in] | id | the window whose property you want to change |
[in] | property | specifies the property name |
[in] | type | the type of the property; the X server does not interpret the type but simply passes it back to an application that might ask about the window properties |
[in] | data | the property data |
[in] | len | the length of the specified data format |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1571 of file TVirtualX.cxx.
|
virtual |
Changes the attributes of the specified window "id" according the values provided in "attr".
The mask data member of "attr" specifies which window attributes are defined in the attributes argument. This mask is the bitwise inclusive OR of the valid attribute mask bits; if it is zero, the attributes are ignored.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1553 of file TVirtualX.cxx.
|
virtual |
Check if there is for window "id" an event of type "type".
If there is it fills in the event structure and return true. If no such event return false.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1612 of file TVirtualX.cxx.
Referenced by TGWin32VirtualXProxy::CheckEvent().
Paints a rectangular area in the specified window "id" according to the specified dimensions with the window's background pixel or pixmap.
[in] | id | specifies the window |
[in] | x,y | coordinates, which are relative to the origin |
[in] | w,h | the width and height which define the rectangle dimensions |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1602 of file TVirtualX.cxx.
|
virtual |
Clears the entire area of the current window.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 176 of file TVirtualX.cxx.
Clears the entire area in the specified window and it is equivalent to ClearArea(id, 0, 0, 0, 0)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1871 of file TVirtualX.cxx.
|
virtual |
Closes connection to display server and destroys all windows.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1206 of file TVirtualX.cxx.
|
virtual |
Deletes current pixmap.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 190 of file TVirtualX.cxx.
|
virtual |
Deletes current window.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 183 of file TVirtualX.cxx.
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 in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1991 of file TVirtualX.cxx.
Requests that the specified selection be converted to the specified target type.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2430 of file TVirtualX.cxx.
|
virtual |
Combines the specified rectangle of "src" with the specified rectangle of "dest" according to the "gc".
[in] | src | source rectangle |
[in] | dest | destination rectangle |
[in] | gc | graphics context |
[in] | src_x,src_y | specify the x and y coordinates, which are relative to the origin of the source rectangle and specify upper-left corner. |
[in] | width,height | the width and height, which are the dimensions of both the source and destination rectangles |
[in] | dest_x,dest_y | specify the upper-left corner of the destination rectangle |
GC components in use: function, plane-mask, subwindow-mode, graphics-exposure, clip-x-origin, clip-y-origin, and clip-mask. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1539 of file TVirtualX.cxx.
|
virtual |
Copies the specified components from the source GC "org" to the destination GC "dest".
The "mask" defines which component to copy and it is a data member of GCValues_t.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1347 of file TVirtualX.cxx.
Copies the pixmap "wid" at the position [xpos,ypos] in the current window.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 197 of file TVirtualX.cxx.
|
virtual |
Creates a bitmap (i.e.
pixmap with depth 1) from the bitmap data.
[in] | id | specifies which screen the pixmap is created on |
[in] | bitmap | the data in bitmap format |
[in] | width,height | define the dimensions of the pixmap |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1418 of file TVirtualX.cxx.
Creates the specified cursor.
(just return cursor from cursor pool). The cursor can be:
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1369 of file TVirtualX.cxx.
|
virtual |
Creates a graphics context using the provided GCValues_t *gval structure.
The mask data member of gval specifies which components in the GC are to be set using the information in the specified values structure. It returns a graphics context handle GContext_t that can be used with any destination drawable or O if the creation falls.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1325 of file TVirtualX.cxx.
|
virtual |
Allocates the memory needed for an drawable.
[in] | width | the width of the image, in pixels |
[in] | height | the height of the image, in pixels |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2277 of file TVirtualX.cxx.
Creates OpenGL context for window "wid".
Reimplemented in TGCocoa.
Definition at line 213 of file TVirtualX.cxx.
Creates OpenGL context for window "windowID".
Reimplemented in TGCocoa.
Definition at line 235 of file TVirtualX.cxx.
|
virtual |
Create window with special pixel format. Noop everywhere except Cocoa.
Reimplemented in TGCocoa.
Definition at line 227 of file TVirtualX.cxx.
|
virtual |
Creates a picture pict from data in bitmap format.
The picture attributes "attr" are used for input and output. Returns kTRUE in case of success, kFALSE otherwise. If the mask "pict_mask" does not exist it is set to kNone.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1452 of file TVirtualX.cxx.
|
virtual |
Creates a picture pict from data in file "filename".
The picture attributes "attr" are used for input and output. Returns kTRUE in case of success, kFALSE otherwise. If the mask "pict_mask" does not exist it is set to kNone.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1437 of file TVirtualX.cxx.
|
virtual |
Creates a pixmap of the specified width and height and returns a pixmap ID that identifies it.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1386 of file TVirtualX.cxx.
|
virtual |
Creates a pixmap from bitmap data of the width, height, and depth you specified and returns a pixmap that identifies it.
The width and height arguments must be nonzero. The depth argument must be one of the depths supported by the screen of the specified drawable.
[in] | id | specifies which screen the pixmap is created on |
[in] | bitmap | the data in bitmap format |
[in] | width,height | define the dimensions of the pixmap |
[in] | forecolor | the foreground pixel values to use |
[in] | backcolor | the background pixel values to use |
[in] | depth | the depth of the pixmap |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1403 of file TVirtualX.cxx.
|
virtual |
create pixmap from RGB data.
RGB data is in format:
Pixels are numbered from left to right and from top to bottom. Note that data must be 32-bit aligned
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2373 of file TVirtualX.cxx.
|
virtual |
Creates a new empty region.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2131 of file TVirtualX.cxx.
|
virtual |
Creates an unmapped subwindow for a specified parent window and returns the created window.
The created window is placed on top in the stacking order with respect to siblings. The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0,0] at the upper-left corner. Each window and pixmap has its own coordinate system.
[in] | parent | the parent window |
[in] | x,y | coordinates, the top-left outside corner of the window's borders; relative to the inside of the parent window's borders |
[in] | w,h | width and height of the created window; do not include the created window's borders |
[in] | border | the border pixel value of the window |
[in] | depth | the window's depth |
[in] | clss | the created window's class; can be InputOutput, InputOnly, or CopyFromParent |
[in] | visual | the visual type |
[in] | attr | the structure from which the values are to be taken. |
[in] | wtype | the window type |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1179 of file TVirtualX.cxx.
|
virtual |
Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1314 of file TVirtualX.cxx.
|
virtual |
Deletes the specified GC "gc".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1354 of file TVirtualX.cxx.
|
virtual |
Deallocates the memory associated with the image img.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2332 of file TVirtualX.cxx.
Deletes OpenGL context for window "wid".
Reimplemented in TGCocoa.
Definition at line 220 of file TVirtualX.cxx.
Delete picture data created by the function ReadPictureDataFromFile.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1472 of file TVirtualX.cxx.
Explicitly deletes the pixmap resource "pmap".
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1427 of file TVirtualX.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 in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2401 of file TVirtualX.cxx.
Destroys the region "reg".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2139 of file TVirtualX.cxx.
The DestroySubwindows function destroys all inferior windows of the specified window, in bottom-to-top stacking order.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1043 of file TVirtualX.cxx.
Destroys the window "id" as well as all of its subwindows.
The window should never be referenced again. If the window specified by the "id" argument is mapped, it is unmapped automatically.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1035 of file TVirtualX.cxx.
Force processing of event, sent by SendEvent before.
Definition at line 1629 of file TVirtualX.cxx.
|
virtual |
Returns hostname on which the display is opened.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 409 of file TVirtualX.cxx.
Draws a box between [x1,y1] and [x2,y2] according to the "mode".
[in] | x1,y1 | left down corner |
[in] | x2,y2 | right up corner |
[in] | mode | drawing mode:
|
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 272 of file TVirtualX.cxx.
|
virtual |
Draws 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.
[in] | x1,y1 | left down corner |
[in] | x2,y2 | right up corner |
[in] | nx,ny | array size |
[in] | ic | array |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 287 of file TVirtualX.cxx.
Fills area described by the polygon.
[in] | n | number of points |
[in] | xy | list of points. xy(2,n) |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 299 of file TVirtualX.cxx.
Draws a line.
[in] | x1,y1 | begin of line |
[in] | x2,y2 | end of line |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 309 of file TVirtualX.cxx.
|
virtual |
Uses the components of the specified GC to draw a line between the specified set of points (x1, y1) and (x2, y2).
GC components in use: function, plane-mask, line-width, line-style, cap-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1589 of file TVirtualX.cxx.
Draws a line through all points in the list.
[in] | n | number of points |
[in] | xy | list of points |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 319 of file TVirtualX.cxx.
Draws "n" markers with the current attributes at position [x,y].
[in] | n | number of markers to draw |
[in] | xy | an array of x,y marker coordinates |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 329 of file TVirtualX.cxx.
|
virtual |
Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h].
GC components in use: function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1912 of file TVirtualX.cxx.
|
virtual |
Draws multiple line segments.
Each line is specified by a pair of points.
[in] | id | Drawable identifier |
[in] | gc | graphics context |
[in] | *seg | specifies an array of segments |
[in] | nseg | specifies the number of segments in the array |
GC components in use: function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask.
GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, and dash-list. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1934 of file TVirtualX.cxx.
|
virtual |
Each character image, as defined by the font in the GC, is treated as an additional mask for a fill operation on the drawable.
[in] | id | the drawable |
[in] | gc | the GC |
[in] | x,y | coordinates, which are relative to the origin of the specified drawable and define the origin of the first character |
[in] | s | the character string |
[in] | len | the number of characters in the string argument |
GC components in use: function, plane-mask, fill-style, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1807 of file TVirtualX.cxx.
|
virtual |
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 in TGX11, TGWin32, TGX11TTF, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 344 of file TVirtualX.cxx.
|
virtual |
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 in TGX11, TGWin32, TGX11TTF, TGQuartz, and TGWin32VirtualXProxy.
Definition at line 361 of file TVirtualX.cxx.
Returns kTRUE if the region reg is empty.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2217 of file TVirtualX.cxx.
Returns kTRUE if the two regions have the same offset, size, and shape.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2233 of file TVirtualX.cxx.
|
virtual |
Returns the number of events that have been received from the X server but have not been removed from the event queue.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1508 of file TVirtualX.cxx.
Referenced by TGWin32VirtualXProxy::EventsPending().
|
virtual |
Executes the command "code" coming from the other threads (Win32)
Reimplemented in TGCocoa.
Definition at line 370 of file TVirtualX.cxx.
|
virtual |
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.
[in] | id | window identifier |
[in] | gc | graphics context |
[in] | *points | specifies an array of points |
[in] | npnt | specifies the number of points in the array |
GC components in use: function, plane-mask, fill-style, fill-rule, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2068 of file TVirtualX.cxx.
|
virtual |
Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h].
using the GC you specify.
GC components in use are: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1896 of file TVirtualX.cxx.
|
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.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2469 of file TVirtualX.cxx.
|
virtual |
Frees color cell with specified pixel value.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1500 of file TVirtualX.cxx.
|
virtual |
Frees the specified the array of strings "fontlist".
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2267 of file TVirtualX.cxx.
|
virtual |
Frees the font structure "fs".
The font itself will be freed when no other resource references it.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1863 of file TVirtualX.cxx.
Returns character up vector.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 386 of file TVirtualX.cxx.
|
virtual |
Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format:
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 in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2357 of file TVirtualX.cxx.
|
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 in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1257 of file TVirtualX.cxx.
|
virtual |
Asks OpenGL subsystem about the current OpenGL context.
Reimplemented in TGCocoa.
Definition at line 251 of file TVirtualX.cxx.
|
virtual |
pointer to the current internal window used in canvas graphics
Reimplemented in TGWin32VirtualXProxy, TGWin32, TGX11, and TGCocoa.
Definition at line 2339 of file TVirtualX.cxx.
Referenced by TGWin32VirtualXProxy::GetCurrentWindow().
|
virtual |
Returns handle to the default root window created when calling XOpenDisplay().
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1266 of file TVirtualX.cxx.
|
virtual |
Returns depth of screen (number of bit planes).
Equivalent to GetPlanes().
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1246 of file TVirtualX.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 in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1215 of file TVirtualX.cxx.
Queries the double buffer value for the window "wid".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 378 of file TVirtualX.cxx.
|
inline |
Definition at line 115 of file TVirtualX.h.
|
virtual |
Returns the ascent of the current font (in pixels).
The ascent of a font is the distance from the baseline to the highest position characters extend to
Reimplemented in TGQuartz.
Definition at line 475 of file TVirtualX.cxx.
Referenced by GetFontAscent().
|
virtual |
Default version is noop, but in principle what ROOT understands as ascent is text related.
Reimplemented in TGQuartz.
Definition at line 484 of file TVirtualX.cxx.
|
virtual |
Returns the descent of the current font (in pixels.
The descent is the distance from the base line to the lowest point characters extend to.
Reimplemented in TGQuartz.
Definition at line 494 of file TVirtualX.cxx.
Referenced by GetFontDescent().
|
virtual |
Default version is noop, but in principle what ROOT understands as descent requires a certain text.
Reimplemented in TGQuartz.
Definition at line 503 of file TVirtualX.cxx.
|
virtual |
Returns the font handle of the specified font structure "fs".
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1306 of file TVirtualX.cxx.
|
virtual |
Returns the font properties.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1824 of file TVirtualX.cxx.
|
virtual |
Retrieves the associated font structure of the font specified font handle "fh".
Free returned FontStruct_t using FreeFontStruct().
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1854 of file TVirtualX.cxx.
|
virtual |
Return the font associated with the graphics context gc.
Definition at line 1843 of file TVirtualX.cxx.
|
virtual |
Returns the components specified by the mask in "gval" for the specified GC "gc" (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1835 of file TVirtualX.cxx.
Returns position and size of window "wid".
[in] | wid | window identifier if wid < 0 the size of the display is returned |
[in] | x,y | returned window position |
[in] | w,h | returned window size |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 399 of file TVirtualX.cxx.
|
virtual |
Returns the width and height of the image id.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2285 of file TVirtualX.cxx.
|
virtual |
Returns the window id of the window having the input focus.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1952 of file TVirtualX.cxx.
|
virtual |
Returns the current native event handle.
Reimplemented in TGCocoa, TGX11, and TGWin32VirtualXProxy.
Definition at line 417 of file TVirtualX.cxx.
|
virtual |
On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height.
Reimplemented in TGCocoa.
Definition at line 205 of file TVirtualX.cxx.
Returns the parent of the window "id".
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1288 of file TVirtualX.cxx.
|
virtual |
Gets contents of the paste buffer "atom" into the string "text".
(nchar = number of characters) If "del" is true deletes the paste buffer afterwards.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 157 of file TVirtualX.cxx.
Returns pixel value associated to specified ROOT color number "cindex".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 425 of file TVirtualX.cxx.
Returns the maximum number of planes.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 433 of file TVirtualX.cxx.
|
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 in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1968 of file TVirtualX.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 in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2411 of file TVirtualX.cxx.
|
virtual |
Returns smallest enclosing rectangle.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2241 of file TVirtualX.cxx.
Returns RGB values for color "index".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 441 of file TVirtualX.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 in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1237 of file TVirtualX.cxx.
Returns the size of the specified character string "mess".
[in] | w | the text width |
[in] | h | the text height |
[in] | mess | the string |
Reimplemented in TGWin32, TGX11, TGQuartz, and TGWin32VirtualXProxy.
Definition at line 453 of file TVirtualX.cxx.
Returns the size of the specified character string "mess".
[in] | w | the text width |
[in] | h | the text height |
[in] | mess | the string |
Reimplemented in TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 465 of file TVirtualX.cxx.
|
virtual |
Returns the current font magnification factor.
Reimplemented in TGWin32, TGX11, TGQuartz, and TGWin32VirtualXProxy.
Definition at line 511 of file TVirtualX.cxx.
|
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 in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1226 of file TVirtualX.cxx.
|
virtual |
The WindowAttributes_t structure is set to default.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 66 of file TVirtualX.cxx.
Returns the X11 window identifier.
[in] | wid | workstation identifier (input) |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 529 of file TVirtualX.cxx.
|
virtual |
Returns the location and the size of window "id".
[in] | id | drawable identifier |
[in] | x,y | coordinates of the upper-left outer corner relative to the parent window's origin |
[in] | w,h | the inside size of the window, not including the border |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2045 of file TVirtualX.cxx.
|
virtual |
Establishes a 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 in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1683 of file TVirtualX.cxx.
|
virtual |
Establishes a passive grab on the keyboard.
In the future, the keyboard is actively grabbed, the last-keyboard-grab time is set to the time at which the key was pressed (as transmitted in the KeyPress event), and the KeyPress event is reported if all of the following conditions are true:
[in] | id | window id |
[in] | keycode | specifies the KeyCode or AnyKey |
[in] | modifier | specifies the set of keymasks or AnyModifier; the mask is the bitwise inclusive OR of the valid keymask bits |
[in] | grab | a switch between grab/ungrab key grab = kTRUE grab the key and modifier grab = kFALSE ungrab the key and modifier |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1672 of file TVirtualX.cxx.
|
virtual |
Establishes an active pointer grab.
While an active pointer grab is in effect, further pointer events are only reported to the grabbing client window.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1695 of file TVirtualX.cxx.
|
virtual |
Returns True when TrueType fonts are used.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 519 of file TVirtualX.cxx.
Iconifies the window "id".
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1107 of file TVirtualX.cxx.
Initializes the X system.
Returns kFALSE in case of failure. It is implementation dependent.
Reimplemented in TGWin32, TGX11, TGCocoa, TGX11TTF, and TGWin32VirtualXProxy.
Definition at line 168 of file TVirtualX.cxx.
Creates a new window and return window number.
Returns -1 if window initialization fails.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 538 of file TVirtualX.cxx.
|
static |
Returns gVirtualX global.
Definition at line 56 of file TVirtualX.cxx.
Referenced by TROOT::GetListOfGlobals().
Returns the atom identifier associated with the specified "atom_name" string.
If "only_if_exists" is False, the atom is created if it does not exist. If the atom name is not in the Host Portable Character Encoding, the result is implementation dependent. Uppercase and lowercase matter; the strings "thing", "Thing", and "thinG" all designate different atoms.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1279 of file TVirtualX.cxx.
Computes the intersection of two regions.
[in] | rega,regb | specify the two regions with which you want to perform the computation |
[in] | result | returns the result of the computation |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2188 of file TVirtualX.cxx.
|
inlinevirtual |
Reimplemented in TGCocoa, TGWin32, and TGWin32VirtualXProxy.
Definition at line 352 of file TVirtualX.h.
Referenced by TGWin32VirtualXProxy::IsCmdThread().
Checks if the Window is DND aware, and knows any of the DND formats passed in argument.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2478 of file TVirtualX.cxx.
Converts the "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). If the specified "keysym" is not defined for any keycode, returns zero.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1881 of file TVirtualX.cxx.
Returns list of font names matching fontname regexp, like "-*-times-*".
The pattern string can contain any characters, but each asterisk (*) is a wildcard for any number of characters, and each question mark (?) is a wildcard for a single character. If the pattern string is not in the Host Portable Character Encoding, the result is implementation dependent. Use of uppercase or lowercase does not matter. Each returned string is null-terminated.
[in] | fontname | specifies the null-terminated pattern string that can contain wildcard characters |
[in] | max | specifies the maximum number of names to be returned |
[in] | count | returns the actual number of font names |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2259 of file TVirtualX.cxx.
|
virtual |
Provides the most common way for accessing a font: opens (loads) the specified font and returns a pointer to the appropriate FontStruct_t structure.
If the font does not exist, it returns NULL.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1298 of file TVirtualX.cxx.
Converts the keycode from the event structure to a key symbol (according to the modifiers specified in the event structure and the current keyboard mapping).
In "buf" a null terminated ASCII string is returned representing the string that is currently mapped to the key code.
[in] | event | specifies the event structure to be used |
[in] | buf | returns the translated characters |
[in] | buflen | the length of the buffer |
[in] | keysym | returns the "keysym" computed from the event if this argument is not NULL |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2008 of file TVirtualX.cxx.
Referenced by TGWin32VirtualXProxy::LookupString().
Lowers the specified window "id" to the bottom of the stack so that it does not obscure any sibling windows.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1059 of file TVirtualX.cxx.
Makes context ctx current OpenGL context.
Reimplemented in TGCocoa.
Definition at line 243 of file TVirtualX.cxx.
|
virtual |
Map the XftFont with the Graphics Context using it.
Definition at line 2503 of file TVirtualX.cxx.
Referenced by TGX11::ChangeGC(), and TGX11::CreateGC().
Maps the window "id" and all of its subwindows that have had map requests on the screen and put this window on the top of of the stack of all windows.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1016 of file TVirtualX.cxx.
Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1007 of file TVirtualX.cxx.
Maps the window "id" and all of its subwindows that have had map requests.
This function has no effect if the window is already mapped.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 999 of file TVirtualX.cxx.
Changes the size and location of the specified window "id" without raising it.
[in] | id | window identifier |
[in] | x,y | coordinates, which define the new position of the window relative to its parent. |
[in] | w,h | the width and height, which define the interior size of the window |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1086 of file TVirtualX.cxx.
Moves the window "wid" to the specified x and y coordinates.
It does not change the window's size, raise the window, or change the mapping state of the window.
[in] | wid | window identifier |
[in] | x,y | coordinates, which define the new position of the window relative to its parent. |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 582 of file TVirtualX.cxx.
Moves the specified window to the specified x and y coordinates.
It does not change the window's size, raise the window, or change the mapping state of the window.
[in] | id | window identifier |
[in] | x,y | coordinates, which define the new position of the window relative to its parent. |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1072 of file TVirtualX.cxx.
Notify the low level GUI layer ROOT requires "tgwindow" to be updated.
Returns kTRUE if the notification was desirable and it was sent
At the moment only Qt4 layer needs that
One needs explicitly cast the first parameter to TGWindow to make it working in the implementation.
One needs to process the notification to confine all paint operations within "expose" / "paint" like low level event or equivalent
Reimplemented in TGCocoa.
Definition at line 1125 of file TVirtualX.cxx.
The "event" is set to default event.
This method however, should never be called.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 136 of file TVirtualX.cxx.
Referenced by TGWin32VirtualXProxy::NextEvent().
|
virtual |
Opens connection to display server (if such a thing exist on the current platform).
The encoding and interpretation of the display name.
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).
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1198 of file TVirtualX.cxx.
Creates a pixmap of the width "w" and height "h" you specified.
Reimplemented in TGWin32, TGCocoa, TGX11, and TGWin32VirtualXProxy.
Definition at line 589 of file TVirtualX.cxx.
|
virtual |
Looks up the string name of a color "cname" with respect to the screen associated with the specified colormap.
It returns the exact color value. If the color name is not in the Host Portable Character Encoding, the result is implementation dependent.
[in] | cmap | the colormap |
[in] | cname | the color name string; use of uppercase or lowercase does not matter |
[in] | color | returns the exact color value for later use |
The ColorStruct_t structure is set to default. Let system think we could parse color.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 89 of file TVirtualX.cxx.
Returns kTRUE if the point [x, y] is contained in the region reg.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2225 of file TVirtualX.cxx.
Returns a region for the polygon defined by the points array.
[in] | points | specifies an array of points |
[in] | np | specifies the number of points in the polygon |
[in] | winding | specifies the winding-rule is set (kTRUE) or not(kFALSE) |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2163 of file TVirtualX.cxx.
|
virtual |
Combines an image with a rectangle of the specified drawable.
The section of the image defined by the x, y, width, and height arguments is drawn on the specified part of the drawable.
[in] | id | the drawable |
[in] | gc | the GC |
[in] | img | the image you want combined with the rectangle |
[in] | dx | the offset in X from the left edge of the image |
[in] | dy | the offset in Y from the top edge of the image |
[in] | x,y | coordinates, which are relative to the origin of the drawable and are the coordinates of the subimage |
[in] | w,h | the width and height of the subimage, which define the rectangle dimensions |
GC components in use: function, plane-mask, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC mode-dependent components: foreground and background. (see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2323 of file TVirtualX.cxx.
|
virtual |
Overwrites the pixel in the image with the specified pixel value.
The image must contain the x and y coordinates.
[in] | id | specifies the image |
[in] | x,y | coordinates |
[in] | pixel | the new pixel value |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2298 of file TVirtualX.cxx.
|
virtual |
Returns the current RGB value for the pixel in the "color" structure.
The color components are set to default.
[in] | cmap | the colormap |
[in] | color | specifies and returns the RGB values for the pixel specified in the structure |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 127 of file TVirtualX.cxx.
Returns the pointer position.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 597 of file TVirtualX.cxx.
|
virtual |
Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin.
[in] | id | specifies the window |
[in] | rootw | the root window that the pointer is in |
[in] | childw | the child window that the pointer is located in, if any |
[in] | root_x,root_y | the pointer coordinates relative to the root window's origin |
[in] | win_x,win_y | the pointer coordinates relative to the specified window "id" |
[in] | mask | the current state of the modifier keys and pointer buttons |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2086 of file TVirtualX.cxx.
Raises the specified window to the top of the stack so that no sibling window obscures it.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1051 of file TVirtualX.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 in TGCocoa, TGWin32, and TGX11.
Definition at line 606 of file TVirtualX.cxx.
|
virtual |
Reads picture data from file "filename" and store it in "ret_data".
Returns kTRUE in case of success, kFALSE otherwise.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1463 of file TVirtualX.cxx.
Removes the created by Qt window "qwid".
Reimplemented in TGWin32, TGWin32VirtualXProxy, TGX11, and TGCocoa.
Definition at line 569 of file TVirtualX.cxx.
If the specified window is mapped, ReparentWindow automatically performs an UnmapWindow request on it, removes it from its current position in the hierarchy, and inserts it as the child of the specified parent.
The window is placed in the stacking order on top with respect to sibling windows.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1137 of file TVirtualX.cxx.
Requests Locator position.
[in] | x,y | cursor position at moment of button press (output) |
[in] | ctyp | cursor type (input)
|
[in] | mode | input mode
|
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 640 of file TVirtualX.cxx.
Requests string: text is displayed and can be edited with Emacs-like keybinding.
Returns termination code (0 for ESC, 1 for RETURN)
[in] | x,y | position where text is displayed |
[in] | text | displayed text (as input), edited text (as output) |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 654 of file TVirtualX.cxx.
Rescales the window "wid".
[in] | wid | window identifier |
[in] | w | the width |
[in] | h | the height |
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 667 of file TVirtualX.cxx.
Resizes the specified pixmap "wid".
[in] | wid | window identifier |
[in] | w,h | the width and height which define the pixmap dimensions |
Reimplemented in TGWin32, TGCocoa, TGX11, and TGWin32VirtualXProxy.
Definition at line 677 of file TVirtualX.cxx.
Resizes the window "wid" if necessary.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 685 of file TVirtualX.cxx.
Changes the width and height of the specified window "id", not including its borders.
This function does not change the window's upper-left coordinate.
[in] | id | window identifier |
[in] | w,h | the width and height, which are the interior dimensions of the window after the call completes. |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1100 of file TVirtualX.cxx.
|
virtual |
Returns the width of the screen in millimeters.
Reimplemented in TGWin32, TGX11, and TGCocoa.
Definition at line 2391 of file TVirtualX.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 in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1945 of file TVirtualX.cxx.
Selects the pixmap "qpixid".
Reimplemented in TGCocoa.
Definition at line 699 of file TVirtualX.cxx.
Selects the window "wid" to which subsequent output is directed.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 692 of file TVirtualX.cxx.
Specifies the event "ev" is to be sent to the window "id".
This function requires you to pass an event mask.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1622 of file TVirtualX.cxx.
Referenced by TGWin32VirtualXProxy::SendEvent().
Sets character up vector.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 706 of file TVirtualX.cxx.
Sets the windows class and resource name.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1726 of file TVirtualX.cxx.
Turns off the clipping for the window "wid".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 713 of file TVirtualX.cxx.
|
virtual |
Sets 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. (see also the GCValues_t structure)
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2114 of file TVirtualX.cxx.
Sets clipping region for the window "wid".
[in] | wid | window identifier |
[in] | x,y | origin of clipping rectangle |
[in] | w,h | the clipping rectangle dimensions |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 724 of file TVirtualX.cxx.
The cursor "cursor" will be used when the pointer is in the window "wid".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 733 of file TVirtualX.cxx.
Sets the cursor "curid" to be used when the pointer is in the window "id".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1378 of file TVirtualX.cxx.
|
virtual |
Sets the dash-offset and dash-list attributes for dashed line styles in the specified GC.
There must be at least one element in the specified dash_list. The initial and alternating elements (second, fourth, and so on) of the dash_list are the even dashes, and the others are the odd dashes. Each element in the "dash_list" array specifies the length (in pixels) of a segment of the pattern.
[in] | gc | specifies the GC (see GCValues_t structure) |
[in] | offset | the phase of the pattern for the dashed line-style you want to set for the specified GC. |
[in] | dash_list | the dash-list for the dashed line-style you want to set for the specified GC |
[in] | n | the number of elements in dash_list (see also the GCValues_t structure) |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1492 of file TVirtualX.cxx.
Add XdndAware property and the list of drag and drop types to the Window win.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2454 of file TVirtualX.cxx.
Sets the double buffer on/off on the window "wid".
[in] | wid | window identifier.
|
[in] | mode | the on/off switch
|
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 746 of file TVirtualX.cxx.
|
virtual |
Turns double buffer mode off.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 753 of file TVirtualX.cxx.
|
virtual |
Turns double buffer mode on.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 760 of file TVirtualX.cxx.
Sets the drawing mode.
[in] | mode | drawing mode.
|
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 773 of file TVirtualX.cxx.
Sets color index "cindex" for fill areas.
Reimplemented from TAttFill.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 780 of file TVirtualX.cxx.
Sets fill area style.
[in] | style | compound fill area interior style
|
Reimplemented from TAttFill.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 790 of file TVirtualX.cxx.
|
virtual |
Sets the foreground color for the specified GC (shortcut for ChangeGC with only foreground mask set).
[in] | gc | specifies the GC |
[in] | foreground | the foreground you want to set |
(see also the GCValues_t structure)
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2104 of file TVirtualX.cxx.
Sets the window icon name.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1712 of file TVirtualX.cxx.
Sets the icon name pixmap.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1719 of file TVirtualX.cxx.
Changes the input focus to specified window "id".
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1960 of file TVirtualX.cxx.
Turns key auto repeat on (kTRUE) or off (kFALSE).
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1643 of file TVirtualX.cxx.
Sets color index "cindex" for drawing lines.
Reimplemented from TAttLine.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 797 of file TVirtualX.cxx.
Sets the line style.
[in] | linestyle | line style.
|
Reimplemented from TAttLine.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 824 of file TVirtualX.cxx.
Sets the line type.
[in] | n | length of the dash list
|
[in] | dash(n) | dash segment lengths |
Reimplemented in TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 811 of file TVirtualX.cxx.
Sets the line width.
[in] | width | the line width in pixels |
Reimplemented from TAttLine.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 833 of file TVirtualX.cxx.
Sets color index "cindex" for markers.
Reimplemented from TAttMarker.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 840 of file TVirtualX.cxx.
Sets marker size index.
[in] | markersize | the marker scale factor |
Reimplemented from TAttMarker.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 849 of file TVirtualX.cxx.
Sets marker style.
Reimplemented from TAttMarker.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 856 of file TVirtualX.cxx.
Sets decoration style.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1734 of file TVirtualX.cxx.
Sets opacity of the current 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 in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 867 of file TVirtualX.cxx.
Makes the window "id" the current owner of the primary selection.
That is the window in which, for example some text is selected.
Reimplemented in TGWin32, TGCocoa, TGX11, and TGWin32VirtualXProxy.
Definition at line 1977 of file TVirtualX.cxx.
Sets color intensities the specified color index "cindex".
[in] | cindex | color index |
[in] | r,g,b | the red, green, blue intensities between 0.0 and 1.0 |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 877 of file TVirtualX.cxx.
Changes the owner and last-change time for the specified selection.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2437 of file TVirtualX.cxx.
Sets the text alignment.
[in] | talign | text alignment.
|
Reimplemented from TAttText.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 889 of file TVirtualX.cxx.
Sets the color index "cindex" for text.
Reimplemented from TAttText.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 896 of file TVirtualX.cxx.
|
virtual |
Sets text font to specified name "fontname".This function returns 0 if the specified font is found, 1 if it is not.
[in] | fontname | font name |
[in] | mode | loading flag
|
Reimplemented in TGX11, TGWin32, TGWin32VirtualXProxy, TGQuartz, and TGX11TTF.
Definition at line 909 of file TVirtualX.cxx.
Sets the current text font number.
Reimplemented from TAttText.
Reimplemented in TGX11, TGWin32, TGWin32VirtualXProxy, TGQuartz, and TGX11TTF.
Definition at line 917 of file TVirtualX.cxx.
Sets the current text magnification factor to "mgn".
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 924 of file TVirtualX.cxx.
Sets the current text size to "textsize".
Reimplemented from TAttText.
Reimplemented in TGX11, TGWin32, TGWin32VirtualXProxy, TGQuartz, and TGX11TTF.
Definition at line 931 of file TVirtualX.cxx.
Add the list of drag and drop types to the Window win.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 2461 of file TVirtualX.cxx.
Sets the background of the window "id" to the specified color value "color".
Changing the background does not cause the window contents to be changed.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1147 of file TVirtualX.cxx.
Sets the background pixmap of the window "id" to the specified pixmap "pxm".
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1155 of file TVirtualX.cxx.
Sets the window name.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1705 of file TVirtualX.cxx.
Tells the window manager the desired position [x,y] of window "id".
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1742 of file TVirtualX.cxx.
Tells window manager the desired size of window "id".
[in] | id | window identifier |
[in] | w | the width |
[in] | h | the height |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1753 of file TVirtualX.cxx.
|
virtual |
Gives the window manager minimum and maximum size hints of the window "id".
Also specify via "winc" and "hinc" the resize increments.
[in] | id | window identifier |
[in] | wmin,hmin | specify the minimum window size |
[in] | wmax,hmax | specify the maximum window size |
[in] | winc,hinc | define an arithmetic progression of sizes into which the window to be resized (minimum to maximum) |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1767 of file TVirtualX.cxx.
|
virtual |
Sets the initial state of the window "id": either kNormalState or kIconicState.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1777 of file TVirtualX.cxx.
Tells window manager that the window "id" is a transient window of the window "main_id".
A window manager may decide not to decorate a transient window or may treat it differently in other ways.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1786 of file TVirtualX.cxx.
The Non-rectangular Window Shape Extension adds non-rectangular windows to the System.
This allows for making shaped (partially transparent) windows
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2384 of file TVirtualX.cxx.
Subtracts regb from rega and stores the results in result.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2196 of file TVirtualX.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).
Reimplemented in TGX11, and TGCocoa.
Definition at line 2495 of file TVirtualX.cxx.
Set synchronisation on or off.
[in] | mode | synchronisation on/off
|
Reimplemented in TGCocoa, TGWin32, and TGX11.
Definition at line 942 of file TVirtualX.cxx.
|
virtual |
Return length of the string "s" in pixels. Size depends on font.
Reimplemented in TGWin32, TGX11, TGCocoa, and TGWin32VirtualXProxy.
Definition at line 1815 of file TVirtualX.cxx.
|
virtual |
Translates coordinates in one window to the coordinate space of another window.
It takes the "src_x" and "src_y" coordinates relative to the source window's origin and returns these coordinates to "dest_x" and "dest_y" relative to the destination window's origin.
[in] | src | the source window |
[in] | dest | the destination window |
[in] | src_x,src_y | coordinates within the source window |
[in] | dest_x,dest_y | coordinates within the destination window |
[in] | child | returns the child of "dest" if the coordinates are contained in a mapped child of the destination window; otherwise, child is set to 0 |
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2028 of file TVirtualX.cxx.
|
virtual |
Updates the destination region from a union of the specified rectangle and the specified source region.
[in] | rect | specifies the rectangle |
[in] | src | specifies the source region to be used |
[in] | dest | returns the destination region |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2151 of file TVirtualX.cxx.
Computes the union of two regions.
[in] | rega,regb | specify the two regions with which you want to perform the computation |
[in] | result | returns the result of the computation |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2176 of file TVirtualX.cxx.
Unmaps the specified window "id".
If the specified window is already unmapped, this function has no effect. Any child window will no longer be visible (but they are still mapped) until another map call is made on the parent.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 1026 of file TVirtualX.cxx.
Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
Flush flushes output buffer. Sync flushes buffer and waits till all requests have been processed by X server.
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 2124 of file TVirtualX.cxx.
Updates or synchronises client and server once (not permanent).
according to "mode".
[in] | mode | update mode.
|
Reimplemented in TGWin32, TGX11, TGWin32VirtualXProxy, and TGCocoa.
Definition at line 954 of file TVirtualX.cxx.
Sets the 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 in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 968 of file TVirtualX.cxx.
Tells WM to send message when window is closed via WM.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 1636 of file TVirtualX.cxx.
|
virtual |
Writes the current window into GIF file.
Returns 1 in case of success, 0 otherwise.
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 976 of file TVirtualX.cxx.
Writes the pixmap "wid" in the bitmap file "pxname".
[in] | wid | the pixmap address |
[in] | w,h | the width and height of the pixmap. |
[in] | pxname | the file name |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 988 of file TVirtualX.cxx.
Calculates the difference between the union and intersection of two regions.
[in] | rega,regb | specify the two regions with which you want to perform the computation |
[in] | result | returns the result of the computation |
Reimplemented in TGCocoa, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 2209 of file TVirtualX.cxx.
|
protected |
Definition at line 79 of file TVirtualX.h.
Referenced by GetDrawMode(), TGX11::SetColor(), TGWin32::SetColor(), TGX11::SetDrawMode(), TGWin32::SetDrawMode(), TGWin32::TGWin32(), and TGX11::TGX11().