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.
String getFontName ()
 This returns the X Logical Font Description fontname, or NULL if no font is selected.
bit setFontName (String fontname)
 This sets the currently displayed font.
String getPreviewText ()
 This returns the text in the preview entry.

Static Public Member Functions

GType getType ()
 gets this class type


Member Function Documentation

String 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

String 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 String  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


SourceForge.net Logo DSource.org Logo digitalmars.com Logo