Package: gtk
Class gtk:window
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gtk:native, gtk:root, gtk:shortcut-manager, gobject:object, common-lisp:standard-object, common-lisp:t Documented SubclassesDirect SlotsDetails The 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, for example, to resize it, move it, or close it. GtkWindow as GtkBuildableCSS nodeswindow.background [.csd / .solid-csd / .ssd] [.maximized / .fullscreen / .tiled] ├── <child> ╰── <titlebar child>.titlebar [.default-decoration]The gtk:window implementation has a main CSS node with name window and .background style class. 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. Generally, some CSS properties do not make sense on the toplevel window node, such as margins or padding. When client-side decorations without invisible borders are in use, that is, the .solid-csd style class is added to the main window node, the CSS border of the toplevel window is used for resize drags. In the .csd case, the shadow area outside of the window can be used to resize it. The gtk:window implementation adds the .titlebar and .default-decoration style classes to the widget that is added as a titlebar child. AccessibilitySignal DetailsThe "activate-default" signallambda (window) :action
The "activate-focus" signallambda (window) :action
The "close-request" signallambda (window) :run-last
The "enable-debugging" signallambda (window toggle) :action
The "keys-changed" signallambda (window) :run-first
Warning: Deprecated since 4.10. Use gtk:shortcut and gtk:event-controller objects to implement keyboard shortcuts. | Returned bySlot Access FunctionsInherited Slot Access Functions |
2024-10-2