TGXClient


class description - source file - inheritance tree

class TGXClient : public TGXW


    public:
TGXClient TGXClient() TGXClient TGXClient(char* name) TGXClient TGXClient(TGXClient&) virtual void ~TGXClient() virtual Bool_t AllocColor(Colormap_t cmap, ColorStruct_t& color) virtual void Bell(Int_t percent) virtual void ChangeGC(GContext_t gc, GCValues_t* gval) virtual void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t* attr) virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t& ev) TClass* Class() virtual void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) virtual void ClearWindow() virtual void ClearWindow(Window_t id) virtual void CloseDisplay() virtual void ClosePixmap() virtual void CloseWindow() virtual void ConvertPrimarySelection(Window_t id, Time_t when) 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) virtual void CopyGC(GContext_t org, GContext_t dest, Mask_t mask) virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos) virtual Pixmap_t CreateBitmap(Drawable_t id, char* bitmap, UInt_t width, UInt_t height) virtual Cursor_t CreateCursor(ECursor cursor) virtual GContext_t CreateGC(Drawable_t id, GCValues_t* gval) virtual void CreateOpenGLContext(Int_t wid = 0) virtual Bool_t CreatePictureFromData(Drawable_t id, char** data, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr) virtual Bool_t CreatePictureFromFile(Drawable_t id, char* filename, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr) virtual Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h) virtual Pixmap_t CreatePixmap(Drawable_t id, char* bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth) 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) virtual void DeleteFont(FontStruct_t fs) virtual void DeleteGC(GContext_t gc) virtual void DeleteOpenGLContext(Int_t wid = 0) virtual void DeletePictureData(void* data) virtual void DeletePixmap(Pixmap_t pmap) virtual void DestroyWindow(Window_t id) virtual const char* DisplayName(char* = 0) virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, TGXW::EBoxMode mode) virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t* ic) virtual void DrawFillArea(Int_t n, TPoint* xy) virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2) virtual void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2) virtual void DrawPolyLine(Int_t n, TPoint* xy) virtual void DrawPolyMarker(Int_t n, TPoint* xy) virtual void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t* seg, Int_t nseg) virtual void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, char* s, Int_t len) virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, char* text, TGXW::ETextMode mode) virtual Int_t EventsPending() virtual void FillPolygon(Window_t id, GContext_t gc, Point_t* points, Int_t npnt) virtual void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) virtual void GetCharacterUp(Float_t& chupx, Float_t& chupy) virtual Window_t GetDefaultRootWindow() virtual Int_t GetDoubleBuffer(Int_t wid) TGXW::EDrawMode GetDrawMode() virtual FontH_t GetFontHandle(FontStruct_t fs) virtual void GetFontProperties(FontStruct_t font, Int_t& max_ascent, Int_t& max_descent) virtual FontStruct_t GetFontStruct(FontH_t fh) virtual void GetGCValues(GContext_t gc, GCValues_t& gval) virtual void GetPasteBuffer(Window_t id, Atom_t atom, TString& text, Int_t& nchar, Bool_t del) virtual void GetPlanes(Int_t& nplanes) virtual Window_t GetPrimarySelectionOwner() virtual void GetRGB(Int_t index, Float_t& r, Float_t& g, Float_t& b) virtual void GetTextExtent(UInt_t& w, UInt_t& h, char* mess) virtual Float_t GetTextMagnitude() virtual void GetWindowAttributes(Window_t id, WindowAttributes_t& attr) virtual void GetWindowSize(Drawable_t id, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h) virtual void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE) virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE) virtual void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE) virtual Bool_t Init(void* display = 0) virtual Int_t InitWindow(ULong_t window) virtual Atom_t InternAtom(char* atom_name, Bool_t only_if_exist) virtual TClass* IsA() virtual Int_t KeysymToKeycode(UInt_t keysym) virtual FontStruct_t LoadQueryFont(char* font_name) virtual void LookupString(Event_t* event, char* buf, Int_t buflen, UInt_t& keysym) virtual void LowerWindow(Window_t id) virtual void MapRaised(Window_t id) virtual void MapSubwindows(Window_t id) virtual void MapWindow(Window_t id) virtual void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) virtual void MoveWindow(Int_t wid, Int_t x, Int_t y) virtual void MoveWindow(Window_t id, Int_t x, Int_t y) virtual void NextEvent(Event_t& event) virtual Int_t OpenDisplay(char* dpyName) virtual Int_t OpenPixmap(UInt_t w, UInt_t h) virtual Bool_t ParseColor(Colormap_t cmap, char* cname, ColorStruct_t& color) virtual void QueryColor(Colormap_t cmap, ColorStruct_t& color) virtual void QueryPointer(Int_t& ix, Int_t& iy) 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) virtual void RaiseWindow(Window_t id) virtual void ReadGIF(Int_t x0, Int_t y0, char* file) virtual Bool_t ReadPictureDataFromFile(char* filename, char*** ret_data) virtual void ResizeWindow(Int_t wid) virtual void ResizeWindow(Window_t id, UInt_t w, UInt_t h) virtual void SelectInput(Window_t id, UInt_t evmask) virtual void SelectWindow(Int_t wid) virtual void SendEvent(Window_t id, Event_t* ev) virtual void SetClassHints(Window_t id, char* className, char* resourceName) virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t* recs, Int_t n) virtual void SetCursor(Int_t win, ECursor cursor) virtual void SetCursor(Window_t id, Cursor_t curid) virtual void SetDashes(GContext_t gc, Int_t offset, char* dash_list, Int_t n) virtual void SetFillColor(Color_t cindex) virtual void SetFillStyle(Style_t style) virtual void SetForeground(GContext_t gc, ULong_t foreground) virtual void SetIconName(Window_t id, char* name) virtual void SetInputFocus(Window_t id) virtual void SetKeyAutoRepeat(Bool_t on = kTRUE) virtual void SetLineColor(Color_t cindex) virtual void SetLineStyle(Style_t linestyle) virtual void SetLineType(Int_t n, Int_t* dash) virtual void SetLineWidth(Width_t width) virtual void SetMarkerColor(Color_t cindex) virtual void SetMarkerSize(Float_t markersize) virtual void SetMarkerStyle(Style_t markerstyle) virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input) virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b) virtual void SetTextAlign(Short_t talign = 11) virtual void SetTextColor(Color_t cindex) virtual Int_t SetTextFont(char* fontname, TGXW::ETextSetMode mode) virtual void SetTextFont(Font_t fontnumber) virtual void SetTextMagnitude(Float_t mgn) virtual void SetTextSize(Float_t textsize) virtual void SetWindowBackground(Window_t id, ULong_t color) virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm) virtual void SetWindowName(Window_t id, char* name) virtual void SetWMPosition(Window_t id, Int_t x, Int_t y) virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h) virtual void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc) virtual void SetWMState(Window_t id, EInitialState state) virtual void SetWMTransientHint(Window_t id, Window_t main_id) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) virtual Int_t TextWidth(FontStruct_t font, char* s, Int_t len) 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) virtual void UnmapWindow(Window_t id) virtual void UpdateWindow(Int_t mode) virtual void WMDeleteNotify(Window_t id) virtual void WriteCode(Short_t code) virtual void WriteCodeSend(Short_t code) virtual void WriteGCValues(GCValues_t* val) virtual void WriteSetWindowAttributes(SetWindowAttributes_t* val)

