library: libGui #include "TGFontDialog.h"

# TGFontDialog

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

## class TGFontDialog : public TGTransientFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

<-

`TGMainFrame`

<-

`TGTransientFrame`

<-

`TGFontDialog`

        protected:

                    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, const TGWindow* t, TGFontDialog::FontProp_t* fontProp, 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
                            ULong_t fTextColor
                            TString fSampleText
                              TGGC* fSampleTextGC
                            TGFont* fLabelFont

## 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.

~TGFontDialog()

     Delete all widgets.

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.4 2004/06/15 14:13:20 rdm Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *