Skip to main content

Type Alias: GtkHeaderBarProps

GtkHeaderBarProps = WidgetProps & object

Defined in: generated/jsx.ts:5138

Props for the GtkHeaderBar widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:5168
decorationLayout?string | nullThe decoration layout for buttons. If this property is not set, the Settings.gtk-decoration-layout setting is used.generated/jsx.ts:5145
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:5174
ref?Ref<Gtk.HeaderBar>-generated/jsx.ts:5180
showTitleButtons?booleanWhether to show title buttons like close, minimize, maximize. Which buttons are actually shown and where is determined by the HeaderBar.decoration-layout property, and by the state of the window (e.g. a close button will not be shown if the window can't be closed).generated/jsx.ts:5154
titleWidget?Gtk.Widget | nullThe title widget to display.generated/jsx.ts:5156
useNativeControls?booleanWhether to show platform native close/minimize/maximize buttons. For macOS, the HeaderBar.decoration-layout property can be used to enable/disable controls. On Linux, this option has no effect. See also Using GTK on Apple macOS.generated/jsx.ts:5167