Skip to main content

Type Alias: GtkFontChooserDialogProps

GtkFontChooserDialogProps = Omit<GtkDialogProps, "onNotify"> & object

Defined in: generated/jsx.ts:4617

Props for the GtkFontChooserDialog widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:4638
font?stringThe font description as a string, e.g. "Sans Italic 12".generated/jsx.ts:4619
fontDesc?Pango.FontDescriptionThe font description as a PangoFontDescription.generated/jsx.ts:4621
language?stringThe language for which the font features were selected.generated/jsx.ts:4623
level?Gtk.FontChooserLevelThe level of granularity to offer for selecting fonts.generated/jsx.ts:4625
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:4637
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:4644
previewText?stringThe string with which to preview the font.generated/jsx.ts:4627
ref?Ref<Gtk.FontChooserDialog>-generated/jsx.ts:4650
showPreviewEntry?booleanWhether to show an entry to change the preview text.generated/jsx.ts:4629