Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Properties Author(s) References
A widget for selecting fonts
gtkFontSelectionNew(show = TRUE)
gtkFontSelectionGetFont(object)
gtkFontSelectionGetFontName(object)
gtkFontSelectionSetFontName(object, fontname)
gtkFontSelectionGetPreviewText(object)
gtkFontSelectionSetPreviewText(object, text)
gtkFontSelectionGetFace(object)
gtkFontSelectionGetFaceList(object)
gtkFontSelectionGetFamily(object)
gtkFontSelectionGetSize(object)
gtkFontSelectionGetFamilyList(object)
gtkFontSelectionGetPreviewEntry(object)
gtkFontSelectionGetSizeEntry(object)
gtkFontSelectionGetSizeList(object)
gtkFontSelection(show = TRUE)
1 2 3 4 5 6 7 8 | GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----GtkFontSelection
|
GtkFontSelection implements
AtkImplementorIface, GtkBuildable
and GtkOrientable
.
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 gtkFontSelectionGetFontName
.
To change the text which is shown in the preview area, use
gtkFontSelectionSetPreviewText
.
GtkFontSelection
The GtkFontSelection
struct contains private data only, and should
only be accessed using the functions below.
gtkFontSelection
is the equivalent of gtkFontSelectionNew
.
font
[GdkFont
: * : Read]The GdkFont that is currently selected.
font-name
[character : * : Read / Write]The string that represents this font. Default value: "Sans 10"
preview-text
[character : * : Read / Write]The text to display in order to demonstrate the selected font. Default value: "abcdefghijk ABCDEFGHIJK"
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gtk2/stable/GtkFontSelection.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.