library: libGui
#include "TGFontDialog.h"

TGFontDialog


class description - source file - inheritance tree (.pdf)

class TGFontDialog : public TGTransientFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGMainFrame
<-
TGTransientFrame
<-
TGFontDialog

    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)

Data Members


    protected:
TGListBox* fFontNames TGListBox* fFontSizes TGListBox* fFontStyles TGComboBox* fTextAligns TGLabel* fSample TString fName TString fLName TGFontDialog::FontProp_t* fFontProp Bool_t fItalic Bool_t fBold Int_t fSize UInt_t fTextAlign Pixel_t fTextColor TString fSampleText TGGC* fSampleTextGC TGFont* fLabelFont Bool_t fHitOK

Class Description


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()



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.8 2004/10/22 15:21:19 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.