FontChooserIF

#GtkFontChooser is an interface that can be implemented by widgets displaying the list of fonts. In GTK+, the main objects that implement this interface are #GtkFontChooserWidget, #GtkFontChooserDialog and #GtkFontButton.

Members

Functions

addOnFontActivated
void addOnFontActivated(void delegate(string, FontChooserIF) dlg, ConnectFlags connectFlags)

Emitted when a font is activated. This usually happens when the user double clicks an item, or an item is selected and the user presses one of the keys Space, Shift+Space, Return or Enter.

getFont
string getFont()

Gets the currently-selected font name.

getFontChooserStruct
GtkFontChooser* getFontChooserStruct()

Get the main Gtk struct

getFontDesc
PgFontDescription getFontDesc()

Gets the currently-selected font.

getFontFace
PgFontFace getFontFace()

Gets the #PangoFontFace representing the selected font group details (i.e. family, slant, weight, width, etc).

getFontFamily
PgFontFamily getFontFamily()

Gets the #PangoFontFamily representing the selected font family. Font families are a collection of font faces.

getFontSize
int getFontSize()

The selected font size.

getPreviewText
string getPreviewText()

Gets the text displayed in the preview area.

getShowPreviewEntry
bool getShowPreviewEntry()

Returns whether the preview entry is shown or not.

getStruct
void* getStruct()

the main Gtk struct as a void*

setFilterFunc
void setFilterFunc(GtkFontFilterFunc filter, void* userData, GDestroyNotify destroy)

Adds a filter function that decides which fonts to display in the font chooser.

setFont
void setFont(string fontname)

Sets the currently-selected font.

setFontDesc
void setFontDesc(PgFontDescription fontDesc)

Sets the currently-selected font from @font_desc.

setPreviewText
void setPreviewText(string text)

Sets the text displayed in the preview area. The @text is used to show how the selected font looks.

setShowPreviewEntry
void setShowPreviewEntry(bool showPreviewEntry)

Shows or hides the editable preview entry.

Properties

onFontActivatedListeners
void delegate(string, FontChooserIF)[] onFontActivatedListeners [@property getter]
Undocumented in source.

Meta