The FontSelectionDialog widget is a dialog for selecting a font.
Filters can be used to limit the fonts shown. There are 2 filters
in the FileSelectionDialog - a base filter and a user filter. The
base filter cannot be changed by the user, so this can be used when
the user must choose from the restricted set of fonts. The user filter
can be changed or reset by the user, using the 'Reset Filter' button
or changing the options on the 'Filter' page of the dialog.
getApplyButton
public Button getApplyButton()
Return the Apply Button widget for this Dialog.
- The Apply Button.
getApplyButton
protected static final Handle getApplyButton(Handle cptr)
getAutoResize
protected static final boolean getAutoResize(Handle cptr)
getCancelButton
public Button getCancelButton()
Return the Cancel Button widget for this dialog.
- The Cancel Button.
getCancelButton
protected static final Handle getCancelButton(Handle cptr)
getDialogWidth
protected static final int getDialogWidth(Handle cptr)
getFontName
public String getFontName()
Gets the currently selected font name.
- The name of the currently selected font.
getFontsel
protected static final Handle getFontsel(Handle cptr)
getMainVbox
protected static final Handle getMainVbox(Handle cptr)
getOKButton
public Button getOKButton()
Return the OK Button widget for this Dialog.
- The OK Button.
getOkButton
protected static final Handle getOkButton(Handle cptr)
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Dialog
gtk_font_selection_dialog_get_font_name
protected static final String gtk_font_selection_dialog_get_font_name(Handle fontsel)
gtk_font_selection_dialog_get_preview_text
protected static final String gtk_font_selection_dialog_get_preview_text(Handle fontsel)
gtk_font_selection_dialog_get_type
protected static final int gtk_font_selection_dialog_get_type()
gtk_font_selection_dialog_new
protected static final Handle gtk_font_selection_dialog_new(String title)
gtk_font_selection_dialog_set_font_name
protected static final boolean gtk_font_selection_dialog_set_font_name(Handle fontsel,
String fontname)
gtk_font_selection_dialog_set_preview_text
protected static final void gtk_font_selection_dialog_set_preview_text(Handle fontsel,
String text)
setFontname
public void setFontname(String fontName)
Sets the currently selected font.
fontName
- The name of the font to set as the currently selected font.
setPreviewText
public void setPreviewText(String text)
Sets the text displayed in the preview area.
text
- The text to display in the preview area.