Toplevel
Object Hierarchy:
Description:
[
CCode ( type_cname =
"GdkToplevelInterface" , type_id =
"gdk_toplevel_get_type ()" ) ]
public interface Toplevel :
Surface
A freestanding toplevel surface.
The `GdkToplevel` interface provides useful APIs for interacting with the windowing system, such as controlling maximization and size of
the surface, setting icons and transient parents for dialogs.
Content:
Properties:
- public abstract ToplevelCapabilities capabilities { get; }
The capabilities that are available for this toplevel.
- public abstract bool decorated { get; set; }
Whether the window manager should add decorations.
- public abstract bool deletable { get; set; }
Whether the window manager should allow to close the surface.
- public abstract FullscreenMode fullscreen_mode { get; set; }
The fullscreen mode of the surface.
- public abstract Gravity gravity { get; set; }
The gravity to use when resizing a surface programmatically.
- public abstract void* icon_list { get; set; }
A list of textures to use as icon.
- public abstract bool modal { get; set; }
Whether the surface is modal.
- public abstract bool shortcuts_inhibited { get; }
Whether the surface should inhibit keyboard shortcuts.
- public abstract string startup_id { owned get; set; }
The startup ID of the surface.
- public abstract ToplevelState state { get; }
The state of the toplevel.
- public abstract string title { owned get; set; }
The title of the surface.
- public abstract Surface transient_for { owned get; set; }
The transient parent of the surface.
Methods:
- public void begin_move (Device device, int button, double x, double y, uint32 timestamp)
Begins an interactive move operation.
- public void begin_resize (SurfaceEdge edge, Device? device, int button, double x, double y, uint32 timestamp)
Begins an interactive resize operation.
- public void focus (uint32 timestamp)
Sets keyboard focus to surface.
- public ToplevelCapabilities get_capabilities ()
The capabilities that are available for this toplevel.
- public Gravity get_gravity ()
Returns the gravity that is used when changing the toplevel size
programmatically.
- public ToplevelState get_state ()
Gets the bitwise or of the currently active surface state flags, from
the `GdkToplevelState` enumeration.
- public void inhibit_system_shortcuts (Event? event)
Requests that the this inhibit the
system shortcuts.
- public bool lower ()
Asks to lower the this below other
windows.
- public bool minimize ()
Asks to minimize the this.
- public void present (ToplevelLayout layout)
Present this after having processed
the `GdkToplevelLayout` rules.
- public void restore_system_shortcuts ()
Restore default system keyboard shortcuts which were previously
inhibited.
- public void set_decorated (bool decorated)
Sets the toplevel to be decorated.
- public void set_deletable (bool deletable)
Sets the toplevel to be deletable.
- public void set_gravity (Gravity gravity)
Sets the gravity that is used when changing the toplevel size
programmatically.
- public void set_icon_list (List<Texture> surfaces)
Sets a list of icons for the surface.
- public void set_modal (bool modal)
Sets the toplevel to be modal.
- public void set_startup_id (string startup_id)
Sets the startup notification ID.
- public void set_title (string title)
Sets the title of a toplevel surface.
- public void set_transient_for (Surface parent)
Sets a transient-for parent.
- public bool show_window_menu (Event event)
Asks the windowing system to show the window menu.
- public bool supports_edge_constraints ()
Returns whether the desktop environment supports tiled window states.
- public bool titlebar_gesture (TitlebarGesture gesture)
Performs a title bar gesture.
Signals:
Inherited Members:
All known members inherited from class Gdk.Surface
All known members inherited from class GLib.Object