Data Members

protected:
TSocket* fSocket Socket for communication with server TMessage fBuffer Client buffer Int_t fHeaderSize Size of header for primitives Int_t fBeginCode Position in buffer when starting encoding a primitive Int_t fCurrentColor Current color on server Float_t fChupx Character up on X Float_t fChupy Character up on Y Float_t fMagnitude Text magnitude char fText[256] Communication text array

Class Description

                                                                      
 TGXClient                                                            
                                                                      
 This class is the basic interface to the graphics client. It is      
 an implementation of the abstract TGXW class. The companion class    
 for Unix is TGX11 and for Win32 is TGWin32.                          
                                                                      
                                                                      


TGXClient()

TGXClient(const char *name) :TGXW((char*)name,"ROOT Client")

~TGXClient()
 Client destructor

void WriteCode(Short_t code)
 Identify current primitive in client buffer

void WriteCodeSend(Short_t code)
 Identify current primitive in client buffer and send buffer to server

void WriteGCValues(GCValues_t *val)
 Write GCValues_t structure val into current buffer

void WriteSetWindowAttributes(SetWindowAttributes_t *val)
 Write SetWindowAttributes_t structure val into current buffer

void UpdateWindow(int mode)
 Update display.
 mode : (1) update
        (0) sync

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

void MapWindow(Window_t id)
 Map window on screen.

