TGX11TTF Class Reference

#include <TGX11TTF.h>

Inheritance diagram for TGX11TTF:

TGX11 TGX11 TVirtualX TVirtualX TVirtualX TVirtualX TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed TAttMarker TAttText TAttFill TAttLine TNamed List of all members.

Public Member Functions

 TGX11TTF (const TGX11 &org)
virtual ~TGX11TTF ()
Bool_t Init (void *display)
void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
void SetTextFont (Font_t fontnumber)
Int_t SetTextFont (char *fontname, ETextSetMode mode)
void SetTextSize (Float_t textsize)
 TGX11TTF (const TGX11 &org)
virtual ~TGX11TTF ()
Bool_t Init (void *display)
void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
void SetTextFont (Font_t fontnumber)
Int_t SetTextFont (char *fontname, ETextSetMode mode)
void SetTextSize (Float_t textsize)
FontStruct_t LoadQueryFont (const char *font_name)
void DeleteFont (FontStruct_t fs)
void DrawString (Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
Int_t TextWidth (FontStruct_t font, const char *s, Int_t len)
void GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)

Static Public Member Functions

static void Activate ()
static void Activate ()

Private Types

enum  EAlign
enum  EAlign

Private Member Functions

void Align (void)
void DrawImage (FT_Bitmap *source, ULong_t fore, ULong_t back, XImage *xim, Int_t bx, Int_t by)
Bool_t IsVisible (Int_t x, Int_t y, UInt_t w, UInt_t h)
XImage * GetBackground (Int_t x, Int_t y, UInt_t w, UInt_t h)
void RenderString (Int_t x, Int_t y, ETextMode mode)
void Align (void)
void DrawImage (FT_Bitmap *source, ULong_t fore, ULong_t back, XImage *xim, Int_t bx, Int_t by)
Bool_t IsVisible (Int_t x, Int_t y, UInt_t w, UInt_t h)
XImage * GetBackground (Int_t x, Int_t y, UInt_t w, UInt_t h)
void RenderString (Int_t x, Int_t y, ETextMode mode)

Private Attributes

FT_Vector fAlign
TXftFontHash * fXftFontHash

Detailed Description

Definition at line 46 of file TGX11TTF.h.


Member Enumeration Documentation

enum TGX11TTF::EAlign [private]

Definition at line 49 of file TGX11TTF.h.

enum TGX11TTF::EAlign [private]

Definition at line 49 of file TGX11TTF.h.


Constructor & Destructor Documentation

TGX11TTF::TGX11TTF ( const TGX11 org  ) 

Referenced by Activate(), G__G__X11TTF_161_0_30(), and G__G__X11TTF_161_0_6().

virtual TGX11TTF::~TGX11TTF (  )  [inline, virtual]

Definition at line 66 of file TGX11TTF.h.

TGX11TTF::TGX11TTF ( const TGX11 org  ) 

virtual TGX11TTF::~TGX11TTF (  )  [inline, virtual]

Definition at line 66 of file TGX11TTF.h.


Member Function Documentation

void TGX11TTF::Align ( void   )  [private]

Definition at line 181 of file TGX11TTF.cxx.

References align(), fAlign, TTF::fgAscent, TTF::fgRotMatrix, TTF::fgWidth, FT_Vector_Transform(), TGX11::fTextAlign, kBCenter, kBRight, kMCenter, kMLeft, kMRight, kTCenter, kTLeft, kTRight, FT_Vector_::x, and FT_Vector_::y.

Referenced by DrawText().

void TGX11TTF::DrawImage ( FT_Bitmap source,
ULong_t  fore,
ULong_t  back,
XImage *  xim,
Int_t  bx,
Int_t  by 
) [private]

Definition at line 213 of file TGX11TTF.cxx.

References TGX11::AllocColor(), b, d, TGX11::fColormap, TTF::fgSmoothing, g, int, kBitsPerByte, n, p, TGX11::QueryColors(), red, row, s, TESTBIT, TObject::Warning(), x, and y.

Referenced by RenderString().

Bool_t TGX11TTF::IsVisible ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
) [private]

Definition at line 380 of file TGX11TTF.cxx.

References TGX11::GetCurrentWindow(), height, kFALSE, kTRUE, width, and xy.

Referenced by RenderString().

XImage * TGX11TTF::GetBackground ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
) [private]

Definition at line 354 of file TGX11TTF.cxx.

References TGX11::fDisplay, TGX11::GetCurrentWindow(), height, width, and xy.

Referenced by RenderString().

void TGX11TTF::RenderString ( Int_t  x,
Int_t  y,
ETextMode  mode 
) [private]

Definition at line 401 of file TGX11TTF.cxx.

