| Top |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkContainer
╰── CtkBin
╰── CtkWindow
╰── CtkDialog
╰── CtkFontSelectionDialog
The CtkFontSelectionDialog widget is a dialog box for selecting a font.
To set the font which is initially selected, use
ctk_font_selection_dialog_set_font_name().
To get the selected font use ctk_font_selection_dialog_get_font_name().
To change the text which is shown in the preview area, use
ctk_font_selection_dialog_set_preview_text().
In CTK+ 3.2, CtkFontSelectionDialog has been deprecated in favor of CtkFontChooserDialog.
The CtkFontSelectionDialog implementation of the CtkBuildable interface exposes the embedded CtkFontSelection as internal child with the name “font_selection”. It also exposes the buttons with the names “ok_button”, “cancel_button” and “apply_button”.
CtkWidget *
ctk_font_selection_dialog_new (const gchar *title);
ctk_font_selection_dialog_new has been deprecated since version 3.2 and should not be used in newly-written code.
Creates a new CtkFontSelectionDialog.
gchar *
ctk_font_selection_dialog_get_font_name
(CtkFontSelectionDialog *fsd);
ctk_font_selection_dialog_get_font_name has been deprecated since version 3.2 and should not be used in newly-written code.
Gets the currently-selected font name.
Note that this can be a different string than what you set with
ctk_font_selection_dialog_set_font_name(), as the font selection widget
may normalize font names and thus return a string with a different
structure. For example, “Helvetica Italic Bold 12” could be normalized
to “Helvetica Bold Italic 12”. Use pango_font_description_equal()
if you want to compare two font descriptions.
gboolean ctk_font_selection_dialog_set_font_name (CtkFontSelectionDialog *fsd,const gchar *fontname);
ctk_font_selection_dialog_set_font_name has been deprecated since version 3.2 and should not be used in newly-written code.
Sets the currently selected font.
const gchar *
ctk_font_selection_dialog_get_preview_text
(CtkFontSelectionDialog *fsd);
ctk_font_selection_dialog_get_preview_text has been deprecated since version 3.2 and should not be used in newly-written code.
Gets the text displayed in the preview area.
void ctk_font_selection_dialog_set_preview_text (CtkFontSelectionDialog *fsd,const gchar *text);
ctk_font_selection_dialog_set_preview_text has been deprecated since version 3.2 and should not be used in newly-written code.
Sets the text displayed in the preview area.
CtkWidget *
ctk_font_selection_dialog_get_cancel_button
(CtkFontSelectionDialog *fsd);
ctk_font_selection_dialog_get_cancel_button has been deprecated since version 3.2 and should not be used in newly-written code.
Gets the “Cancel” button.
Since: 2.14
CtkWidget *
ctk_font_selection_dialog_get_ok_button
(CtkFontSelectionDialog *fsd);
ctk_font_selection_dialog_get_ok_button has been deprecated since version 3.2 and should not be used in newly-written code.
Gets the “OK” button.
Since: 2.14
CtkWidget *
ctk_font_selection_dialog_get_font_selection
(CtkFontSelectionDialog *fsd);
ctk_font_selection_dialog_get_font_selection has been deprecated since version 3.2 and should not be used in newly-written code.
Retrieves the CtkFontSelection widget embedded in the dialog.
Since: 2.22