library: libGui #include "TGFontDialog.h" |
TGFontDialog
class description - source file - inheritance tree (.pdf)
protected:
virtual void CloseWindow()
void GetFontName()
Bool_t GetFontProperties(const char* fontFamily = "0")
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
public:
TGFontDialog(const TGWindow* parent = 0, const TGWindow* t = 0, TGFontDialog::FontProp_t* fontProp = 0, const TString& sample = , const char** fontList = "0")
TGFontDialog(const TGFontDialog&)
virtual ~TGFontDialog()
static TClass* Class()
virtual TClass* IsA() const
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGListBox* fFontNames list of font names
TGListBox* fFontSizes list of font sizes
TGListBox* fFontStyles list of font styles
TGComboBox* fTextAligns font alignment selection
TGLabel* fSample sample of selected font
TString fName font name
TString fLName logical font name
TGFontDialog::FontProp_t* fFontProp font info structure
Bool_t fItalic italic flag
Bool_t fBold bold flag
Int_t fSize font size
UInt_t fTextAlign text aligment
Pixel_t fTextColor text color
TString fSampleText string used for sample
TGGC* fSampleTextGC GC used for sample text
TGFont* fLabelFont TGFont used for sample text
Bool_t fHitOK flag = kTRUE if user press the Ok button
TGFontDialog(const TGWindow *p, const TGWindow *t,
FontProp_t *fontProp, const TString &sample,
const char **fontList) :
TGTransientFrame(p, t, 100, 100)
Create font dialog. When closed via OK button fontProp is set to
the newly selected font. If closed via Cancel button or WM close box
fontProp->fName == "".
~TGFontDialog()
Delete all widgets.
void CloseWindow()
Called when window is closed via window manager.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle dialog events.
Bool_t GetFontProperties(const char *fontFamily)
Get possible styles and sizes for the selected font family if
fontFamily = 0, otherwise check if fontFamily exists. Returns
kFALSE if fontFamily does not exist.
void GetFontName()
Sets fLName and other data members.
Inline Functions
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGFontDialog TGFontDialog(const TGFontDialog&)
Author: Bertrand Bellenot + Fons Rademakers 23/04/03
Last update: root/gui:$Name: $:$Id: TGFontDialog.cxx,v 1.14 2006/02/28 16:48:17 rdm Exp $
Copyright (C) 1995-2004, 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.