library: libGX11TTF #include "TGX11TTF.h" |
TGX11TTF
class description - source file - inheritance tree (.pdf)
private:
void Align()
void DrawImage(FT_Bitmap* source, ULong_t fore, ULong_t back, XImage* xim, Int_t bx, Int_t by)
XImage* GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h)
Bool_t IsVisible(Int_t x, Int_t y, UInt_t w, UInt_t h)
void RenderString(Int_t x, Int_t y, TVirtualX::ETextMode mode)
public:
TGX11TTF(const TGX11& org)
TGX11TTF(const TGX11TTF&)
virtual ~TGX11TTF()
static TClass* Class()
virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char* text, TVirtualX::ETextMode mode)
virtual TClass* IsA() const
TGX11TTF& operator=(const TGX11TTF&)
virtual void SetTextFont(Font_t fontnumber)
virtual Int_t SetTextFont(char* fontname, TVirtualX::ETextSetMode mode)
virtual void SetTextSize(Float_t textsize)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
FT_Vector fAlign alignment vector
public:
static const TGX11TTF::EAlign kNone
static const TGX11TTF::EAlign kTLeft
static const TGX11TTF::EAlign kTCenter
static const TGX11TTF::EAlign kTRight
static const TGX11TTF::EAlign kMLeft
static const TGX11TTF::EAlign kMCenter
static const TGX11TTF::EAlign kMRight
static const TGX11TTF::EAlign kBLeft
static const TGX11TTF::EAlign kBCenter
static const TGX11TTF::EAlign kBRight
TGX11TTF
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.
TGX11TTF(const TGX11 &org) : TGX11(org)
Create copy of TGX11 but now use TrueType fonts.
~TGX11TTF()
void Align(void)
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.
void DrawImage(FT_Bitmap *source, ULong_t fore, ULong_t back,
XImage *xim, Int_t bx, Int_t by)
Draw FT_Bitmap bitmap to xim image at position bx,by using specified
foreground color.
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
const char *text, ETextMode mode)
Draw text using TrueType fonts. If TrueType fonts are not available the
text is drawn with TGX11::DrawText.
XImage* GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h)
Get the background of the current window in an XImage.
Bool_t IsVisible(Int_t x, Int_t y, UInt_t w, UInt_t h)
Test if there is really something to render
void RenderString(Int_t x, Int_t y, ETextMode mode)
Perform the string rendering in the pad.
LayoutGlyphs should have been called before.
void SetTextFont(Font_t fontnumber)
Set specified font.
Int_t SetTextFont(char *fontname, ETextSetMode mode)
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.
void SetTextSize(Float_t textsize)
Set current text size.
Inline Functions
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGX11TTF TGX11TTF(const TGX11TTF&)
TGX11TTF& operator=(const TGX11TTF&)
Author: Olivier Couet 01/10/02
Last update: root/x11ttf:$Name: $:$Id: TGX11TTF.cxx,v 1.13 2005/05/18 16:58:42 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.