Package: gtk
Class gtk-window
Superclassesgtk-bin, gtk-container, gtk-widget, gtk-buildable, g-object, common-lisp:standard-object, common-lisp:t Documented Subclassesgtk-application-window, gtk-assistant, gtk-dialog, gtk-offscreen-window, gtk-plug, gtk-shortcuts-window Direct SlotsDetails A gtk-window widget is a toplevel window which can contain other
widgets. Windows normally have decorations that are under the control of the windowing system and allow the user to manipulate the window, e.g. to resize it, move it, or close it. GtkWindow as GtkBuildableExample: A UI definition fragment with accelerator groups <object class="GtkWindow"> <accel-groups> <group name="accelgroup1"/> </accel-groups> </object> <!-- --> ... <!-- --> <object class="GtkAccelGroup" id="accelgroup1"/>The gtk-window implementation of the gtk-buildable interface supports setting a child as the titlebar by specifying "titlebar" as the "type" attribute of a <child> element. CSS nodeswindow.background ├── decoration ├── <titlebar child>.titlebar [.default-decoration] ╰── <child>The gtk-window implementation has a main CSS node with name window and .background style class, and a subnode with name decoration. Style classes that are typically used with the main CSS node are .csd, when client-side decorations are in use, .solid-csd, for client-side decorations without invisible borders, .ssd, used by mutter when rendering server-side decorations. The gtk-window implementation also represents window states with the following style classes on the main node: .tiled, .maximized, .fullscreen. Specialized types of window often add their own discriminating style classes, such as .popup or .tooltip. The gtk-window implementation adds the .titlebar and .default-decoration style classes to the widget that is added as a titlebar child. Style Property Details
Signal DetailsThe "activate-default" signallambda (window) :actionThe signal is a keybinding signal which gets emitted when the user activates the default widget of the window.
The "activate-focus" signallambda (window) :actionThe signal is a keybinding signal which gets emitted when the user activates the currently focused widget of the window.
The "enable-debugging" signallambda (window toggle) :actionThe signal is a keybinding signal which gets emitted when the user enables or disables interactive debugging. When the toggle argument is true, interactive debugging is toggled on or off, when it is false, the debugger will be pointed at the widget under the pointer. The default bindings for this signal are the Ctrl-Shift-I and Ctrl-Shift-D keys.
The "keys-changed" signallambda (window) :run-firstThe signal gets emitted when the set of accelerators or mnemonics that are associated with the window changes.
The "set-focus" signallambda (window widget) :run-lastThe signal is emitted whenever the currently focused widget in this window changes.
| Slot Access FunctionsInherited Slot Access FunctionsSee also |
*2021-9-9