Type Alias: GtkWindowProps
GtkWindowProps =
WidgetProps&object
Defined in: generated/jsx.ts:353
Props for the GtkWindow widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
application? | Gtk.Application | null | The GtkApplication associated with the window. The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows). Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the this property to NULL. | generated/jsx.ts:365 |
child? | Gtk.Widget | null | The child widget. | generated/jsx.ts:367 |
children? | ReactNode | - | generated/jsx.ts:493 |
decorated? | boolean | Whether the window should have a frame (also known as decorations). | generated/jsx.ts:369 |
defaultHeight? | number | The default height of the window. | generated/jsx.ts:371 |
defaultWidget? | Gtk.Widget | null | The default widget. | generated/jsx.ts:373 |
defaultWidth? | number | The default width of the window. | generated/jsx.ts:375 |
deletable? | boolean | Whether the window frame should have a close button. | generated/jsx.ts:377 |
destroyWithParent? | boolean | If this window should be destroyed when the parent is destroyed. | generated/jsx.ts:379 |
display? | Gdk.Display | The display that will display this window. | generated/jsx.ts:381 |
focusVisible? | boolean | Whether 'focus rectangles' are currently visible in this window. This property is maintained by GTK based on user input and should not be set by applications. | generated/jsx.ts:388 |
focusWidget? | Gtk.Widget | null | The focus widget. | generated/jsx.ts:390 |
fullscreened? | boolean | Whether the window is fullscreen. Setting this property is the equivalent of calling Window.fullscreen or Window.unfullscreen; either operation is asynchronous, which means you will need to connect to the ::notify signal in order to know whether the operation was successful. | generated/jsx.ts:400 |
gravity? | Gtk.WindowGravity | The gravity to use when resizing the window programmatically. Gravity describes which point of the window we want to keep fixed (meaning that the window will grow in the opposite direction). For example, a gravity of GTK_WINDOW_GRAVITY_TOP_RIGHT means that we want the to fix top right corner of the window. | generated/jsx.ts:409 |
handleMenubarAccel? | boolean | Whether the window frame should handle F10 for activating menubars. | generated/jsx.ts:414 |
hideOnClose? | boolean | If this window should be hidden instead of destroyed when the user clicks the close button. | generated/jsx.ts:419 |
iconName? | string | null | Specifies the name of the themed icon to use as the window icon. See IconTheme for more details. | generated/jsx.ts:425 |
maximized? | boolean | Whether the window is maximized. Setting this property is the equivalent of calling Window.maximize or Window.unmaximize; either operation is asynchronous, which means you will need to connect to the ::notify signal in order to know whether the operation was successful. | generated/jsx.ts:435 |
mnemonicsVisible? | boolean | Whether mnemonics are currently visible in this window. This property is maintained by GTK based on user input, and should not be set by applications. | generated/jsx.ts:442 |
modal? | boolean | If true, the window is modal. | generated/jsx.ts:444 |
onActivateDefault()? | (self) => void | null | Emitted when the user activates the default widget. This is a keybinding signal. The keybindings for this signal are all forms of the Enter key. | generated/jsx.ts:462 |
onActivateFocus()? | (self) => void | null | Emitted when the user activates the currently focused widget of window. This is a keybinding signal. The default binding for this signal is ␣. | generated/jsx.ts:471 |
onClose? | () => void | null | Called when the window close button is clicked. Control window visibility using React state. | generated/jsx.ts:492 |
onEnableDebugging()? | (self, toggle) => boolean | null | Emitted when the user enables or disables interactive debugging. When toggle is true, interactive debugging is toggled on or off, when it is false, the debugger will be pointed at the widget under the pointer. This is a keybinding signal. The default bindings for this signal are Ctrl+Shift+I and Ctrl+Shift+D. | generated/jsx.ts:485 |
onKeysChanged()? | (self) => void | null | Emitted when the set of accelerators or mnemonics that are associated with the window changes. | generated/jsx.ts:490 |
onNotify? | (self, propName) => void | null | Called 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:499 |
ref? | Ref<Gtk.Window> | - | generated/jsx.ts:529 |
resizable? | boolean | If true, users can resize the window. | generated/jsx.ts:446 |
startupId? | string | A write-only property for setting window's startup notification identifier. | generated/jsx.ts:448 |
title? | string | null | The title of the window. | generated/jsx.ts:450 |
titlebar? | Gtk.Widget | null | The titlebar widget. | generated/jsx.ts:452 |
transientFor? | Gtk.Window | null | The transient parent of the window. | generated/jsx.ts:454 |