GtkFontSelection
A widget for selecting a font from a list of available fonts.
对象层次
描述
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 set_font_name() .
To get the selected font use get_font_name() .
To change the text which is shown in the preview area, use set_preview_text() .
构造函数
GtkFontSelection ();-- Creates a new font selection widget.
方法
get_font() 废弃 Returns the selected font. get_font_name() Gets the currently-selected font name. get_preview_text() Gets the text displayed in the preview area. set_font_name() Sets the currently-selected font. set_preview_text() Sets the text displayed in the preview area.
属性
使用 get_property 和 set_property 方法访问这些。
font: The GdkFont that is currently selected. font-name: The string that represents this font. preview-text: The text to display in order to demonstrate the selected font.