Learn R Programming

RGtk2 (version 2.8.8)

GtkFontSelection: GtkFontSelection

Description

A widget for selecting fonts

Arguments

Methods and Functions

gtkFontSelectionNew(show = TRUE) gtkFontSelectionGetFont(object) gtkFontSelectionGetFontName(object) gtkFontSelectionSetFontName(object, fontname) gtkFontSelectionGetPreviewText(object) gtkFontSelectionSetPreviewText(object, text) gtkFontSelection(show = TRUE)

Hierarchy

\link{GObject} +----\link{GtkObject} +----\link{GtkWidget} +----\link{GtkContainer} +----\link{GtkBox} +----\link{GtkVBox} +----GtkFontSelection

Interfaces

GtkFontSelection implements AtkImplementorIface.

Detailed Description

The GtkFontSelection widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the GtkFontSelectionDialog widget to provide a dialog box for selecting fonts. To set the font which is initially selected, use gtkFontSelectionSetFontName. To get the selected font use gtkFontSelectionGetFont or gtkFontSelectionGetFontName. To change the text which is shown in the preview area, use gtkFontSelectionSetPreviewText.

Convenient Construction

gtkFontSelection is the equivalent of gtkFontSelectionNew.

References

http://developer.gnome.org/doc/API/2.0/gtk/GtkFontSelection.html