Toplevel
Object Hierarchy:
Gdk.Toplevel
Gdk.Toplevel
Gdk.Toplevel
Gdk.Surface
Gdk.Surface
Gdk.Surface->Gdk.Toplevel
GLib.Object
GLib.Object
GLib.Object->Gdk.Surface
Description:
[
CCode ( type_cname =
"GdkToplevelInterface" , type_id =
"gdk_toplevel_get_type ()" ) ]
public interface Toplevel :
Surface
A `GdkToplevel` is 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 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 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 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_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)
Signals:
Inherited Members:
All known members inherited from class Gdk.Surface
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref