Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TGX11TTF Class Reference

Interface to low level X11 (Xlib).

This class gives access to basic X11 graphics via the parent class TGX11. However, all text and font handling is done via the Freetype TrueType library. When the shared library containing this class is loaded the global gVirtualX is redirected to point to this class.

Definition at line 27 of file TGX11TTF.h.

Public Member Functions

 TGX11TTF (const TGX11 &org)
 Create copy of TGX11 but now use TrueType fonts. More...
 
virtual ~TGX11TTF ()
 
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...
 
Bool_t Init (void *display)
 Initialize X11 system. Returns kFALSE in case of failure. 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...
 
- Public Member Functions inherited from TGX11
 TGX11 ()
 Default constructor. More...
 
 TGX11 (const TGX11 &org)
 Copy constructor. Currently only used by TGX11TTF. More...
 
 TGX11 (const char *name, const char *title)
 Normal Constructor. More...
 
virtual ~TGX11 ()
 Destructor. More...
 
Int_t AddPixmap (ULong_t pixid, UInt_t w, UInt_t h)
 Register pixmap created by gVirtualGL. 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...
 
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 Bell (Int_t percent)
 Sound bell. Percent is loudness from -100% .. 100%. More...
 
void ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t)
 Changes the specified dynamic parameters if the pointer is actively grabbed by the client. More...
 
void ChangeGC (GContext_t gc, GCValues_t *gval)
 Change entries in an existing graphics context, gc, by values from gval. More...
 