void MapSubwindows(Window_t id)
 Map sub windows.

void MapRaised(Window_t id)
 Map window on screen and put on top of all windows.

void UnmapWindow(Window_t id)
 Unmap window from screen.

void DestroyWindow(Window_t id)
 Destroy window.

void RaiseWindow(Window_t id)
 Put window on top of window stack.

void LowerWindow(Window_t id)
 Lower window so it lays below all its siblings.

void MoveWindow(Window_t id, Int_t x, Int_t y)
 Move a window.

void MoveWindow(Int_t id, Int_t x, Int_t y)
 Move a window.

void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Move and resize a window.

void ResizeWindow(Window_t id, UInt_t w, UInt_t h)
 Resize the window.

void ResizeWindow(Int_t id)
 Resize the window.

void SetWindowBackground(Window_t id, ULong_t color)
 Set the window background color.

void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
 Set pixmap as window background.

Window_t CreateWindow(Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr)
 Return handle to newly created X window.

void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
 Get window attributes and return filled in attributes structure.

Int_t OpenDisplay(const char *dpyName)
 Open connection to display server (if such a thing exist on the
 current platform). On X11 this method returns on success the X
 display socket descriptor (> 0), 0 in case of batch mode and < 0
 in case of failure (cannot connect to display dpyName). It also
 initializes the TGXClient class via Init(). Called from TGClient ctor.

Int_t OpenPixmap(UInt_t w, UInt_t h)

void CloseDisplay()
 Close connection to display server.

void ClosePixmap()
 Close pixmap

void ClearWindow()
 Clear window

void CloseWindow()
 Close window

Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
 Return atom handle for atom_name. If it does not exist
 create it if only_if_exist is false. Atoms are used to communicate
 between different programs (i.e. window manager) via the X server.

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

FontStruct_t LoadQueryFont(const char *font_name)
 Load font and query font. If font is not found 0 is returned,
 otherwise a opaque pointer to the FontStruct_t.

FontH_t GetFontHandle(FontStruct_t fs)
 Return handle to font described by font structure.

void DeleteFont(FontStruct_t fs)
 Explicitely delete font structure.

GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
 Create a graphics context using the values set in gval (but only for
 those entries that are in the mask).

void ChangeGC(GContext_t gc, GCValues_t *gval)
 Change entries in an existing graphics context, gc, by values from gval.

void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
 Copies graphics context from org to dest. Only the values specified
 in mask are copied. Both org and dest must exist.

void DeleteGC(GContext_t gc)
 Explicitely delete a graphics context.

Cursor_t CreateCursor(ECursor cursor)
 Create cursor handle (just return cursor from cursor pool fCursors).

void SetCursor(Window_t id, Cursor_t curid)
 Set the specified cursor.

void SetCursor(Int_t id, ECursor cursor)
 Set the specified cursor.

Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
 Creates a pixmap of the width and height you specified
 and returns a pixmap ID that identifies it.

Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
 Create a pixmap from bitmap data. Ones will get foreground color and
 zeroes background color.

Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
 Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.

void DeletePixmap(Pixmap_t pmap)
 Explicitely delete pixmap resource.

