ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
TGWin32 Class Reference

This class is the basic interface to the Win32 graphics system.

It is an implementation of the abstract TVirtualX class.

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

Definition at line 80 of file TGWin32.h.

Public Member Functions

 TGWin32 ()
 
 TGWin32 (const char *name, const char *title)
 Normal Constructor. More...
 
virtual ~TGWin32 ()
 destructor. More...
 
void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
 Draw text using TrueType fonts. More...
 
void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text, ETextMode mode)
 Draw text using TrueType fonts. More...
 
void SetTextFont (Font_t fontnumber)
 Set specified font. More...
 
Int_t SetTextFont (char *fontname, ETextSetMode mode)
 Set text font to specified name. More...
 
void SetTextSize (Float_t textsize)
 Set current text size. More...
 
Bool_t Init (void *display=0)
 Initialize Win32 system. Returns kFALSE in case of failure. More...
 
void ClearWindow ()
 Clear current window. More...
 
void ClosePixmap ()
 Delete current pixmap. More...
 
void CloseWindow ()
 Delete current window. More...
 
void CopyPixmap (Int_t wid, Int_t xpos, Int_t ypos)
 Copy the pixmap wid at the position xpos, ypos in the current window. More...
 
void DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
 Draw a box. More...
 
void DrawCellArray (Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
 Draw a cell array. More...
 
void DrawFillArea (Int_t n, TPoint *xy)
 Fill area described by polygon. More...
 
void DrawLine (Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line. More...
 
void DrawPolyLine (Int_t n, TPoint *xy)
 Draw a line through all points. More...
 
void DrawPolyMarker (Int_t n, TPoint *xy)
 Draw n markers with the current attributes at position x, y. More...
 
void GetCharacterUp (Float_t &chupx, Float_t &chupy)
 Return character up vector. More...
 
Int_t GetDoubleBuffer (Int_t wid)
 Query the double buffer value for the window wid. More...
 
void GetGeometry (Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Return position and size of window wid. More...
 
const char * DisplayName (const char *dpyName=0)
 Return hostname on which the display is opened. More...
 
ULong_t GetPixel (Color_t cindex)
 Return pixel value associated to specified ROOT color number. More...
 
void GetPlanes (Int_t &nplanes)
 Get maximum number of planes. More...
 
void GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b)
 Get rgb values for color "index". More...
 
virtual void GetTextExtent (UInt_t &w, UInt_t &h, char *mess)
 Return the size of a character string. More...
 
virtual void GetTextExtent (UInt_t &, UInt_t &, wchar_t *)
 Returns the size of the specified character string "mess". More...
 
Float_t GetTextMagnitude ()
 Returns the current font magnification factor. More...
 
Window_t GetWindowID (Int_t wid)
 Return the X11 window identifier. More...
 
Bool_t HasTTFonts () const
 Returns True when TrueType fonts are used. More...
 
Int_t InitWindow (ULong_t window)
 Open window and return window number. More...
 
Int_t AddPixmap (ULong_t pix, UInt_t w, UInt_t h)
 register pixmap created by TGWin32GLManager More...
 
void MoveWindow (Int_t wid, Int_t x, Int_t y)
 Move the window wid. More...
 
Int_t OpenPixmap (UInt_t w, UInt_t h)
 Open a new pixmap. More...
 
void QueryPointer (Int_t &ix, Int_t &iy)
 Query pointer position. More...
 
Pixmap_t ReadGIF (Int_t x0, Int_t y0, const char *file, Window_t id=0)
 If id is NULL - loads the specified gif file at position [x0,y0] in the current window. More...
 
Int_t RequestLocator (Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
 Request Locator position. More...
 
Int_t RequestString (Int_t x, Int_t y, char *text)
 Request a string. More...
 
void RescaleWindow (Int_t wid, UInt_t w, UInt_t h)
 Rescale the window wid. More...
 
Int_t ResizePixmap (Int_t wid, UInt_t w, UInt_t h)
 Resize a pixmap. More...
 
void ResizeWindow (Int_t wid)
 Resize the current window if necessary. More...
 
void SelectWindow (Int_t wid)
 Select window to which subsequent output is directed. More...
 
void SetCharacterUp (Float_t chupx, Float_t chupy)
 Set character up vector. More...
 
void SetClipOFF (Int_t wid)
 Turn off the clipping for the window wid. More...
 
void SetClipRegion (Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Set clipping region for the window wid. More...
 
void SetCursor (Int_t win, ECursor cursor)
 Set the cursor. More...
 
void SetDoubleBuffer (Int_t wid, Int_t mode)
 Set the double buffer on/off on window wid. More...
 
void SetDoubleBufferOFF ()
 Turn double buffer mode off. More...
 
void SetDoubleBufferON ()
 Turn double buffer mode on. More...
 
void SetDrawMode (EDrawMode mode)
 Set the drawing mode. More...
 
void SetFillColor (Color_t cindex)
 Set color index for fill areas. More...
 
void SetFillStyle (Style_t style)
 Set fill area style. More...
 
void SetLineColor (Color_t cindex)
 Set color index for lines. More...
 
void SetLineType (Int_t n, Int_t *dash)
 Set line type. More...
 
void SetLineStyle (Style_t linestyle)
 Set line style. More...
 
void SetLineWidth (Width_t width)
 Set line width. More...
 
void SetMarkerColor (Color_t cindex)
 Set color index for markers. More...
 
void SetMarkerSize (Float_t markersize)
 Set marker size index. More...
 
void SetMarkerStyle (Style_t markerstyle)
 Set marker style. More...
 
void SetOpacity (Int_t percent)
 Set opacity of a window. More...
 
void SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b)
 Set color intensities for given color index. More...
 
void SetTextAlign (Short_t talign=11)
 Set text alignment. More...
 
void SetTextColor (Color_t cindex)
 Set color index for text. More...
 
void SetTextMagnitude (Float_t mgn=1)
 Sets the current text magnification factor to "mgn". More...
 
void Sync (Int_t mode)
 Set synchronisation on or off. More...
 
void UpdateWindow (Int_t mode)
 Update display. More...
 
void Warp (Int_t ix, Int_t iy, Window_t id=0)
 Set pointer position. More...
 
Int_t WriteGIF (char *name)
 Writes the current window into GIF file. More...
 
void WritePixmap (Int_t wid, UInt_t w, UInt_t h, char *pxname)
 Write the pixmap wid in the bitmap file pxname. More...
 
Window_t GetCurrentWindow () const
 Return current window pointer. Protected method used by TGWin32TTF. More...
 
void GetWindowAttributes (Window_t id, WindowAttributes_t &attr)
 Get window attributes and return filled in attributes structure. More...
 
void MapWindow (Window_t id)
 Map window on screen. More...
 
void MapSubwindows (Window_t id)
 Maps all subwindows for the specified window "id" in top-to-bottom stacking order. More...
 
void MapRaised (Window_t id)
 Map window on screen and put on top of all windows. More...
 
void UnmapWindow (Window_t id)
 Unmap window from screen. More...
 
void DestroyWindow (Window_t id)
 Destroy window. More...
 
void DestroySubwindows (Window_t id)
 Destroy all internal subwindows. More...
 
void RaiseWindow (Window_t id)
 Put window on top of window stack. More...
 
void LowerWindow (Window_t id)
 Lower window so it lays below all its siblings. More...
 
void MoveWindow (Window_t id, Int_t x, Int_t y)
 Move a window. More...
 
void MoveResizeWindow (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Move and resize a window. More...
 
void ResizeWindow (Window_t id, UInt_t w, UInt_t h)
 Resize the window. More...
 
void IconifyWindow (Window_t id)
 Iconify the window. More...
 
void ReparentWindow (Window_t id, Window_t pid, Int_t x, Int_t y)
 Reparent window, make pid the new parent and position the window at position (x,y) in new parent. More...
 
void SetWindowBackground (Window_t id, ULong_t color)
 Set the window background color. More...
 
void SetWindowBackgroundPixmap (Window_t id, Pixmap_t pxm)
 Set pixmap as window background. More...
 
Window_t CreateWindow (Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype)
 Return handle to newly created gdk window. More...
 
Int_t OpenDisplay (const char *dpyName=0)
 Open the display. Return -1 if the opening fails, 0 when ok. More...
 
void CloseDisplay ()
 close display (terminate server/gMainThread thread) More...
 
Display_t GetDisplay () const
 Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
Visual_t GetVisual () const
 Returns handle to visual. More...
 
Int_t GetScreen () const
 Returns screen number. More...
 
Int_t GetDepth () const
 Get maximum number of planes. More...
 
Colormap_t GetColormap () const
 Returns handle to colormap. More...
 
Atom_t InternAtom (const char *atom_name, Bool_t only_if_exist)
 Return atom handle for atom_name. More...
 
Window_t GetDefaultRootWindow () const
 Return handle to the default root window created when calling XOpenDisplay(). More...
 
Window_t GetParent (Window_t id) const
 Return the parent of the window. More...
 
FontStruct_t LoadQueryFont (const char *font_name)
 Load font and query font. More...
 
FontH_t GetFontHandle (FontStruct_t fs)
 Return handle to font described by font structure. More...
 
void DeleteFont (FontStruct_t fs)
 Explicitely delete font structure obtained with LoadQueryFont(). More...
 
GContext_t CreateGC (Drawable_t id, GCValues_t *gval)
 Create a graphics context using the values set in gval (but only for those entries that are in the mask). More...
 
void ChangeGC (GContext_t gc, GCValues_t *gval)
 Change entries in an existing graphics context, gc, by values from gval. More...
 
void CopyGC (GContext_t org, GContext_t dest, Mask_t mask)
 Copies graphics context from org to dest. More...
 
void DeleteGC (GContext_t gc)
 Explicitely delete a graphics context. More...
 
Cursor_t CreateCursor (ECursor cursor)
 Create cursor handle (just return cursor from cursor pool fCursors). More...
 
void SetCursor (Window_t id, Cursor_t curid)
 Set the specified cursor. More...
 
Pixmap_t CreatePixmap (Drawable_t id, UInt_t w, UInt_t h)
 Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it. More...
 
Pixmap_t CreatePixmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
 Create a pixmap from bitmap data. More...
 
Pixmap_t CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height)
 create an image from RGB data. More...
 
Pixmap_t CreateBitmap (Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
 Create a bitmap (i.e. pixmap with depth 1) from the bitmap data. More...
 
void DeletePixmap (Pixmap_t pmap)
 Explicitely delete pixmap resource. More...
 
Bool_t CreatePictureFromFile (Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Create a picture pixmap from data on file. More...
 
Bool_t CreatePictureFromData (Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Create a pixture pixmap from data. More...
 
Bool_t ReadPictureDataFromFile (const char *filename, char ***ret_data)
 Read picture data from file and store in ret_data. More...
 
void DeletePictureData (void *data)
 Delete picture data created by the function ReadPictureDataFromFile. More...
 
void SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
 Specify a dash pattertn. More...
 
Bool_t ParseColor (Colormap_t cmap, const char *cname, ColorStruct_t &color)
 Parse string cname containing color name, like "green" or "#00FF00". More...
 
Bool_t AllocColor (Colormap_t cmap, ColorStruct_t &color)
 Find and allocate a color cell according to the color values specified in the ColorStruct_t. More...
 
void QueryColor (Colormap_t cmap, ColorStruct_t &color)
 Fill in the primary color components for a specific pixel value. More...
 
void FreeColor (Colormap_t cmap, ULong_t pixel)
 Free color cell with specified pixel value. More...
 
Int_t EventsPending ()
 Returns number of pending events. More...
 
void NextEvent (Event_t &event)
 Copies first pending event from event queue to Event_t structure and removes event from queue. More...
 
void Bell (Int_t percent)
 Sets the sound bell. Percent is loudness from -100% to 100%. More...
 
void CopyArea (Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y)
 Copy a drawable (i.e. More...
 
void ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr)
 Change window attributes. More...
 
void ChangeProperty (Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
 This function alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. More...
 
void DrawLine (Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line. More...
 
void ClearArea (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Clear a window area to the bakcground color. More...
 
Bool_t CheckEvent (Window_t id, EGEventType type, Event_t &ev)
 Check if there is for window "id" an event of type "type". More...
 
void SendEvent (Window_t id, Event_t *ev)
 Send event ev to window id. More...
 
void WMDeleteNotify (Window_t id)
 Tell WM to send message when window is closed via WM. More...
 
void SetKeyAutoRepeat (Bool_t on=kTRUE)
 Turn key auto repeat on or off. More...
 
void GrabKey (Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
 Establish passive grab on a certain key. More...
 
void GrabButton (Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
 Establish passive grab on a certain mouse button. More...
 
void GrabPointer (Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
 Establish an active pointer grab. More...
 
void SetWindowName (Window_t id, char *name)
 Set window name. More...
 
void SetIconName (Window_t id, char *name)
 Set window icon name. More...
 
void SetIconPixmap (Window_t id, Pixmap_t pic)
 Set pixmap the WM can use when the window is iconized. More...
 
void SetClassHints (Window_t id, char *className, char *resourceName)
 Set the windows class and resource name. More...
 
void SetMWMHints (Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
 Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?). More...
 
void SetWMPosition (Window_t id, Int_t x, Int_t y)
 Tells the window manager the desired position [x,y] of window "id". More...
 
void SetWMSize (Window_t id, UInt_t w, UInt_t h)
 Tells window manager the desired size of window "id". More...
 
void SetWMSizeHints (Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
 Give the window manager minimum and maximum size hints. More...
 
void SetWMState (Window_t id, EInitialState state)
 Set the initial state of the window. Either kNormalState or kIconicState. More...
 
void SetWMTransientHint (Window_t id, Window_t main_id)
 Tell window manager that window is a transient window of gdk_parent_root. More...
 
void DrawString (Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
 Draw a string using a specific graphics context in position (x,y). More...
 
Int_t TextWidth (FontStruct_t font, const char *s, Int_t len)
 Return length of string in pixels. Size depends on font. More...
 
void GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
 Return some font properties. More...
 
void GetGCValues (GContext_t gc, GCValues_t &gval)
 Get current values from graphics context gc. More...
 
FontStruct_t GetFontStruct (FontH_t fh)
 Retrieve associated font structure once we have the font handle. More...
 
void FreeFontStruct (FontStruct_t fs)
 Free font structure returned by GetFontStruct(). More...
 
void ClearWindow (Window_t id)
 Clear window. More...
 
Int_t KeysymToKeycode (UInt_t keysym)
 Convert a keysym to the appropriate keycode. More...
 
void FillRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw a filled rectangle. Filling is done according to the gc. More...
 
void DrawRectangle (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw a rectangle outline. More...
 
void DrawSegments (Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
 Draws multiple line segments. Each line is specified by a pair of points. More...
 
void SelectInput (Window_t id, UInt_t evmask)
 Defines which input events the window is interested in. More...
 
Window_t GetInputFocus ()
 Returns the window id of the window having the input focus. More...
 
void SetInputFocus (Window_t id)
 Set keyboard input focus to window id. More...
 
Window_t GetPrimarySelectionOwner ()
 Returns the window id of the current owner of the primary selection. More...
 
void SetPrimarySelectionOwner (Window_t id)
 Makes the window id the current owner of the primary selection. More...
 
void ConvertPrimarySelection (Window_t id, Atom_t clipboard, Time_t when)
 XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner. More...
 
void LookupString (Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
 Convert the keycode from the event structure to a key symbol (according to the modifiers specified in the event structure and the current keyboard mapping). More...
 
void GetPasteBuffer (Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
 Get contents of paste buffer atom into string. More...
 
void TranslateCoordinates (Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child)
 TranslateCoordinates translates coordinates from the frame of reference of one window to another. More...
 
void GetWindowSize (Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Return geometry of window (should be called GetGeometry but signature already used). More...
 
void FillPolygon (Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
 FillPolygon fills the region closed by the specified path. More...
 
void QueryPointer (Window_t id, Window_t &rootw, Window_t &childw, Int_t &root_x, Int_t &root_y, Int_t &win_x, Int_t &win_y, UInt_t &mask)
 Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin. More...
 
void SetForeground (GContext_t gc, ULong_t foreground)
 Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set). More...
 
void SetClipRectangles (GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
 Set clipping rectangles in graphics context. More...
 
void Update (Int_t mode=0)
 Flush (mode = 0, default) or synchronize (mode = 1) X output buffer. More...
 
Region_t CreateRegion ()
 Create a new empty region. More...
 
void DestroyRegion (Region_t reg)
 Destroy region. More...
 
void UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest)
 Union of rectangle with a region. More...
 
Region_t PolygonRegion (Point_t *points, Int_t np, Bool_t winding)
 Create region for the polygon defined by the points array. More...
 
void UnionRegion (Region_t rega, Region_t regb, Region_t result)
 Compute the union of rega and regb and return result region. More...
 
void IntersectRegion (Region_t rega, Region_t regb, Region_t result)
 Compute the intersection of rega and regb and return result region. More...
 
void SubtractRegion (Region_t rega, Region_t regb, Region_t result)
 Subtract rega from regb. More...
 
void XorRegion (Region_t rega, Region_t regb, Region_t result)
 Calculate the difference between the union and intersection of two regions. More...
 
Bool_t EmptyRegion (Region_t reg)
 Return true if the region is empty. More...
 
Bool_t PointInRegion (Int_t x, Int_t y, Region_t reg)
 Returns true if the point x,y is in the region. More...
 
Bool_t EqualRegion (Region_t rega, Region_t regb)
 Returns true if two regions are equal. More...
 
void GetRegionBox (Region_t reg, Rectangle_t *)
 Return smallest enclosing rectangle. More...
 
char ** ListFonts (const char *fontname, Int_t max, Int_t &count)
 Return list of font names matching "fontname". More...
 
void FreeFontNames (char **fontlist)
 Frees the specified the array of strings "fontlist". More...
 
Drawable_t CreateImage (UInt_t width, UInt_t height)
 Allocates the memory needed for an drawable. More...
 
void GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height)
 Returns the width and height of the image id. More...
 
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...
 
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...
 
void DeleteImage (Drawable_t img)
 Deallocates the memory associated with the image img. More...
 
unsigned char * GetColorBits (Drawable_t wid, Int_t x, Int_t y, UInt_t width, UInt_t height)
 Gets DIB bits x, y, width, height - position of bitmap returns a pointer on bitmap bits array in format: b1, g1, r1, 0, b2, g2, r2, 0 ... More...
 
Int_t AddWindow (ULong_t qwid, UInt_t w, UInt_t h)
 Register a window created by Qt as a ROOT window (like InitWindow()). More...
 
void RemoveWindow (ULong_t qwid)
 Remove a window created by Qt (like CloseWindow1()). More...
 
void ShapeCombineMask (Window_t id, Int_t x, Int_t y, Pixmap_t mask)
 The Nonrectangular Window Shape Extension adds nonrectangular windows to the System. More...
 
UInt_t ScreenWidthMM () const
 Returns the width of the screen in millimeters. More...
 
void DeleteProperty (Window_t, Atom_t &)
 Deletes the specified property on the specified window. More...
 
Int_t GetProperty (Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t *, Int_t *, ULong_t *, ULong_t *, unsigned char **)
 Returns the actual type of the property, the actual format of the property, and a pointer to the data actually returned. More...
 
void ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t)
 Changes the active cursor of the specified window. More...
 
void ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
 Get Clipboard data. More...
 
Bool_t SetSelectionOwner (Window_t, Atom_t &)
 Assigns owner of Clipboard. More...
 
void ChangeProperties (Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
 Put data into Clipboard. More...
 
void SetDNDAware (Window_t win, Atom_t *typelist)
 Add XdndAware property and the list of drag and drop types to the Window win. More...
 
void SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist)
 Add the list of drag and drop types to the Window win. More...
 
Window_t FindRWindow (Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
 Recursively search in the children of Window for a Window which is at location x, y and is DND aware, with a maximum depth of maxd. More...
 
Bool_t IsDNDAware (Window_t win, Atom_t *typelist)
 Checks if Window win is DND aware, and knows any of the DND formats passed in argument. More...
 
Bool_t GUIThreadMessageFunc (MSG *msg)
 Message processing function for the GUI thread. More...
 
Bool_t IsCmdThread () const
 returns kTRUE if we are inside cmd/server thread More...
 
void SetUserThreadId (ULong_t id)
 Set user thread id. More...
 
- Public Member Functions inherited from TVirtualX
 TVirtualX ()
 
 TVirtualX (const char *name, const char *title)
 
virtual ~TVirtualX ()
 
virtual void CreateOpenGLContext (Int_t wid=0)
 Creates OpenGL context for window "wid". More...
 
virtual void DeleteOpenGLContext (Int_t wid=0)
 Deletes OpenGL context for window "wid". More...
 
virtual Double_t GetOpenGLScalingFactor ()
 On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height. More...
 
virtual Window_t CreateOpenGLWindow (Window_t parentID, UInt_t width, UInt_t height, const std::vector< std::pair< UInt_t, Int_t > > &format)
 Create window with special pixel format. Noop everywhere except Cocoa. More...
 
virtual Handle_t CreateOpenGLContext (Window_t windowID, Handle_t sharedContext)
 Creates OpenGL context for window "windowID". More...
 
virtual Bool_t MakeOpenGLContextCurrent (Handle_t ctx, Window_t windowID)
 Makes context ctx current OpenGL context. More...
 
virtual Handle_t GetCurrentOpenGLContext ()
 Asks OpenGL subsystem about the current OpenGL context. More...
 
virtual void FlushOpenGLBuffer (Handle_t ctx)
 Flushes OpenGL buffer. More...
 
virtual UInt_t ExecCommand (TGWin32Command *code)
 Executes the command "code" coming from the other threads (Win32) More...
 
EDrawMode GetDrawMode ()
 
virtual Handle_t GetNativeEvent () const
 Returns the current native event handle. 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 void SelectPixmap (Int_t qpixid)
 Selects the pixmap "qpixid". 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 Bool_t NeedRedraw (ULong_t tgwindow, Bool_t force)
 Notify the low level GUI layer ROOT requires "tgwindow" to be updated. More...
 
virtual void DispatchClientMessage (UInt_t messageID)
 Force processing of event, sent by SendEvent before. More...
 
virtual FontStruct_t GetGCFont (GContext_t gc)
 Return the font associated with the graphics context gc. More...
 
virtual void BeginModalSessionFor (Window_t window)
 Start a modal session for a dialog window. More...
 
virtual 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)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void 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...
 
TObjectoperator= (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 TObjectDrawClone (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 TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () 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...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator 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 void Lock ()
 
static void Unlock ()
 
- Static Public Member Functions inherited from TVirtualX
static TVirtualX *& Instance ()
 Returns gVirtualX global. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Member Functions

void UpdateFillColor ()
 
void UpdateFillStyle ()
 Set fill area style index. More...
 
void UpdateLineColor ()
 
void UpdateMarkerStyle ()
 
void UpdateMarkerColor ()
 
void UpdateLineStyle ()
 Update line style. More...
 
Bool_t AllocColor (GdkColormap *cmap, GdkColor *color)
 Allocate color in colormap. More...
 
void QueryColors (GdkColormap *cmap, GdkColor *colors, Int_t ncolors)
 Returns the current RGB value for the pixel in the XColor structure. More...
 
GdkGC * GetGC (Int_t which) const
 Return desired Graphics Context ("which" maps directly on gGCList[]). More...
 
XColor_tGetColor (Int_t cid)
 Return reference to internal color structure associated to color index cid. More...
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

Protected Attributes

GdkVisual * fVisual
 
GdkColormap * fColormap
 
Int_t fScreenNumber
 
Bool_t fHasTTFonts
 
Bool_t fUseSysPointers
 
Int_t fTextAlignH
 
Int_t fTextAlignV
 
Int_t fTextAlign
 
Float_t fCharacterUpX
 
Float_t fCharacterUpY
 
Float_t fTextMagnitude
 
Int_t fDepth
 
Int_t fRedDiv
 
Int_t fGreenDiv
 
Int_t fBlueDiv
 
Int_t fRedShift
 
Int_t fGreenShift
 
Int_t fBlueShift
 
Handle_t fXEvent
 
TObjectfRefreshTimer
 
Bool_t fFillColorModified
 
Bool_t fFillStyleModified
 
Bool_t fLineColorModified
 
Bool_t fPenModified
 
Bool_t fMarkerStyleModified
 
Bool_t fMarkerColorModified
 
- Protected Attributes inherited from TVirtualX
EDrawMode fDrawMode
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 
Style_t fLineStyle
 
Width_t fLineWidth
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 
Style_t fFillStyle
 
- Protected Attributes inherited from TAttText
Float_t fTextAngle
 
Float_t fTextSize
 
Short_t fTextAlign
 
Color_t fTextColor
 
Font_t fTextFont
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 
Style_t fMarkerStyle
 
Size_t fMarkerSize
 

Private Types

enum  EAlign {
  kNone, kTLeft, kTCenter, kTRight,
  kMLeft, kMCenter, kMRight, kBLeft,
  kBCenter, kBRight
}
 

Private Member Functions

void Align (void)
 Compute alignment variables. More...
 
void DrawImage (FT_Bitmap *source, ULong_t fore, ULong_t back, GdkImage *xim, Int_t bx, Int_t by)
 Draw FT_Bitmap bitmap to xim image at position bx,by using specified foreground color. More...
 
Bool_t IsVisible (Int_t x, Int_t y, UInt_t w, UInt_t h)
 Test if there is really something to render. More...
 
GdkImage * GetBackground (Int_t x, Int_t y, UInt_t w, UInt_t h)
 Get the background of the current window in an XImage. More...
 
void RenderString (Int_t x, Int_t y, ETextMode mode)
 Perform the string rendering in the pad. More...
 
void CloseWindow1 ()
 Delete current window. More...
 
void PutImage (Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t *image, Drawable_t id)
 Draw image. More...
 
void RemovePixmap (GdkDrawable *pix)
 Remove the pixmap pix. More...
 
void SetColor (GdkGC *gc, Int_t ci)
 Set the foreground color in GdkGC. More...
 
void SetInput (Int_t inp)
 Set input on or off. More...
 
void SetMarkerType (Int_t type, Int_t n, GdkPoint *xy)
 Set marker type. More...
 
void MakeOpaqueColors (Int_t percent, ULong_t *orgcolors, Int_t ncolors)
 Get RGB values for orgcolors, add percent neutral to the RGB and allocate new_colors. More...
 
Int_t FindColor (ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
 Returns index in orgcolors (and new_colors) for pixel. More...
 
void ImgPickPalette (GdkImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B)
 Returns in R G B the ncol colors of the palette used by the image. More...
 
void MapGCValues (GCValues_t &gval, ULong_t &xmask, GdkGCValues &xgval, Bool_t tox=kTRUE)
 Map a GCValues_t to a XCGValues structure if tox is true. More...
 
void MapSetWindowAttributes (SetWindowAttributes_t *attr, ULong_t &xmask, GdkWindowAttr &xattr)
 Map a SetWindowAttributes_t to a GdkWindowAttr structure. More...
 
void MapCursor (ECursor cursor, Int_t &xcursor)
 
void MapColorStruct (ColorStruct_t *color, GdkColor &xcolor)
 Map a ColorStruct_t to a XColor structure. More...
 
void MapModifierState (UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
 Map modifier key state to or from X. More...
 
void MapEvent (Event_t &ev, GdkEvent &xev, Bool_t tox=kTRUE)
 Map Event_t structure to gdk_event structure. More...
 
void MapEventMask (UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
 Map event mask to or from gdk. More...
 
void MapKeySym (UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
 Map to and from X key symbols. More...
 

Private Attributes

FT_Vector fAlign
 
Int_t fMaxNumberOfWindows
 
XWindow_t * fWindows
 
TExMapfColors
 
GdkCursor * fCursors [kNumCursors]
 

Additional Inherited Members

- Public Types inherited from TVirtualX
enum  EDrawMode { kCopy = 1, kXor, kInvert }
 
enum  EBoxMode { kHollow, kFilled }
 
enum  ETextMode { kClear, kOpaque }
 
enum  ETextSetMode { kCheck, kLoad }
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 

#include <TGWin32.h>

Inheritance diagram for TGWin32:
[legend]

Member Enumeration Documentation

enum TGWin32::EAlign
private
Enumerator
kNone 
kTLeft 
kTCenter 
kTRight 
kMLeft 
kMCenter 
kMRight 
kBLeft 
kBCenter 
kBRight 

Definition at line 83 of file TGWin32.h.

Constructor & Destructor Documentation

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

Normal Constructor.

Definition at line 767 of file TGWin32.cxx.

TGWin32::~TGWin32 ( )
virtual

destructor.

Definition at line 817 of file TGWin32.cxx.

Member Function Documentation

Int_t TGWin32::AddPixmap ( ULong_t  pix,
UInt_t  w,
UInt_t  h 
)
virtual

register pixmap created by TGWin32GLManager

Reimplemented from TVirtualX.

Definition at line 7186 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 7229 of file TGWin32.cxx.

void TGWin32::Align ( void  )
private

Compute alignment variables.

The alignment is done on the horizontal string then the rotation is applied on the alignment variables. SetRotation and LayoutGlyphs should have been called before.

Definition at line 1207 of file TGWin32.cxx.

Referenced by DrawText().

Bool_t TGWin32::AllocColor ( GdkColormap *  cmap,
GdkColor *  color 
)
protected

Allocate color in colormap.

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

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

Definition at line 1163 of file TGWin32.cxx.

Referenced by DrawImage().

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

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

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

Reimplemented from TVirtualX.

Definition at line 5502 of file TGWin32.cxx.

void TGWin32::Bell ( Int_t  percent)
virtual

Sets the sound bell. Percent is loudness from -100% to 100%.

Reimplemented from TVirtualX.

Definition at line 6057 of file TGWin32.cxx.

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

Changes the active cursor of the specified window.

Reimplemented from TVirtualX.

Definition at line 7394 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 5194 of file TGWin32.cxx.

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

Put data into Clipboard.

Reimplemented from TVirtualX.

Definition at line 7448 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6125 of file TGWin32.cxx.

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

Change window attributes.

Reimplemented from TVirtualX.

Definition at line 6080 of file TGWin32.cxx.

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

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

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

Reimplemented from TVirtualX.

Definition at line 5550 of file TGWin32.cxx.

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

Clear a window area to the bakcground color.

Reimplemented from TVirtualX.

Definition at line 6148 of file TGWin32.cxx.

void TGWin32::ClearWindow ( )
virtual

Clear current window.

Reimplemented from TVirtualX.

Definition at line 1573 of file TGWin32.cxx.

void TGWin32::ClearWindow ( Window_t  id)
virtual

Clear window.

Reimplemented from TVirtualX.

Definition at line 6478 of file TGWin32.cxx.

void TGWin32::CloseDisplay ( )
virtual

close display (terminate server/gMainThread thread)

Reimplemented from TVirtualX.

Definition at line 900 of file TGWin32.cxx.

Referenced by ~TGWin32().

void TGWin32::ClosePixmap ( )
virtual

Delete current pixmap.

Reimplemented from TVirtualX.

Definition at line 1592 of file TGWin32.cxx.

void TGWin32::CloseWindow ( )
virtual

Delete current window.

Reimplemented from TVirtualX.

Definition at line 1600 of file TGWin32.cxx.

Referenced by IconifyWindow().

void TGWin32::CloseWindow1 ( )
private

Delete current window.

Definition at line 1608 of file TGWin32.cxx.

Referenced by ClosePixmap(), and CloseWindow().

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

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

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

Reimplemented from TVirtualX.

Definition at line 6596 of file TGWin32.cxx.

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

Get Clipboard data.

Reimplemented from TVirtualX.

Definition at line 7407 of file TGWin32.cxx.

void TGWin32::CopyArea ( Drawable_t  src,
Drawable_t  dest,
GContext_t  gc,
Int_t  src_x,
Int_t  src_y,
UInt_t  width,
UInt_t  height,
Int_t  dest_x,
Int_t  dest_y 
)
virtual

Copy a drawable (i.e.

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

Reimplemented from TVirtualX.

Definition at line 6067 of file TGWin32.cxx.

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

Copies graphics context from org to dest.

Only the values specified in mask are copied. Both org and dest must exist.

Reimplemented from TVirtualX.

Definition at line 5260 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 1647 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 5335 of file TGWin32.cxx.

Cursor_t TGWin32::CreateCursor ( ECursor  cursor)
virtual

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

Reimplemented from TVirtualX.

Definition at line 5288 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 5175 of file TGWin32.cxx.

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

Allocates the memory needed for an drawable.

Parameters
[in]widththe width of the image, in pixels
[in]heightthe height of the image, in pixels

Reimplemented from TVirtualX.

Definition at line 7013 of file TGWin32.cxx.

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

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.

Reimplemented from TVirtualX.

Definition at line 5393 of file TGWin32.cxx.

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

Create a picture pixmap from data on file.

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

Reimplemented from TVirtualX.

Definition at line 5359 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 5297 of file TGWin32.cxx.

Referenced by ReadGIF().

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

Create a pixmap from bitmap data.

Ones will get foreground color and zeroes background color.

Reimplemented from TVirtualX.

Definition at line 5309 of file TGWin32.cxx.

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

create an image from RGB data.

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

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

Reimplemented from TVirtualX.

Definition at line 7150 of file TGWin32.cxx.

Region_t TGWin32::CreateRegion ( )
virtual

Create a new empty region.

Reimplemented from TVirtualX.

Definition at line 6869 of file TGWin32.cxx.

Window_t TGWin32::CreateWindow ( Window_t  parent,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h,
UInt_t  border,
Int_t  depth,
UInt_t  clss,
void visual,
SetWindowAttributes_t attr,
UInt_t  wtype 
)
virtual

Return handle to newly created gdk window.

Reimplemented from TVirtualX.

Definition at line 4554 of file TGWin32.cxx.

void TGWin32::DeleteFont ( FontStruct_t  fs)
virtual

Explicitely delete font structure obtained with LoadQueryFont().

Reimplemented from TVirtualX.

Definition at line 5166 of file TGWin32.cxx.

void TGWin32::DeleteGC ( GContext_t  gc)
virtual

Explicitely delete a graphics context.

Reimplemented from TVirtualX.

Definition at line 5280 of file TGWin32.cxx.

void TGWin32::DeleteImage ( Drawable_t  img)
virtual

Deallocates the memory associated with the image img.

Reimplemented from TVirtualX.

Definition at line 7074 of file TGWin32.cxx.

void TGWin32::DeletePictureData ( void data)
virtual

Delete picture data created by the function ReadPictureDataFromFile.

Reimplemented from TVirtualX.

Definition at line 5439 of file TGWin32.cxx.

void TGWin32::DeletePixmap ( Pixmap_t  pmap)
virtual

Explicitely delete pixmap resource.

Reimplemented from TVirtualX.

Definition at line 5349 of file TGWin32.cxx.

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

Deletes the specified property on the specified window.

Reimplemented from TVirtualX.

Definition at line 7332 of file TGWin32.cxx.

void TGWin32::DestroyRegion ( Region_t  reg)
virtual

Destroy region.

Reimplemented from TVirtualX.

Definition at line 6877 of file TGWin32.cxx.

void TGWin32::DestroySubwindows ( Window_t  id)
virtual

Destroy all internal subwindows.

Reimplemented from TVirtualX.

Definition at line 4431 of file TGWin32.cxx.

void TGWin32::DestroyWindow ( Window_t  id)
virtual

Destroy window.

Reimplemented from TVirtualX.

Definition at line 4418 of file TGWin32.cxx.

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

Return hostname on which the display is opened.

Reimplemented from TVirtualX.

Definition at line 2030 of file TGWin32.cxx.

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

Draw a box.

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

Reimplemented from TVirtualX.

Definition at line 1662 of file TGWin32.cxx.

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

Draw a cell array.

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

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

Reimplemented from TVirtualX.

Definition at line 1701 of file TGWin32.cxx.

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

Fill area described by polygon.

n : number of points xy(2,n) : list of points

Reimplemented from TVirtualX.

Definition at line 1737 of file TGWin32.cxx.

void TGWin32::DrawImage ( FT_Bitmap *  source,
ULong_t  fore,
ULong_t  back,
GdkImage *  xim,
Int_t  bx,
Int_t  by 
)
private

Draw FT_Bitmap bitmap to xim image at position bx,by using specified foreground color.

Definition at line 1237 of file TGWin32.cxx.

Referenced by RenderString().

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

Draw a line.

x1,y1 : begin of line x2,y2 : end of line

Reimplemented from TVirtualX.

Definition at line 1770 of file TGWin32.cxx.

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

Draw a line.

Reimplemented from TVirtualX.

Definition at line 6137 of file TGWin32.cxx.

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

Draw a line through all points.

n : number of points xy : list of points

Reimplemented from TVirtualX.

Definition at line 1798 of file TGWin32.cxx.

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

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

n : number of markers to draw xy : x,y coordinates of markers

Reimplemented from TVirtualX.

Definition at line 1854 of file TGWin32.cxx.

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

Draw a rectangle outline.

Reimplemented from TVirtualX.

Definition at line 6511 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6522 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6414 of file TGWin32.cxx.

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

Draw text using TrueType fonts.

If TrueType fonts are not available the text is drawn with TGWin32::DrawText.

Reimplemented from TVirtualX.

Definition at line 1357 of file TGWin32.cxx.

Referenced by RequestString().

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

Draw text using TrueType fonts.

If TrueType fonts are not available the text is drawn with TGWin32::DrawText.

Reimplemented from TVirtualX.

Definition at line 1372 of file TGWin32.cxx.

Bool_t TGWin32::EmptyRegion ( Region_t  reg)
virtual

Return true if the region is empty.

Reimplemented from TVirtualX.

Definition at line 6944 of file TGWin32.cxx.

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

Returns true if two regions are equal.

Reimplemented from TVirtualX.

Definition at line 6960 of file TGWin32.cxx.

Int_t TGWin32::EventsPending ( )
virtual

Returns number of pending events.

Reimplemented from TVirtualX.

Definition at line 5598 of file TGWin32.cxx.

Referenced by RequestString().

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

FillPolygon fills the region closed by the specified path.

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

Reimplemented from TVirtualX.

Definition at line 6750 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6500 of file TGWin32.cxx.

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

Returns index in orgcolors (and new_colors) for pixel.

Definition at line 3831 of file TGWin32.cxx.

Referenced by ImgPickPalette(), and SetOpacity().

Window_t TGWin32::FindRWindow ( Window_t  root,
Window_t  dragwin,
Window_t  input,
int  x,
int  y,
int  maxd 
)
virtual

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

Possibility to exclude dragwin and input.

Reimplemented from TVirtualX.

Definition at line 7485 of file TGWin32.cxx.

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

Free color cell with specified pixel value.

Reimplemented from TVirtualX.

Definition at line 5540 of file TGWin32.cxx.

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

Frees the specified the array of strings "fontlist".

Reimplemented from TVirtualX.

Definition at line 7005 of file TGWin32.cxx.

void TGWin32::FreeFontStruct ( FontStruct_t  fs)
virtual

Free font structure returned by GetFontStruct().

Reimplemented from TVirtualX.

Definition at line 6470 of file TGWin32.cxx.

GdkImage * TGWin32::GetBackground ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
private

Get the background of the current window in an XImage.

Definition at line 1386 of file TGWin32.cxx.

Referenced by RenderString().

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

Return character up vector.

Reimplemented from TVirtualX.

Definition at line 1932 of file TGWin32.cxx.

XColor_t & TGWin32::GetColor ( Int_t  cid)
protected

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

Definition at line 1942 of file TGWin32.cxx.

Referenced by ClearWindow(), DrawCellArray(), GetPixel(), GetRGB(), OpenDisplay(), RequestLocator(), SetColor(), SetRGB(), and SetTextColor().

unsigned char * TGWin32::GetColorBits ( Drawable_t  wid,
Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
)
virtual

Gets DIB bits x, y, width, height - position of bitmap returns a pointer on bitmap bits array in format: b1, g1, r1, 0, b2, g2, r2, 0 ...

bn, gn, rn, 0 ..

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

Reimplemented from TVirtualX.

Definition at line 7089 of file TGWin32.cxx.

Colormap_t TGWin32::GetColormap ( ) const
inlinevirtual

Returns handle to colormap.

Might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. GL interface.

Reimplemented from TVirtualX.

Definition at line 271 of file TGWin32.h.

Window_t TGWin32::GetCurrentWindow ( ) const
virtual

Return current window pointer. Protected method used by TGWin32TTF.

Reimplemented from TVirtualX.

Definition at line 1955 of file TGWin32.cxx.

Referenced by GetBackground(), IsVisible(), and RenderString().

Window_t TGWin32::GetDefaultRootWindow ( ) const
virtual

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

Reimplemented from TVirtualX.

Definition at line 5111 of file TGWin32.cxx.

Referenced by MapWindow().

Int_t TGWin32::GetDepth ( ) const
virtual

Get maximum number of planes.

Reimplemented from TVirtualX.

Definition at line 5089 of file TGWin32.cxx.

Display_t TGWin32::GetDisplay ( ) const
virtual

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

GL interface).

Reimplemented from TVirtualX.

Definition at line 5081 of file TGWin32.cxx.

Int_t TGWin32::GetDoubleBuffer ( Int_t  wid)
virtual

Query the double buffer value for the window wid.

Reimplemented from TVirtualX.

Definition at line 1977 of file TGWin32.cxx.

FontH_t TGWin32::GetFontHandle ( FontStruct_t  fs)
virtual

Return handle to font described by font structure.

Reimplemented from TVirtualX.

Definition at line 5155 of file TGWin32.cxx.

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

Return some font properties.

Reimplemented from TVirtualX.

Definition at line 6436 of file TGWin32.cxx.

FontStruct_t TGWin32::GetFontStruct ( FontH_t  fh)
virtual

Retrieve associated font structure once we have the font handle.

Free returned FontStruct_t using FreeFontStruct().

Reimplemented from TVirtualX.

Definition at line 6462 of file TGWin32.cxx.

GdkGC * TGWin32::GetGC ( Int_t  which) const
protected

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

Protected method used by TGWin32TTF.

Definition at line 1964 of file TGWin32.cxx.

Referenced by RenderString().

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

Get current values from graphics context gc.

Which values of the context to get is encoded in the GCValues::fMask member.

Reimplemented from TVirtualX.

Definition at line 6448 of file TGWin32.cxx.

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

Return position and size of window wid.

wid : window identifier x,y : window position (output) w,h : window size (output) if wid < 0 the size of the display is returned

Reimplemented from TVirtualX.

Definition at line 1997 of file TGWin32.cxx.

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

Returns the width and height of the image id.

Reimplemented from TVirtualX.

Definition at line 7022 of file TGWin32.cxx.

Window_t TGWin32::GetInputFocus ( )
virtual

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

Reimplemented from TVirtualX.

Definition at line 6548 of file TGWin32.cxx.

Window_t TGWin32::GetParent ( Window_t  id) const
virtual

Return the parent of the window.

Reimplemented from TVirtualX.

Definition at line 5119 of file TGWin32.cxx.

Referenced by IsDNDAware(), and MapWindow().

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

Get contents of paste buffer atom into string.

If del is true delete the paste buffer afterwards.

Reimplemented from TVirtualX.

Definition at line 6663 of file TGWin32.cxx.

ULong_t TGWin32::GetPixel ( Color_t  cindex)
virtual

Return pixel value associated to specified ROOT color number.

Reimplemented from TVirtualX.

Definition at line 2945 of file TGWin32.cxx.

Referenced by WriteGIF().

void TGWin32::GetPlanes ( Int_t nplanes)
virtual

Get maximum number of planes.

Reimplemented from TVirtualX.

Definition at line 2038 of file TGWin32.cxx.

Window_t TGWin32::GetPrimarySelectionOwner ( )
virtual

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

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

Reimplemented from TVirtualX.

Definition at line 6569 of file TGWin32.cxx.

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

Returns the actual type of the property, the actual format of the property, and a pointer to the data actually returned.

Reimplemented from TVirtualX.

Definition at line 7346 of file TGWin32.cxx.

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

Return smallest enclosing rectangle.

Reimplemented from TVirtualX.

Definition at line 6968 of file TGWin32.cxx.

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

Get rgb values for color "index".

Reimplemented from TVirtualX.

Definition at line 2046 of file TGWin32.cxx.

Int_t TGWin32::GetScreen ( ) const
inlinevirtual

Returns screen number.

Might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. GL interface.

Reimplemented from TVirtualX.

Definition at line 269 of file TGWin32.h.

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

Return the size of a character string.

iw : text width ih : text height mess : message

Reimplemented from TVirtualX.

Definition at line 2066 of file TGWin32.cxx.

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

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

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

Reimplemented from TVirtualX.

Definition at line 198 of file TGWin32.h.

Float_t TGWin32::GetTextMagnitude ( )
inlinevirtual

Returns the current font magnification factor.

Reimplemented from TVirtualX.

Definition at line 199 of file TGWin32.h.

Visual_t TGWin32::GetVisual ( ) const
inlinevirtual

Returns handle to visual.

Might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. GL interface.

Reimplemented from TVirtualX.

Definition at line 268 of file TGWin32.h.

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

Get window attributes and return filled in attributes structure.

Reimplemented from TVirtualX.

Definition at line 5040 of file TGWin32.cxx.

Window_t TGWin32::GetWindowID ( Int_t  wid)
virtual

Return the X11 window identifier.

wid : Workstation identifier (input)

Reimplemented from TVirtualX.

Definition at line 2077 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6726 of file TGWin32.cxx.

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

Establish passive grab on a certain mouse button.

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

Reimplemented from TVirtualX.

Definition at line 6207 of file TGWin32.cxx.

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

Establish passive grab on a certain key.

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

Reimplemented from TVirtualX.

Definition at line 6188 of file TGWin32.cxx.

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

Establish an active pointer grab.

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

Reimplemented from TVirtualX.

Definition at line 6232 of file TGWin32.cxx.

Bool_t TGWin32::GUIThreadMessageFunc ( MSG *  msg)

Message processing function for the GUI thread.

Kicks in once TGWin32 becomes active, and "replaces" the dummy one in TWinNTSystem; see TWinNTSystem.cxx's GUIThreadMessageProcessingLoop().

Definition at line 846 of file TGWin32.cxx.

Bool_t TGWin32::HasTTFonts ( ) const
inlinevirtual

Returns True when TrueType fonts are used.

Reimplemented from TVirtualX.

Definition at line 201 of file TGWin32.h.

void TGWin32::IconifyWindow ( Window_t  id)
virtual

Iconify the window.

Reimplemented from TVirtualX.

Definition at line 4506 of file TGWin32.cxx.

void TGWin32::ImgPickPalette ( GdkImage *  image,
Int_t ncol,
Int_t *&  R,
Int_t *&  G,
Int_t *&  B 
)
private

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

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

Definition at line 4073 of file TGWin32.cxx.

Referenced by WriteGIF().

Bool_t TGWin32::Init ( void display = 0)
virtual

Initialize Win32 system. Returns kFALSE in case of failure.

Reimplemented from TVirtualX.

Definition at line 962 of file TGWin32.cxx.

Referenced by OpenDisplay().

Int_t TGWin32::InitWindow ( ULong_t  win)
virtual

Open window and return window number.

Return -1 if window initialization fails.

Reimplemented from TVirtualX.

Definition at line 2162 of file TGWin32.cxx.

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

Return atom handle for atom_name.

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

Reimplemented from TVirtualX.

Definition at line 5099 of file TGWin32.cxx.

Referenced by FindRWindow(), GetProperty(), IsDNDAware(), and SetDNDAware().

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

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

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

Reimplemented from TVirtualX.

Definition at line 6918 of file TGWin32.cxx.

Bool_t TGWin32::IsCmdThread ( ) const
virtual

returns kTRUE if we are inside cmd/server thread

Reimplemented from TVirtualX.

Definition at line 887 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 7542 of file TGWin32.cxx.

Bool_t TGWin32::IsVisible ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
private

Test if there is really something to render.

Definition at line 1412 of file TGWin32.cxx.

Referenced by RenderString().

Int_t TGWin32::KeysymToKeycode ( UInt_t  keysym)
virtual

Convert a keysym to the appropriate keycode.

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

Reimplemented from TVirtualX.

Definition at line 6490 of file TGWin32.cxx.

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

Return list of font names matching "fontname".

Reimplemented from TVirtualX.

Definition at line 6981 of file TGWin32.cxx.

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

Load font and query font.

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

Reimplemented from TVirtualX.

Definition at line 5131 of file TGWin32.cxx.

void TGWin32::Lock ( )
static

Definition at line 946 of file TGWin32.cxx.

Referenced by TGWin32ProxyBase::Lock().

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

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

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

Reimplemented from TVirtualX.

Definition at line 6610 of file TGWin32.cxx.

void TGWin32::LowerWindow ( Window_t  id)
virtual

Lower window so it lays below all its siblings.

Reimplemented from TVirtualX.

Definition at line 4460 of file TGWin32.cxx.

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

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

Definition at line 3771 of file TGWin32.cxx.

Referenced by SetOpacity().

void TGWin32::MapColorStruct ( ColorStruct_t color,
GdkColor &  xcolor 
)
private

Map a ColorStruct_t to a XColor structure.

Definition at line 5467 of file TGWin32.cxx.

void TGWin32::MapCursor ( ECursor  cursor,
Int_t xcursor 
)
private
void TGWin32::MapEvent ( Event_t ev,
GdkEvent &  xev,
Bool_t  tox = kTRUE 
)
private

Map Event_t structure to gdk_event structure.

If tox is false map the other way.

Definition at line 5689 of file TGWin32.cxx.

Referenced by CheckEvent(), NextEvent(), and SendEvent().

void TGWin32::MapEventMask ( UInt_t emask,
UInt_t xemask,
Bool_t  tox = kTRUE 
)
private
void TGWin32::MapGCValues ( GCValues_t gval,
ULong_t xmask,
GdkGCValues &  xgval,
Bool_t  tox = kTRUE 
)
private

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

Map the other way in case tox is false.

Definition at line 4771 of file TGWin32.cxx.

Referenced by ChangeGC(), CopyGC(), CreateGC(), and GetGCValues().

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

Map to and from X key symbols.

Keysym are the values returned by XLookUpString.

Definition at line 6623 of file TGWin32.cxx.

Referenced by KeysymToKeycode(), and LookupString().

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

Map modifier key state to or from X.

Definition at line 5633 of file TGWin32.cxx.

Referenced by GrabButton(), GrabKey(), MapEvent(), and QueryPointer().

void TGWin32::MapRaised ( Window_t  id)
virtual

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

Reimplemented from TVirtualX.

Definition at line 4381 of file TGWin32.cxx.

void TGWin32::MapSetWindowAttributes ( SetWindowAttributes_t attr,
ULong_t xmask,
GdkWindowAttr &  xattr 
)
private

Map a SetWindowAttributes_t to a GdkWindowAttr structure.

Definition at line 4738 of file TGWin32.cxx.

Referenced by CreateWindow().

void TGWin32::MapSubwindows ( Window_t  id)
virtual

Maps all subwindows for the specified window "id" in top-to-bottom stacking order.

Reimplemented from TVirtualX.

Definition at line 4370 of file TGWin32.cxx.

void TGWin32::MapWindow ( Window_t  id)
virtual

Map window on screen.

Reimplemented from TVirtualX.

Definition at line 4355 of file TGWin32.cxx.

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

Move and resize a window.

Reimplemented from TVirtualX.

Definition at line 4482 of file TGWin32.cxx.

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

Move the window wid.

wid : GdkWindow identifier. x : x new window position y : y new window position

Reimplemented from TVirtualX.

Definition at line 2089 of file TGWin32.cxx.

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

Move a window.

Reimplemented from TVirtualX.

Definition at line 4472 of file TGWin32.cxx.

void TGWin32::NextEvent ( Event_t event)
virtual

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

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

Reimplemented from TVirtualX.

Definition at line 5614 of file TGWin32.cxx.

Int_t TGWin32::OpenDisplay ( const char *  dpyName = 0)
virtual

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

Reimplemented from TVirtualX.

Definition at line 979 of file TGWin32.cxx.

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

Open a new pixmap.

w,h : Width and height of the pixmap.

Reimplemented from TVirtualX.

Definition at line 2103 of file TGWin32.cxx.

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

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

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

Reimplemented from TVirtualX.

Definition at line 5482 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6952 of file TGWin32.cxx.

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

Create region for the polygon defined by the points array.

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

Reimplemented from TVirtualX.

Definition at line 6899 of file TGWin32.cxx.

void TGWin32::PutImage ( Int_t  offset,
Int_t  itran,
Int_t  x0,
Int_t  y0,
Int_t  nx,
Int_t  ny,
Int_t  xmin,
Int_t  ymin,
Int_t  xmax,
Int_t  ymax,
UChar_t image,
Drawable_t  id 
)
private

Draw image.

Definition at line 4198 of file TGWin32.cxx.

Referenced by ReadGIF().

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

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.

Parameters
[in]idthe drawable
[in]gcthe GC
[in]imgthe image you want combined with the rectangle
[in]dxthe offset in X from the left edge of the image
[in]dythe offset in Y from the top edge of the image
[in]x,ycoordinates, which are relative to the origin of the drawable and are the coordinates of the subimage
[in]w,hthe 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 from TVirtualX.

Definition at line 7061 of file TGWin32.cxx.

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

Overwrites the pixel in the image with the specified pixel value.

The image must contain the x and y coordinates.

Parameters
[in]idspecifies the image
[in]x,ycoordinates
[in]pixelthe new pixel value

Reimplemented from TVirtualX.

Definition at line 7031 of file TGWin32.cxx.

Referenced by DrawImage(), ImgPickPalette(), RenderString(), and SetOpacity().

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

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

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

Reimplemented from TVirtualX.

Definition at line 5522 of file TGWin32.cxx.

void TGWin32::QueryColors ( GdkColormap *  cmap,
GdkColor *  colors,
Int_t  ncolors 
)
protected

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

Definition at line 1180 of file TGWin32.cxx.

Referenced by DrawImage().

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

Query pointer position.

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

Reimplemented from TVirtualX.

Definition at line 2266 of file TGWin32.cxx.

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

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

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

Reimplemented from TVirtualX.

Definition at line 6767 of file TGWin32.cxx.

void TGWin32::RaiseWindow ( Window_t  id)
virtual

Put window on top of window stack.

Reimplemented from TVirtualX.

Definition at line 4441 of file TGWin32.cxx.

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

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

Otherwise creates pixmap from gif file

Reimplemented from TVirtualX.

Definition at line 4273 of file TGWin32.cxx.

Referenced by CreatePictureFromFile().

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

Read picture data from file and store in ret_data.

Returns kTRUE in case of success, kFALSE otherwise.

Reimplemented from TVirtualX.

Definition at line 5419 of file TGWin32.cxx.

void TGWin32::RemovePixmap ( GdkDrawable *  pix)
private

Remove the pixmap pix.

Definition at line 2280 of file TGWin32.cxx.

void TGWin32::RemoveWindow ( ULong_t  qwid)
virtual

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

Reimplemented from TVirtualX.

Definition at line 7277 of file TGWin32.cxx.

void TGWin32::RenderString ( Int_t  x,
Int_t  y,
ETextMode  mode 
)
private

Perform the string rendering in the pad.

LayoutGlyphs should have been called before.

Definition at line 1434 of file TGWin32.cxx.

Referenced by DrawText().

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

Reparent window, make pid the new parent and position the window at position (x,y) in new parent.

Reimplemented from TVirtualX.

Definition at line 4518 of file TGWin32.cxx.

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

Request Locator position.

x,y : cursor position at moment of button press (output) ctyp : cursor type (input) ctyp=1 tracking cross ctyp=2 cross-hair ctyp=3 rubber circle ctyp=4 rubber band ctyp=5 rubber rectangle

mode : input mode mode=0 request mode=1 sample

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

Reimplemented from TVirtualX.

Definition at line 2311 of file TGWin32.cxx.

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

Request a string.

x,y : position where text is displayed text : text displayed (input), edited text (output)

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

Reimplemented from TVirtualX.

Definition at line 2466 of file TGWin32.cxx.

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

Rescale the window wid.

wid : GdkWindow identifier w : Width h : Heigth

Reimplemented from TVirtualX.

Definition at line 2702 of file TGWin32.cxx.

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

Resize a pixmap.

wid : pixmap to be resized w,h : Width and height of the pixmap

Reimplemented from TVirtualX.

Definition at line 2743 of file TGWin32.cxx.

void TGWin32::ResizeWindow ( Int_t  wid)
virtual

Resize the current window if necessary.

Reimplemented from TVirtualX.

Definition at line 2791 of file TGWin32.cxx.

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

Resize the window.

Reimplemented from TVirtualX.

Definition at line 4493 of file TGWin32.cxx.

UInt_t TGWin32::ScreenWidthMM ( ) const
virtual

Returns the width of the screen in millimeters.

Reimplemented from TVirtualX.

Definition at line 7322 of file TGWin32.cxx.

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

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.

Reimplemented from TVirtualX.

Definition at line 6536 of file TGWin32.cxx.

void TGWin32::SelectWindow ( Int_t  wid)
virtual

Select window to which subsequent output is directed.

Reimplemented from TVirtualX.

Definition at line 2840 of file TGWin32.cxx.

Referenced by RemoveWindow().

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

Send event ev to window id.

Reimplemented from TVirtualX.

Definition at line 5584 of file TGWin32.cxx.

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

Set character up vector.

Reimplemented from TVirtualX.

Definition at line 2870 of file TGWin32.cxx.

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

Set the windows class and resource name.

Reimplemented from TVirtualX.

Definition at line 6284 of file TGWin32.cxx.

void TGWin32::SetClipOFF ( Int_t  wid)
virtual

Turn off the clipping for the window wid.

Reimplemented from TVirtualX.

Definition at line 2899 of file TGWin32.cxx.

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

Set clipping rectangles in graphics context.

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

Reimplemented from TVirtualX.

Definition at line 6837 of file TGWin32.cxx.

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

Set clipping region for the window wid.

wid : GdkWindow indentifier x,y : origin of clipping rectangle w,h : size of clipping rectangle;

Reimplemented from TVirtualX.

Definition at line 2917 of file TGWin32.cxx.

void TGWin32::SetColor ( GdkGC *  gc,
Int_t  ci 
)
private
void TGWin32::SetCursor ( Int_t  win,
ECursor  cursor 
)
virtual

Set the cursor.

Reimplemented from TVirtualX.

Definition at line 2999 of file TGWin32.cxx.

Referenced by GrabPointer().

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

Set the specified cursor.

Reimplemented from TVirtualX.

Definition at line 3010 of file TGWin32.cxx.

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

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.

Reimplemented from TVirtualX.

Definition at line 5449 of file TGWin32.cxx.

void TGWin32::SetDNDAware ( Window_t  id,
Atom_t typelist 
)
virtual

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

Reimplemented from TVirtualX.

Definition at line 7561 of file TGWin32.cxx.

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

Set the double buffer on/off on window wid.

wid : GdkWindow identifier. 999 means all the opened windows. mode : 1 double buffer is on 0 double buffer is off

Reimplemented from TVirtualX.

Definition at line 3031 of file TGWin32.cxx.

void TGWin32::SetDoubleBufferOFF ( )
virtual

Turn double buffer mode off.

Reimplemented from TVirtualX.

Definition at line 3067 of file TGWin32.cxx.

Referenced by SetDoubleBuffer().

void TGWin32::SetDoubleBufferON ( )
virtual

Turn double buffer mode on.

Reimplemented from TVirtualX.

Definition at line 3077 of file TGWin32.cxx.

Referenced by SetDoubleBuffer().

void TGWin32::SetDrawMode ( EDrawMode  mode)
virtual

Set the drawing mode.

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

Reimplemented from TVirtualX.

Definition at line 3106 of file TGWin32.cxx.

void TGWin32::SetFillColor ( Color_t  cindex)
virtual

Set color index for fill areas.

Reimplemented from TVirtualX.

Definition at line 3135 of file TGWin32.cxx.

void TGWin32::SetFillStyle ( Style_t  fstyle)
virtual

Set fill area style.

fstyle : compound fill area interior style fstyle = 1000*interiorstyle + styleindex

Reimplemented from TVirtualX.

Definition at line 3169 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6822 of file TGWin32.cxx.

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

Set window icon name.

Reimplemented from TVirtualX.

Definition at line 6262 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6272 of file TGWin32.cxx.

void TGWin32::SetInput ( Int_t  inp)
private

Set input on or off.

Definition at line 3225 of file TGWin32.cxx.

void TGWin32::SetInputFocus ( Window_t  id)
virtual

Set keyboard input focus to window id.

Reimplemented from TVirtualX.

Definition at line 6557 of file TGWin32.cxx.

Referenced by RequestString().

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

Turn key auto repeat on or off.

Reimplemented from TVirtualX.

Definition at line 6173 of file TGWin32.cxx.

void TGWin32::SetLineColor ( Color_t  cindex)
virtual

Set color index for lines.

Reimplemented from TVirtualX.

Definition at line 3233 of file TGWin32.cxx.

void TGWin32::SetLineStyle ( Style_t  linestyle)
virtual

Set line style.

Reimplemented from TVirtualX.

Definition at line 3290 of file TGWin32.cxx.

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

Set line type.

n : length of dash list dash(n) : dash segment lengths

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

Reimplemented from TVirtualX.

Definition at line 3261 of file TGWin32.cxx.

Referenced by UpdateLineStyle().

void TGWin32::SetLineWidth ( Width_t  width)
virtual

Set line width.

width : line width in pixels

Reimplemented from TVirtualX.

Definition at line 3337 of file TGWin32.cxx.

void TGWin32::SetMarkerColor ( Color_t  cindex)
virtual

Set color index for markers.

Reimplemented from TVirtualX.

Definition at line 3353 of file TGWin32.cxx.

void TGWin32::SetMarkerSize ( Float_t  msize)
virtual

Set marker size index.

msize : marker scale factor

Reimplemented from TVirtualX.

Definition at line 3373 of file TGWin32.cxx.

void TGWin32::SetMarkerStyle ( Style_t  markerstyle)
virtual

Set marker style.

Reimplemented from TVirtualX.

Definition at line 3409 of file TGWin32.cxx.

Referenced by SetMarkerSize().

void TGWin32::SetMarkerType ( Int_t  type,
Int_t  n,
GdkPoint *  xy 
)
private

Set marker type.

type : marker type n : length of marker description xy : list of points describing marker shape

if n == 0 marker is a single point if TYPE == 0 marker is hollow circle of diameter N if TYPE == 1 marker is filled circle of diameter N if TYPE == 2 marker is a hollow polygon describe by line XY if TYPE == 3 marker is a filled polygon describe by line XY if TYPE == 4 marker is described by segmented line XY e.g. TYPE=4,N=4,XY=(-3,0,3,0,0,-3,0,3) sets a plus shape of 7x7 pixels

Definition at line 3395 of file TGWin32.cxx.

Referenced by UpdateMarkerStyle().

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

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

Reimplemented from TVirtualX.

Definition at line 6323 of file TGWin32.cxx.

void TGWin32::SetOpacity ( Int_t  percent)
virtual

Set opacity of a window.

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

Reimplemented from TVirtualX.

Definition at line 3708 of file TGWin32.cxx.

void TGWin32::SetPrimarySelectionOwner ( Window_t  id)
virtual

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

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

Reimplemented from TVirtualX.

Definition at line 6578 of file TGWin32.cxx.

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

Set color intensities for given color index.

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

Reimplemented from TVirtualX.

Definition at line 3846 of file TGWin32.cxx.

Referenced by GetPixel(), ReadGIF(), and SetColor().

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

Assigns owner of Clipboard.

Reimplemented from TVirtualX.

Definition at line 7431 of file TGWin32.cxx.

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

Set text alignment.

txalh : horizontal text alignment txalv : vertical text alignment

Reimplemented from TVirtualX.

Definition at line 3883 of file TGWin32.cxx.

void TGWin32::SetTextColor ( Color_t  cindex)
virtual

Set color index for text.

Reimplemented from TVirtualX.

Definition at line 3943 of file TGWin32.cxx.

void TGWin32::SetTextFont ( Font_t  fontnumber)
virtual

Set specified font.

Reimplemented from TVirtualX.

Definition at line 1540 of file TGWin32.cxx.

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

Set text font to specified name.

mode : loading flag mode=0 : search if the font exist (kCheck) mode=1 : search the font and load it if it exists (kLoad) font : font name

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

Reimplemented from TVirtualX.

Definition at line 1556 of file TGWin32.cxx.

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

Sets the current text magnification factor to "mgn".

Reimplemented from TVirtualX.

Definition at line 235 of file TGWin32.h.

void TGWin32::SetTextSize ( Float_t  textsize)
virtual

Set current text size.

Reimplemented from TVirtualX.

Definition at line 1564 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 7473 of file TGWin32.cxx.

void TGWin32::SetUserThreadId ( ULong_t  id)

Set user thread id.

This is used when an extra thread is created to process events.

Definition at line 7589 of file TGWin32.cxx.

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

Set the window background color.

Reimplemented from TVirtualX.

Definition at line 4528 of file TGWin32.cxx.

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

Set pixmap as window background.

Reimplemented from TVirtualX.

Definition at line 4544 of file TGWin32.cxx.

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

Set window name.

Reimplemented from TVirtualX.

Definition at line 6252 of file TGWin32.cxx.

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

Tells the window manager the desired position [x,y] of window "id".

Reimplemented from TVirtualX.

Definition at line 6335 of file TGWin32.cxx.

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

Tells window manager the desired size of window "id".

Parameters
[in]idwindow identifier
[in]wthe width
[in]hthe height

Reimplemented from TVirtualX.

Definition at line 6345 of file TGWin32.cxx.

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

Give the window manager minimum and maximum size hints.

Also specify via winc and hinc the resize increments.

Reimplemented from TVirtualX.

Definition at line 6356 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6381 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6404 of file TGWin32.cxx.

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

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

This allows for making shaped (partially transparent) windows

Reimplemented from TVirtualX.

Definition at line 7314 of file TGWin32.cxx.

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

Subtract rega from regb.

Reimplemented from TVirtualX.

Definition at line 6927 of file TGWin32.cxx.

void TGWin32::Sync ( Int_t  mode)
virtual

Set synchronisation on or off.

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

Reimplemented from TVirtualX.

Definition at line 3959 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6428 of file TGWin32.cxx.

void TGWin32::TranslateCoordinates ( Window_t  src,
Window_t  dest,
Int_t  src_x,
Int_t  src_y,
Int_t dest_x,
Int_t dest_y,
Window_t child 
)
virtual

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

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

Reimplemented from TVirtualX.

Definition at line 6695 of file TGWin32.cxx.

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

Union of rectangle with a region.

Reimplemented from TVirtualX.

Definition at line 6885 of file TGWin32.cxx.

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

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

The output region may be the same result region.

Reimplemented from TVirtualX.

Definition at line 6909 of file TGWin32.cxx.

void TGWin32::Unlock ( )
static

Definition at line 954 of file TGWin32.cxx.

Referenced by TGWin32ProxyBase::Unlock().

void TGWin32::UnmapWindow ( Window_t  id)
virtual

Unmap window from screen.

Reimplemented from TVirtualX.

Definition at line 4408 of file TGWin32.cxx.

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

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

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

Reimplemented from TVirtualX.

Definition at line 6861 of file TGWin32.cxx.

Referenced by UpdateWindow().

void TGWin32::UpdateFillColor ( )
protected

Definition at line 3150 of file TGWin32.cxx.

Referenced by DrawBox(), DrawCellArray(), and DrawFillArea().

void TGWin32::UpdateFillStyle ( )
protected

Set fill area style index.

Definition at line 3180 of file TGWin32.cxx.

Referenced by DrawBox(), DrawCellArray(), and DrawFillArea().

void TGWin32::UpdateLineColor ( )
protected

Definition at line 3244 of file TGWin32.cxx.

Referenced by DrawBox(), DrawLine(), and DrawPolyLine().

void TGWin32::UpdateLineStyle ( )
protected

Update line style.

Definition at line 3301 of file TGWin32.cxx.

Referenced by DrawBox(), DrawLine(), and DrawPolyLine().

void TGWin32::UpdateMarkerColor ( )
protected

Definition at line 3363 of file TGWin32.cxx.

Referenced by DrawPolyMarker().

void TGWin32::UpdateMarkerStyle ( )
protected

Definition at line 3419 of file TGWin32.cxx.

Referenced by DrawPolyMarker().

void TGWin32::UpdateWindow ( Int_t  mode)
virtual

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.

Reimplemented from TVirtualX.

Definition at line 3972 of file TGWin32.cxx.

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

Set pointer position.

ix : New X coordinate of pointer iy : New Y coordinate of pointer Coordinates are relative to the origin of the window id or to the origin of the current window if id == 0.

Reimplemented from TVirtualX.

Definition at line 3988 of file TGWin32.cxx.

void TGWin32::WMDeleteNotify ( Window_t  id)
virtual

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

Reimplemented from TVirtualX.

Definition at line 6158 of file TGWin32.cxx.

Int_t TGWin32::WriteGIF ( char *  name)
virtual

Writes the current window into GIF file.

Reimplemented from TVirtualX.

Definition at line 4135 of file TGWin32.cxx.

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

Write the pixmap wid in the bitmap file pxname.

wid : Pixmap address w,h : Width and height of the pixmap. lenname : pixmap name length pxname : pixmap name

Reimplemented from TVirtualX.

Definition at line 4012 of file TGWin32.cxx.

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

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

Reimplemented from TVirtualX.

Definition at line 6936 of file TGWin32.cxx.

Member Data Documentation

FT_Vector TGWin32::fAlign
private

Definition at line 86 of file TGWin32.h.

Referenced by Align(), and RenderString().

Int_t TGWin32::fBlueDiv
protected

Definition at line 138 of file TGWin32.h.

Referenced by AllocColor(), and OpenDisplay().

Int_t TGWin32::fBlueShift
protected

Definition at line 141 of file TGWin32.h.

Referenced by AllocColor(), OpenDisplay(), and QueryColors().

Float_t TGWin32::fCharacterUpX
protected

Definition at line 132 of file TGWin32.h.

Referenced by GetCharacterUp(), SetCharacterUp(), and TGWin32().

Float_t TGWin32::fCharacterUpY
protected

Definition at line 133 of file TGWin32.h.

Referenced by GetCharacterUp(), SetCharacterUp(), and TGWin32().

GdkColormap* TGWin32::fColormap
protected
TExMap* TGWin32::fColors
private

Definition at line 97 of file TGWin32.h.

Referenced by GetColor(), TGWin32(), and ~TGWin32().

GdkCursor* TGWin32::fCursors[kNumCursors]
private
Int_t TGWin32::fDepth
protected

Definition at line 135 of file TGWin32.h.

Referenced by OpenDisplay(), and RenderString().

Bool_t TGWin32::fFillColorModified
protected

Definition at line 145 of file TGWin32.h.

Referenced by DrawBox(), DrawCellArray(), DrawFillArea(), SetFillColor(), TGWin32(), and UpdateFillColor().

Bool_t TGWin32::fFillStyleModified
protected

Definition at line 146 of file TGWin32.h.

Referenced by DrawBox(), DrawCellArray(), DrawFillArea(), SetFillStyle(), TGWin32(), and UpdateFillStyle().

Int_t TGWin32::fGreenDiv
protected

Definition at line 137 of file TGWin32.h.

Referenced by AllocColor(), and OpenDisplay().

Int_t TGWin32::fGreenShift
protected

Definition at line 140 of file TGWin32.h.

Referenced by AllocColor(), OpenDisplay(), and QueryColors().

Bool_t TGWin32::fHasTTFonts
protected

Definition at line 127 of file TGWin32.h.

Referenced by HasTTFonts(), OpenDisplay(), and TGWin32().

Bool_t TGWin32::fLineColorModified
protected

Definition at line 147 of file TGWin32.h.

Referenced by DrawBox(), DrawLine(), DrawPolyLine(), SetLineColor(), TGWin32(), and UpdateLineColor().

Bool_t TGWin32::fMarkerColorModified
protected

Definition at line 150 of file TGWin32.h.

Referenced by DrawPolyMarker(), SetMarkerColor(), TGWin32(), and UpdateMarkerColor().

Bool_t TGWin32::fMarkerStyleModified
protected

Definition at line 149 of file TGWin32.h.

Referenced by DrawPolyMarker(), SetMarkerStyle(), TGWin32(), and UpdateMarkerStyle().

Int_t TGWin32::fMaxNumberOfWindows
private
Bool_t TGWin32::fPenModified
protected
Int_t TGWin32::fRedDiv
protected

Definition at line 136 of file TGWin32.h.

Referenced by AllocColor(), OpenDisplay(), and QueryColors().

Int_t TGWin32::fRedShift
protected

Definition at line 139 of file TGWin32.h.

Referenced by AllocColor(), OpenDisplay(), and QueryColors().

TObject* TGWin32::fRefreshTimer
protected

Definition at line 143 of file TGWin32.h.

Referenced by TGWin32(), and ~TGWin32().

Int_t TGWin32::fScreenNumber
protected

Definition at line 126 of file TGWin32.h.

Referenced by OpenDisplay(), and TGWin32().

Int_t TGWin32::fTextAlign
protected

Definition at line 131 of file TGWin32.h.

Referenced by Align(), SetTextAlign(), and TGWin32().

Int_t TGWin32::fTextAlignH
protected

Definition at line 129 of file TGWin32.h.

Referenced by SetTextAlign(), and TGWin32().

Int_t TGWin32::fTextAlignV
protected

Definition at line 130 of file TGWin32.h.

Referenced by SetTextAlign(), and TGWin32().

Float_t TGWin32::fTextMagnitude
protected

Definition at line 134 of file TGWin32.h.

Referenced by GetTextMagnitude(), SetTextMagnitude(), and TGWin32().

Bool_t TGWin32::fUseSysPointers
protected

Definition at line 128 of file TGWin32.h.

Referenced by CreateWindow(), InitWindow(), OpenDisplay(), RequestLocator(), RequestString(), and TGWin32().

GdkVisual* TGWin32::fVisual
protected

Definition at line 124 of file TGWin32.h.

Referenced by OpenDisplay(), and QueryColors().

XWindow_t* TGWin32::fWindows
private
Handle_t TGWin32::fXEvent
protected

Definition at line 142 of file TGWin32.h.

Referenced by CloseDisplay(), and TGWin32().

Collaboration diagram for TGWin32:
[legend]

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