References depth, DrawImage(), TObject::Error(), fAlign, TGX11::fDepth, TGX11::fDisplay, TTF::fgGlyphs, TTF::fgNumGlyphs, TTF::fgSmoothing, TTGlyph::fImage, FT_Glyph_To_Bitmap(), ft_render_mode_mono, ft_render_mode_normal, TGX11::fVisual, GetBackground(), TTF::GetBox(), TGX11::GetCurrentWindow(), TGX11::GetGC(), h, int, IsVisible(), TVirtualX::kClear, malloc(), n, w, FT_Vector_::x, x1, FT_BBox_::xMax, FT_BBox_::xMin, FT_Vector_::y, FT_BBox_::yMax, and FT_BBox_::yMin.

Referenced by DrawText().

Bool_t TGX11TTF::Init ( void *  display  )  [virtual]

Reimplemented from TGX11.

Definition at line 165 of file TGX11TTF.cxx.

References TGX11::fDepth, TGX11::Init(), kFALSE, kTRUE, and TTF::SetSmoothing().

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

Reimplemented from TGX11.

Definition at line 335 of file TGX11TTF.cxx.

References Align(), TGX11::DrawText(), TTF::fgInit, TGX11::fHasTTFonts, TTF::Init(), TTF::LayoutGlyphs(), TTF::PrepareString(), RenderString(), and TTF::SetRotationMatrix().

void TGX11TTF::SetTextFont ( Font_t  fontnumber  )  [virtual]

Reimplemented from TGX11.

Definition at line 485 of file TGX11TTF.cxx.

References TGX11::fHasTTFonts, TAttText::fTextFont, TGX11::SetTextFont(), and TTF::SetTextFont().

Int_t TGX11TTF::SetTextFont ( char *  fontname,
ETextSetMode  mode 
) [virtual]

Reimplemented from TGX11.

Definition at line 498 of file TGX11TTF.cxx.

References TGX11::fHasTTFonts, TGX11::SetTextFont(), and TTF::SetTextFont().

void TGX11TTF::SetTextSize ( Float_t  textsize  )  [virtual]

Reimplemented from TGX11.

Definition at line 517 of file TGX11TTF.cxx.

References TGX11::fHasTTFonts, TAttText::fTextSize, TGX11::SetTextSize(), and TTF::SetTextSize().

void TGX11TTF::Activate (  )  [static]

Definition at line 153 of file TGX11TTF.cxx.

References TGX11TTF().

Referenced by G__G__X11TTF_161_0_17(), G__setup_memfuncTGX11TTF(), and TTFX11Init::TTFX11Init().

void TGX11TTF::Align ( void   )  [private]

void TGX11TTF::DrawImage ( FT_Bitmap source,
ULong_t  fore,
ULong_t  back,
XImage *  xim,
Int_t  bx,
Int_t  by 
) [private]

Bool_t TGX11TTF::IsVisible ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
) [private]

XImage* TGX11TTF::GetBackground ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
) [private]

void TGX11TTF::RenderString ( Int_t  x,
Int_t  y,
ETextMode  mode 
) [private]

Bool_t TGX11TTF::Init ( void *  display  )  [virtual]

Reimplemented from TGX11.

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

Reimplemented from TGX11.

void TGX11TTF::SetTextFont ( Font_t  fontnumber  )  [virtual]

Reimplemented from TGX11.

Int_t TGX11TTF::SetTextFont ( char *  fontname,
ETextSetMode  mode 
) [virtual]

Reimplemented from TGX11.

void TGX11TTF::SetTextSize ( Float_t  textsize  )  [virtual]

Reimplemented from TGX11.

FontStruct_t TGX11TTF::LoadQueryFont ( const char *  font_name  )  [virtual]

Reimplemented from TGX11.

void TGX11TTF::DeleteFont ( FontStruct_t  fs  )  [virtual]

Reimplemented from TGX11.

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

Reimplemented from TGX11.

Int_t TGX11TTF::TextWidth ( FontStruct_t  font,
const char *  s,
Int_t  len 
) [virtual]

Reimplemented from TGX11.

void TGX11TTF::GetFontProperties ( FontStruct_t  font,
Int_t max_ascent,
Int_t max_descent 
) [virtual]

Reimplemented from TGX11.

static void TGX11TTF::Activate (  )  [static]


Member Data Documentation

FT_Vector TGX11TTF::fAlign [private]

Definition at line 52 of file TGX11TTF.h.

Referenced by Align(), and RenderString().

TXftFontHash* TGX11TTF::fXftFontHash [private]

Definition at line 54 of file TGX11TTF.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:41:19 2011 for ROOT_528-00b_version by  doxygen 1.5.1