Bool_t CreatePictureFromFile(Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Create a picture pixmap from data on file. The picture attributes
 are used for input and output. Returns kTRUE in case of success,
 kFALSE otherwise. If mask does not exist it is set to kNone.

Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Create a pixture pixmap from data. The picture attributes
 are used for input and output. Returns kTRUE in case of success,
 kFALSE otherwise. If mask does not exist it is set to kNone.

Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
 Read picture data from file and store in ret_data. Returns kTRUE in
 case of success, kFALSE otherwise.

void DeletePictureData(void *data)
 Delete picture data created by the function ReadPictureDataFromFile.

void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
 Specify a dash pattertn. Offset defines the phase of the pattern.
 Each element in the dash_list array specifies the length (in pixels)
 of a segment of the pattern. N defines the length of the list.

Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
 Parse string cname containing color name, like "green" or "#00FF00".
 It returns a filled in ColorStruct_t. Returns kFALSE in case parsing
 failed, kTRUE in case of success. On success, the ColorStruct_t
 fRed, fGreen and fBlue fields are all filled in and the mask is set
 for all three colors, but fPixel is not set.

Bool_t AllocColor(Colormap_t cmap, ColorStruct_t &color)
 Find and allocate a color cell according to the color values specified
 in the ColorStruct_t. If no cell could be allocated it returns kFALSE,
 otherwise kTRUE.

void QueryColor(Colormap_t cmap, ColorStruct_t &color)
 Fill in the primary color components for a specific pixel value.
 On input fPixel should be set on return the fRed, fGreen and
 fBlue components will be set.

Int_t EventsPending()
 Returns number of pending events.

void NextEvent(Event_t &event)
 Copies first pending event from event queue to Event_t structure
 and removes event from queue. Not all of the event fields are valid
 for each event type, except fType and fWindow.

void Bell(Int_t percent)
 Sound bell. Percent is loudness from -100% .. 100%.

void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y)
 Copy a drawable (i.e. pixmap) to another drawable (pixmap, window).
 The graphics context gc will be used and the source will be copied
 from src_x,src_y,src_x+width,src_y+height to dest_x,dest_y.

void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
 Change window attributes.

void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
 Draw a line.

void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
 Draw a line.

void DrawFillArea(Int_t n, TPoint *xy)
 Draw a fill area.

void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line.

void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line.

void DrawPolyLine(Int_t n, TPoint *xy)
 Draw a polyline.

void DrawPolyMarker(Int_t n, TPoint *xy)
 Draw a polymarker.

void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
 Draw a text.

void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Clear a window area to the bakcground color.

Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &event)
 Check if there is for window "id" an event of type "type". If there
 is fill in the event structure and return true. If no such event
 return false.

void SendEvent(Window_t id, Event_t *ev)
 Send event ev to window id.

void WMDeleteNotify(Window_t id)
 Tell WM to send message when window is closed via WM.

void SetKeyAutoRepeat(Bool_t on)
 Turn key auto repeat on or off.

void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab)
 Establish passive grab on a certain key. That is, when a certain key
 keycode is hit while certain modifier's (Shift, Control, Meta, Alt)
 are active then the keyboard will be grabed for window id.
 When grab is false, ungrab the keyboard for this key and modifier.

void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab)
 Establish passive grab on a certain mouse button. That is, when a
 certain mouse button is hit while certain modifier's (Shift, Control,
 Meta, Alt) are active then the mouse will be grabed for window id.
 When grab is false, ungrab the mouse button for this button and modifier.

void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab)
 Establish an active pointer grab. While an active pointer grab is in
 effect, further pointer events are only reported to the grabbing
 client window.

void SetWindowName(Window_t id, char *name)
 Set window name.

void SetIconName(Window_t id, char *name)
 Set window icon name.

void SetClassHints(Window_t id, char *className, char *resourceName)
 Set the windows class and resource name.

void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
 Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).

void SetWMPosition(Window_t id, Int_t x, Int_t y)
 Tell the window manager the desired window position.

void SetWMSize(Window_t id, UInt_t w, UInt_t h)
 Tell the window manager the desired window size.

void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
 Give the window manager minimum and maximum size hints. Also
 specify via winc and hinc the resize increments.

void SetWMState(Window_t id, EInitialState state)
 Set the initial state of the window. Either kNormalState or kIconicState.

void SetWMTransientHint(Window_t id, Window_t main_id)
 Tell window manager that window is a transient window of main.

void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
 Draw a string using a specific graphics context in position (x,y).

Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
 Return lenght of string in pixels. Size depends on font.

