Skip to main content

Type Alias: GtkFontButtonProps

GtkFontButtonProps = WidgetProps & object

Defined in: generated/jsx.ts:4546

Props for the GtkFontButton widget.

Type Declaration

NameTypeDescriptionDefined in
font?stringThe font description as a string, e.g. "Sans Italic 12".generated/jsx.ts:4556
fontDesc?Pango.FontDescriptionThe font description as a PangoFontDescription.generated/jsx.ts:4558
language?stringThe language for which the font features were selected.generated/jsx.ts:4560
level?Gtk.FontChooserLevelThe level of granularity to offer for selecting fonts.generated/jsx.ts:4562
modal?booleanWhether the font chooser dialog should be modal.generated/jsx.ts:4548
onActivate()?(self) => void | nullEmitted to when the font button is activated. The ::activate signal on GtkFontButton is an action signal and emitting it causes the button to present its dialog.generated/jsx.ts:4573
onFontActivated()?(self, fontname) => void | nullEmitted 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.generated/jsx.ts:4592
onFontSet()?(self) => void | nullEmitted when the user selects a font. When handling this signal, use FontChooser.get_font to find out which font was just selected. Note that this signal is only emitted when the user changes the font. If you need to react to programmatic font changes as well, use the notify::font signal.generated/jsx.ts:4584
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:4598
previewText?stringThe string with which to preview the font.generated/jsx.ts:4564
ref?Ref<Gtk.FontButton>-generated/jsx.ts:4614
showPreviewEntry?booleanWhether to show an entry to change the preview text.generated/jsx.ts:4566
title?stringThe title of the font chooser dialog.generated/jsx.ts:4550
useFont?booleanWhether the buttons label will be drawn in the selected font.generated/jsx.ts:4552
useSize?booleanWhether the buttons label will use the selected font size.generated/jsx.ts:4554