37 #ifndef ROOT_RConfigure
38 #include "RConfigure.h"
53 TXftFontHash *fXftFontHash;
static void Activate()
Static method setting TGX11TTF as the acting gVirtualX.
void DeleteFont(FontStruct_t fs)
Explicitly delete font structure obtained with LoadQueryFont().
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.
Interface to low level X11 (Xlib).
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
void SetTextSize(Float_t textsize)
Set current text size.
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
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).
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draw text using TrueType fonts.
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
virtual FontStruct_t GetGCFont(GContext_t gc)
Return the font associated with the graphics context gc.
TGX11TTF(const TGX11 &org)
void SetTextFont(Font_t fontnumber)
Set specified font.
This class is the basic interface to the X11 (Xlib) graphics system.
void RenderString(Int_t x, Int_t y, ETextMode mode)
Perform the string rendering in the pad.
void Align(void)
Compute alignment variables.
void DeleteGC(GContext_t gc)
Explicitly delete a graphics context.
#define org(otri, vertexptr)
virtual void MapGCFont(GContext_t, FontStruct_t)
Map the XftFont with the Graphics Context using it.
Bool_t Init(void *display)
Initialize X11 system. Returns kFALSE in case of failure.
Bool_t IsVisible(Int_t x, Int_t y, UInt_t w, UInt_t h)
Test if there is really something to render.
RXImage * GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h)
Get the background of the current window in an XImage.
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of string in pixels. Size depends on font.