void ChangeProperties (Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
 This function alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window. More...
 
void 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 ChangeWindowAttributes (Window_t id, SetWindowAttributes_t *attr)
 Change window attributes. 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 ClearArea (Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Clear a window area to the background color. More...
 
void ClearWindow ()
 Clear current window. More...
 
void ClearWindow (Window_t id)
 Clear window. More...
 
void CloseDisplay ()
 Close connection to display server. More...
 
void ClosePixmap ()
 Delete current pixmap. More...
 
void CloseWindow ()
 Delete current window. 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 ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
 Requests that the specified selection be converted to the specified target type. 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 CopyGC (GContext_t org, GContext_t dest, Mask_t mask)
 Copies graphics context from org to dest. 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...
 
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...
 
Cursor_t CreateCursor (ECursor cursor)
 Create cursor handle (just return cursor from cursor pool fCursors). 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...
 
Drawable_t CreateImage (UInt_t width, UInt_t height)
 Create a client-side XImage. Returns handle to XImage. More...
 
Bool_t CreatePictureFromData (Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Create a picture pixmap from data. More...
 
Bool_t 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...
 
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 pixmap from RGB data. More...
 
Region_t CreateRegion ()
 Create a new empty region. More...
 
Window_t CreateWindow (Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype)
 Return handle to newly created X window. More...
 
void DeleteFont (FontStruct_t fs)
 Explicitly delete font structure obtained with LoadQueryFont(). More...
 
void DeleteGC (GContext_t gc)
 Explicitly delete a graphics context. More...
 
void DeleteImage (Drawable_t img)
 Destroy XImage img. More...
 
void DeletePictureData (void *data)
 Delete picture data created by the function ReadPictureDataFromFile. More...
 
void DeletePixmap (Pixmap_t pmap)
 Explicitly delete pixmap resource. More...
 
void DeleteProperty (Window_t, Atom_t &)
 Deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist. More...
 
void DestroyRegion (Region_t reg)
 Destroy region. More...
 
void DestroySubwindows (Window_t id)
 Destroy subwindows of this window. More...
 
void DestroyWindow (Window_t id)
 Destroy window. More...
 
const char * DisplayName (const char *dpyName=0)
 Return hostname on which the display is opened. 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 DrawLine (Drawable_t id, GContext_t gc, 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 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 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...
 
Bool_t EmptyRegion (Region_t reg)
 Return true if the region is empty. More...
 
Bool_t EqualRegion (Region_t rega, Region_t regb)
 Returns true if two regions are equal. More...
 
Int_t EventsPending ()
 Returns number of pending events. 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 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...
 
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...
 
void FreeColor (Colormap_t cmap, ULong_t pixel)
 Free color cell with specified pixel value. More...
 
void FreeFontNames (char **fontlist)
 Free list of font names. More...
 
void FreeFontStruct (FontStruct_t fs)
 Free font structure returned by GetFontStruct(). More...
 
void GetCharacterUp (Float_t &chupx, Float_t &chupy)
 Return character up vector. More...
 
unsigned char * GetColorBits (Drawable_t wid, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0)
 Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format: `b1, g1, r1, 0, b2, g2, r2, 0 ... More...
 
Colormap_t GetColormap () const
 Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
Window_t GetCurrentWindow () const
 Return current window pointer. Protected method used by TGX11TTF. More...
 
Window_t GetDefaultRootWindow () const
 Return handle to the default root window created when calling XOpenDisplay(). More...
 
Int_t GetDepth () const
 Returns depth of screen (number of bit planes). 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...
 
Int_t GetDoubleBuffer (Int_t wid)
 Query the double buffer value for the window wid. More...
 
FontH_t GetFontHandle (FontStruct_t fs)
 Return handle to font described by font structure. More...
 
void GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
 Return some font properties. More...
 
FontStruct_t GetFontStruct (FontH_t fh)
 Retrieve associated font structure once we have the font handle. More...
 
void GetGCValues (GContext_t gc, GCValues_t &gval)
 Get current values from graphics context gc. 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...
 
void GetImageSize (Drawable_t id, UInt_t &width, UInt_t &height)
 Get size of XImage img. More...
 
Window_t GetInputFocus ()
 Returns the window id of the window having the input focus. More...
 
Handle_t GetNativeEvent () const
 Returns the current native event handle. More...
 
Window_t GetParent (Window_t id) const
 Return the parent of the window. 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...
 
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...
 
Window_t GetPrimarySelectionOwner ()
 Returns the window id of the current owner of the primary selection. More...
 
Int_t GetProperty (Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t *, Int_t *, ULong_t *, ULong_t *, unsigned char **)
 Returns the actual type of the property; the actual format of the property; the number of 8-bit, 16-bit, or 32-bit items transferred; the number of bytes remaining to be read in the property; and a pointer to the data actually returned. More...
 
void GetRegionBox (Region_t reg, Rectangle_t *)
 Return smallest enclosing rectangle. More...
 
void GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b)
 Get rgb values for color "index". More...
 
Int_t GetScreen () const
 Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
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...
 
Visual_t GetVisual () const
 Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. More...
 
void GetWindowAttributes (Window_t id, WindowAttributes_t &attr)
 Get window attributes and return filled in attributes structure. More...
 
Window_t GetWindowID (Int_t wid)
 Return the X11 window identifier. 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 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 GrabKey (Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
 Establish passive grab on a certain key. 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...
 
Bool_t HasTTFonts () const
 Returns True when TrueType fonts are used. More...
 
void IconifyWindow (Window_t id)
 Iconify the window. More...
 
Int_t InitWindow (ULong_t window)
 Open window and return window number. More...
 
Atom_t InternAtom (const char *atom_name, Bool_t only_if_exist)
 Return atom handle for atom_name. More...
 
void IntersectRegion (Region_t rega, Region_t regb, Region_t result)
 Compute the intersection of rega and regb and return result region. 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...
 
Int_t KeysymToKeycode (UInt_t keysym)
 Convert a keysym to the appropriate keycode. More...
 
char ** ListFonts (const char *fontname, Int_t max, Int_t &count)
 Return list of font names matching fontname regexp, like "-*-times-*". More...
 
FontStruct_t LoadQueryFont (const char *font_name)
 Load font and query font. 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 LowerWindow (Window_t id)
 Lower window so it lays below all its siblings. More...
 
void MapRaised (Window_t id)
 Map window on screen and put on top of all windows. More...
 
void MapSubwindows (Window_t id)
 Map sub windows. More...
 
void MapWindow (Window_t id)
 Map window on screen. 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 MoveWindow (Int_t wid, Int_t x, Int_t y)
 Move the window wid. More...
 
void MoveWindow (Window_t id, Int_t x, Int_t y)
 Move a window. More...
 
void NextEvent (Event_t &event)
 Copies first pending event from event queue to Event_t structure and removes event from queue. More...
 
Int_t OpenDisplay (void *display)
 Open the display. Return -1 if the opening fails, 0 when ok. More...
 
Int_t OpenDisplay (const char *dpyName)
 Open connection to display server (if such a thing exist on the current platform). More...
 
Int_t OpenPixmap (UInt_t w, UInt_t h)
 Open a new pixmap. 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 PointInRegion (Int_t x, Int_t y, Region_t reg)
 Returns true if the point x,y is in the 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 PutImage (Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Put (x,y,w,h) part of image img in window win at position dx,dy. More...
 
void PutPixel (Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
 Set pixel at specified location in XImage img. More...
 
void QueryColor (Colormap_t cmap, ColorStruct_t &color)
 Fill in the primary color components for a specific pixel value. More...
 
void QueryPointer (Int_t &ix, Int_t &iy)
 Query pointer position. 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 RaiseWindow (Window_t id)
 Put window on top of window stack. 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...
 
Bool_t ReadPictureDataFromFile (const char *filename, char ***ret_data)
 Read picture data from file and store in ret_data. More...
 
void RemoveWindow (ULong_t qwid)
 Remove a window created by Qt (like CloseWindow1()). More...
 
void ReparentWindow (Window_t id, Window_t pid, Int_t x, Int_t y)
 Reparent window to new parent window at position (x,y). More...
 
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 ResizeWindow (Window_t id, UInt_t w, UInt_t h)
 Resize the window. More...
 
UInt_t ScreenWidthMM () const
 Returns the width of the screen in millimeters. More...
 
void SelectInput (Window_t id, UInt_t evmask)
 Defines which input events the window is interested in. More...
 
void SelectWindow (Int_t wid)
 Select window to which subsequent output is directed. More...
 
void SendEvent (Window_t id, Event_t *ev)
 Send event ev to window id. More...
 
void SetCharacterUp (Float_t chupx, Float_t chupy)
 Set character up vector. More...
 
void SetClassHints (Window_t id, char *className, char *resourceName)
 Set the windows class and resource name. More...
 
void SetClipOFF (Int_t wid)
 Turn off the clipping for the window wid. 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 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 SetCursor (Window_t id, Cursor_t curid)
 Set the specified cursor. More...
 
void SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
 Specify a dash pattern. More...
 
void SetDNDAware (Window_t, Atom_t *)
 Add XdndAware property and the list of drag and drop types to the Window win. 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 SetForeground (GContext_t gc, ULong_t foreground)
 Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set). 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 SetInputFocus (Window_t id)
 Set keyboard input focus to window id. More...
 
void SetKeyAutoRepeat (Bool_t on=kTRUE)
 Turn key auto repeat on or off. More...
 
void SetLineColor (Color_t cindex)
 Set color index for lines. More...
 
void SetLineStyle (Style_t linestyle)
 Set line style. More...
 
void SetLineType (Int_t n, Int_t *dash)
 Set line type. 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 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 SetOpacity (Int_t percent)
 Set opacity of a window. More...
 
void SetPrimarySelectionOwner (Window_t id)
 Makes the window id the current owner of the primary selection. More...
 
void SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b)
 Set color intensities for given color index. More...
 
Bool_t SetSelectionOwner (Window_t, Atom_t &)
 Changes the owner and last-change time for the specified selection. 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 SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist)
 Add the list of drag and drop types to the Window win. 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...
 
void SetWindowName (Window_t id, char *name)
 Set window name. More...
 
void SetWMPosition (Window_t id, Int_t x, Int_t y)
 Tell the window manager the desired window position. More...
 
void SetWMSize (Window_t id, UInt_t w, UInt_t h)
 Tell the window manager the desired window size. More...
 
void SetWMSizeHints (Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
 Give the window manager minimum and maximum size hints. More...
 
void SetWMState (Window_t id, EInitialState state)
 Set the initial state of the window. Either kNormalState or kIconicState. More...
 
void SetWMTransientHint (Window_t id, Window_t main_id)
 Tell window manager that window is a transient window of main. More...
 
void 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...
 
void SubtractRegion (Region_t rega, Region_t regb, Region_t result)
 Subtract rega from regb. More...
 
Int_t SupportsExtension (const char *ext) const
 Returns 1 if window system server supports extension given by the argument, returns 0 in case extension is not supported and returns -1 in case of error (like server not initialized). More...
 
void Sync (Int_t mode)
 Set synchronisation on or off. 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 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 UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest)
 Union of rectangle with a region. 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 UnmapWindow (Window_t id)
 Unmap window from screen. More...
 
void Update (Int_t mode=0)
 Flush (mode = 0, default) or synchronize (mode = 1) X output buffer. 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...
 
void WMDeleteNotify (Window_t id)
 Tell WM to send message when window is closed via WM. 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...
 
void XorRegion (Region_t rega, Region_t regb, Region_t result)
 Calculate the difference between the union and intersection of two regions. More...
 
- Public Member Functions inherited from TVirtualX
 TVirtualX ()
 
 TVirtualX (const char *name, const char *title)
 Ctor of ABC. More...
 
virtual ~TVirtualX ()
 
virtual void BeginModalSessionFor (Window_t window)
 Start a modal session for a dialog window. More...
 
virtual void CreateOpenGLContext (Int_t wid=0)
 Creates OpenGL context for window "wid". More...
 
virtual Handle_t CreateOpenGLContext (Window_t windowID, Handle_t sharedContext)
 Creates OpenGL context for window "windowID". 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 void DeleteOpenGLContext (Int_t wid=0)
 Deletes OpenGL context for window "wid". More...
 
virtual void DispatchClientMessage (UInt_t messageID)
 Force processing of event, sent by SendEvent before. More...
 
virtual UInt_t ExecCommand (TGWin32Command *code)
 Executes the command "code" coming from the other threads (Win32) More...
 
virtual void FlushOpenGLBuffer (Handle_t ctx)
 Flushes OpenGL buffer. More...
 
virtual Handle_t GetCurrentOpenGLContext ()
 Asks OpenGL subsystem about the current OpenGL context. More...
 
EDrawMode GetDrawMode ()
 
virtual Int_t GetFontAscent () const
 Returns the ascent of the current font (in pixels). More...
 
virtual Int_t GetFontAscent (const char *mess) const
 Default version is noop, but in principle what ROOT understands as ascent is text related. More...
 
virtual Int_t GetFontDescent () const
 Returns the descent of the current font (in pixels. More...
 
virtual Int_t GetFontDescent (const char *mess) const
 Default version is noop, but in principle what ROOT understands as descent requires a certain text. More...
 
virtual FontStruct_t GetGCFont (GContext_t gc)
 Return the font associated with the graphics context gc. More...
 
virtual Double_t GetOpenGLScalingFactor ()
 On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height. More...
 
virtual Bool_t IsCmdThread () const
 
virtual Bool_t MakeOpenGLContextCurrent (Handle_t ctx, Window_t windowID)
 Makes context ctx current OpenGL context. More...
 
virtual void MapGCFont (GContext_t, FontStruct_t)
 Map the XftFont with the Graphics Context using it. 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 SelectPixmap (Int_t qpixid)
 Selects the pixmap "qpixid". More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor. More...
 
virtual ~TNamed ()
 TNamed destructor. More...
 
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 ls (Option_t *option="") const
 List TNamed name and title. More...
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual void SetName (const char *name)
 Set the name of the TNamed. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. 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...
 
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...
 
ULong_t CheckedHash ()
 Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. 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 selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. 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 void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. 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 const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. 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...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. 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...
 
void ResetBit (UInt_t f)
 
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...
 
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)
 
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 SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. 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...
 
- 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
 Return the line color. More...
 
virtual Style_t GetLineStyle () const
 Return the line style. More...
 
virtual Width_t GetLineWidth () const
 Return the line width. More...
 
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...
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor. More...
 
 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
 Return the fill area color. More...
 
virtual Style_t GetFillStyle () const
 Return the fill area style. More...
 
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 ()
 AttText default constructor. More...
 
 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
 Return the text alignment. More...
 
virtual Float_t GetTextAngle () const
 Return the text angle. More...
 
virtual Color_t GetTextColor () const
 Return the text color. More...
 
virtual Font_t GetTextFont () const
 Return the text font. More...
 
virtual Float_t GetTextSize () const
 Return the text size. More...
 
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 SetTextAngle (Float_t tangle=0)
 Set the text angle. More...
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes. More...
 
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 default constructor. More...
 
 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
 Return the marker color. More...
 
virtual Size_t GetMarkerSize () const
 Return the marker size. More...
 
virtual Style_t GetMarkerStyle () const
 Return the marker style. More...
 
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...
 

Static Public Member Functions

static void Activate ()
 Static method setting TGX11TTF as the acting gVirtualX. More...
 
- 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 Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

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, RXImage *xim, Int_t bx, Int_t by)
 Draw FT_Bitmap bitmap to xim image at position bx,by using specified foreground color. More...
 
RXImage * GetBackground (Int_t x, Int_t y, UInt_t w, UInt_t h)
 Get the background of the current window in an XImage. 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...
 
void RenderString (Int_t x, Int_t y, ETextMode mode)
 Perform the string rendering in the pad. More...
 

Private Attributes

FT_Vector fAlign
 alignment vector More...
 

Additional Inherited Members

- Public Types inherited from TVirtualX
enum  EBoxMode { kHollow, kFilled }
 
enum  EDrawMode { kCopy = 1, kXor, kInvert }
 
enum  ETextMode { kClear, kOpaque }
 
enum  ETextSetMode { kCheck, kLoad }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5),
  kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
- Protected Member Functions inherited from TGX11
Bool_t AllocColor (Colormap cmap, RXColor *color)
 Allocate color in colormap. More...
 
XColor_tGetColor (Int_t cid)
 Return reference to internal color structure associated to color index cid. More...
 
voidGetGC (Int_t which) const
 Return desired Graphics Context ("which" maps directly on gGCList[]). More...
 
void QueryColors (Colormap cmap, RXColor *colors, Int_t ncolors)
 Returns the current RGB value for the pixel in the XColor structure. More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 
- Protected Attributes inherited from TGX11
ULong_t fBlackPixel
 Value of black pixel in colormap. More...
 
Int_t fBlueDiv
 Blue value divider. More...
 
Int_t fBlueShift
 Bits to left shift blue. More...
 
Float_t fCharacterUpX
 Character Up vector along X. More...
 
Float_t fCharacterUpY
 Character Up vector along Y. More...
 
Colormap fColormap
 Default colormap, 0 if b/w. More...
 
Int_t fDepth
 Number of color planes. More...
 
voidfDisplay
 Pointer to display. More...
 
Int_t fGreenDiv
 Green value divider. More...
 
Int_t fGreenShift
 Bits to left shift green. More...
 
Bool_t fHasTTFonts
 True when TrueType fonts are used. More...
 
Bool_t fHasXft
 True when XftFonts are used. More...
 
Int_t fRedDiv
 Red value divider, -1 if no TrueColor visual. More...
 
Int_t fRedShift
 Bits to left shift red, -1 if no TrueColor visual. More...
 
Drawable fRootWin
 Root window used as parent of all windows. More...
 
Int_t fScreenNumber
 Screen number. More...
 
Int_t fTextAlign
 Text alignment (set in SetTextAlign) More...
 
Int_t fTextAlignH
 Text Alignment Horizontal. More...
 
Int_t fTextAlignV
 Text Alignment Vertical. More...
 
Float_t fTextMagnitude
 Text Magnitude. More...
 
Drawable fVisRootWin
 Root window with fVisual to be used to create GC's and XImages. More...
 
RVisual * fVisual
 Pointer to visual used by all windows. More...
 
ULong_t fWhitePixel
 Value of white pixel in colormap. More...
 
- Protected Attributes inherited from TVirtualX
EDrawMode fDrawMode
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color. More...
 
Style_t fLineStyle
 Line style. More...
 
Width_t fLineWidth
 Line width. More...
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color. More...
 
Style_t fFillStyle
 Fill area style. More...
 
- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment. More...
 
Float_t fTextAngle
 Text angle. More...
 
Color_t fTextColor
 Text color. More...
 
Font_t fTextFont
 Text font. More...
 
Float_t fTextSize
 Text size. More...
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color. More...
 
Size_t fMarkerSize
 Marker size. More...
 
Style_t fMarkerStyle
 Marker style. More...
 

#include <TGX11TTF.h>

Inheritance diagram for TGX11TTF:
[legend]

Member Enumeration Documentation

◆ EAlign

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

Definition at line 30 of file TGX11TTF.h.

Constructor & Destructor Documentation

◆ TGX11TTF()

TGX11TTF::TGX11TTF ( const TGX11 org)

Create copy of TGX11 but now use TrueType fonts.

Definition at line 159 of file TGX11TTF.cxx.

◆ ~TGX11TTF()

virtual TGX11TTF::~TGX11TTF ( )
inlinevirtual

Definition at line 47 of file TGX11TTF.h.

Member Function Documentation

◆ Activate()

void TGX11TTF::Activate ( )
static

Static method setting TGX11TTF as the acting gVirtualX.

Definition at line 179 of file TGX11TTF.cxx.

◆ Align()

void TGX11TTF::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 220 of file TGX11TTF.cxx.

◆ DrawImage()

void TGX11TTF::DrawImage ( FT_Bitmap *  source,
ULong_t  fore,
ULong_t  back,
RXImage *  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 251 of file TGX11TTF.cxx.

◆ DrawText() [1/2]

void TGX11TTF::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 TGX11::DrawText.

Reimplemented from TGX11.

Definition at line 374 of file TGX11TTF.cxx.

◆ DrawText() [2/2]

void TGX11TTF::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 TGX11::DrawText.

Reimplemented from TGX11.

Definition at line 393 of file TGX11TTF.cxx.

◆ GetBackground()

RXImage * TGX11TTF::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 411 of file TGX11TTF.cxx.

◆ Init()

Bool_t TGX11TTF::Init ( void display)
virtual

Initialize X11 system. Returns kFALSE in case of failure.

Reimplemented from TGX11.

Definition at line 191 of file TGX11TTF.cxx.

◆ IsVisible()

Bool_t TGX11TTF::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 437 of file TGX11TTF.cxx.

◆ RenderString()

void TGX11TTF::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 465 of file TGX11TTF.cxx.

◆ SetTextFont() [1/2]

void TGX11TTF::SetTextFont ( Font_t  fontnumber)
virtual

Set specified font.

Reimplemented from TGX11.

Definition at line 555 of file TGX11TTF.cxx.

◆ SetTextFont() [2/2]

Int_t TGX11TTF::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 TGX11.

Definition at line 575 of file TGX11TTF.cxx.

◆ SetTextSize()

void TGX11TTF::SetTextSize ( Float_t  textsize)
virtual

Set current text size.

Reimplemented from TGX11.

Definition at line 587 of file TGX11TTF.cxx.

Member Data Documentation

◆ fAlign

FT_Vector TGX11TTF::fAlign
private

alignment vector

Definition at line 33 of file TGX11TTF.h.

Libraries for TGX11TTF:
[legend]

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