FontSelectionDialog Class Reference

Inheritance diagram for FontSelectionDialog:

Dialog List of all members.

Detailed Description

A standard font selection dialog.


Public Member Functions

 this (char *title)
 Creates a new font selection dialog with a title.

char[] getFontName ()
 This returns the X Logical Font Description fontname, or NULL if no font is selected.

bit setFontName (char[] fontname)
 This sets the currently displayed font.

char[] getPreviewText ()
 This returns the text in the preview entry.


Static Public Member Functions

GType getType ()
 gets this class type


Member Function Documentation

char [] FontSelectionDialog.getFontName  ) 
 

This returns the X Logical Font Description fontname, or NULL if no font is selected.

Note that there is a slight possibility that the font might not have been loaded OK. You should call gtk_font_selection_dialog_get_font() to see if it has been loaded OK. You should g_free() the returned font name after you're done with it.

Returns:
the fontname

char [] FontSelectionDialog.getPreviewText  ) 
 

This returns the text in the preview entry.

You should copy the returned text if you need it.

Returns:
the previw text

GType FontSelectionDialog.getType  )  [static]
 

gets this class type

Reimplemented from Dialog.

bit FontSelectionDialog.setFontName char[]  fontname  ) 
 

This sets the currently displayed font.

It should be a valid X Logical Font Description font name (anything else will be ignored), e.g. "-adobe-courier-bold-o-normal--25-*-*-*-*-*-*-*"

Parameters:
fontname 
Returns:
TRUE on success.

FontSelectionDialog.this char *  title  ) 
 

Creates a new font selection dialog with a title.

Parameters:
title the title


Generated on Sun Dec 21 02:47:10 2003 for DUI by doxygen 1.3.4