void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
 Return some font properties.

void GetGCValues(GContext_t gc, GCValues_t &gval)
 Get current values from graphics context gc. Which values of the
 context to get is encoded in the GCValues::fMask member.

FontStruct_t GetFontStruct(FontH_t fh)
 Retrieve associated font structure once we have the font handle.

void ClearWindow(Window_t id)
 Clear window.

Int_t KeysymToKeycode(UInt_t keysym)
 Convert a keysym to the appropriate keycode. For example keysym is
 a letter and keycode is the matching keyboard key (which is dependend
 on the current keyboard mapping).

void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw a filled rectangle. Filling is done according to the gc.

void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw a rectangle outline.

void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
 Draws multiple line segments. Each line is specified by a pair of points.

void SelectInput(Window_t id, UInt_t evmask)
 Defines which input events the window is interested in. By default
 events are propageted up the window stack. This mask can also be
 set at window creation time via the SetWindowAttributes_t::fEventMask
 attribute.

void SelectWindow(Int_t wid)

void SetInputFocus(Window_t id)
 Set keyboard input focus to window id.

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

void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
 Convert the keycode from the event structure to a key symbol (according
 to the modifiers specified in the event structure and the current
 key board mapping). In buf a null terminated ASCII string is returned
 representing the string that is currently mapped to the key code.

void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
 Get contents of paste buffer atom into string. If del is true delete
 the paste buffer afterwards.

void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child)
 TranslateCoordinates translates coordinates from the frame of
 reference of one window to another. If the point is contained
 in a mapped child of the destination, the id of that child is
 returned as well.

void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Return geometry of window (should be called GetGeometry but signature
 already used).

void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
 FillPolygon fills the region closed by the specified path.
 The path is closed automatically if the last point in the list does
 not coincide with the first point. All point coordinates are
 treated as relative to the origin. For every pair of points
 inside the polygon, the line segment connecting them does not
 intersect the path.

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

void SetForeground(GContext_t gc, ULong_t foreground)
 Set foreground color in graphics context (shortcut for ChangeGC with
 only foreground mask set).

void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
 Set clipping rectangles in graphics context. X, Y specify the origin
 of the rectangles. Recs specifies an array of rectangles that define
 the clipping mask and n is the number of rectangles.

void SetFillColor(Color_t cindex)

void SetFillStyle(Style_t style)

void SetLineColor(Color_t cindex)

void SetLineType(Int_t n, Int_t *dash)

void SetLineStyle(Style_t style)

void SetLineWidth(Width_t width)

void SetMarkerColor(Color_t cindex)

void SetMarkerSize(Float_t markersize)

void SetMarkerStyle(Style_t markerstyle)

void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)

void SetTextAlign(Short_t talign)

void SetTextColor(Color_t cindex)

Int_t SetTextFont(char *fontname, ETextSetMode mode)

void SetTextFont(Font_t fontnumber)

void SetTextMagnitude(Float_t mgn)

void SetTextSize(Float_t textsize)

Int_t GetDoubleBuffer(Int_t id)

void GetPlanes(Int_t &nplanes)

void GetRGB(Int_t id, Float_t &r, Float_t &g, Float_t &b)

void GetTextExtent(UInt_t &w, UInt_t &h, char *text)

Float_t GetTextMagnitude()

Int_t InitWindow(ULong_t id)

void QueryPointer(Int_t &ix, Int_t &iy)

void ReadGIF(Int_t , Int_t , const char *)

void CopyPixmap(Int_t id, Int_t x, Int_t y)

void GetCharacterUp(Float_t &chupx, Float_t &chupy)

Bool_t Init(void *)

void CreateOpenGLContext(Int_t id)

void DeleteOpenGLContext(Int_t id)



Inline Functions


        TGXW::EDrawMode GetDrawMode()
            const char* DisplayName(char* = 0)
               Window_t GetPrimarySelectionOwner()
                TClass* Class()
                TClass* IsA()
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
              TGXClient TGXClient(TGXClient&)


Author: Rene Brun 23/02/98
Last update: 2.00/12 05/10/98 23.57.17 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.