CompositedWindow


Object Hierarchy:

Granite.Widgets.CompositedWindow Granite.Widgets.CompositedWindow Granite.Widgets.CompositedWindow Gtk.Window Gtk.Window Gtk.Window->Granite.Widgets.CompositedWindow Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Window Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.Window Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Granite.Widgets.CompositedWindow Gtk.Buildable->Gtk.Window Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget

Description:


[ Version ( deprecated = true , deprecated_since = "5.5.0" , replacement = "Gtk.Window" ) ]
public class CompositedWindow : Window, Buildable

Warning: CompositedWindow is deprecated since 5.5.0. Use Gtk.Window.

CompositedWindow is an invisible window without decorations or background.

It is useful for handling different situations where the user has to "pick" something or select an area on the screen, although it can be used in other scenarios too. Most of the times the window will act as a surface to receive mouse / key press events from the user.

CompositedWindow does not and will not try to set any default size. You are responsible to set it's size to e.g: the window's screen size to have the window cover the enire screen area.

Note that you should provide a way for the user to exit the window since it's invisible. You can do that by connecting to Gtk.Widget.key_press_event signal and seeing if e.g: the user pressed an Escape key. You should always Gtk.Widget.destroy the window after it's not needed.

Do not forget to call Gtk.Widget.show_all to actually start receiving events.


Namespace: Granite.Widgets
Package: granite

Content:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Window
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor