module Gdk::Toplevel
Overview
A Gdk::Toplevel
is a freestanding toplevel surface.
The Gdk::Toplevel
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.
Defined in:
lib/gi-crystal/src/auto/gdk-4.0/toplevel.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #begin_move(device : Gdk::Device, button : Int32, x : Float64, y : Float64, timestamp : UInt32) : Nil
- #begin_resize(edge : Gdk::SurfaceEdge, device : Gdk::Device | Nil, button : Int32, x : Float64, y : Float64, timestamp : UInt32) : Nil
- #compute_size_signal
- #decorated=(decorated : Bool) : Nil
- #decorated? : Bool
- #deletable=(deletable : Bool) : Nil
- #deletable? : Bool
- #focus(timestamp : UInt32) : Nil
- #fullscreen_mode : Gdk::FullscreenMode
- #fullscreen_mode=(value : Gdk::FullscreenMode) : Gdk::FullscreenMode
- #icon_list : Pointer(Void)
- #icon_list=(value : Pointer(Void)) : Pointer(Void)
- #icon_list=(surfaces : GLib::List) : Nil
- #inhibit_system_shortcuts(event : Gdk::Event | Nil) : Nil
- #lower : Bool
- #minimize : Bool
- #modal=(modal : Bool) : Nil
- #modal? : Bool
- #present(layout : Gdk::ToplevelLayout) : Nil
- #restore_system_shortcuts : Nil
- #shortcuts_inhibited? : Bool
- #show_window_menu(event : Gdk::Event) : Bool
- #startup_id : String
- #startup_id=(startup_id : String) : Nil
-
#startup_id=(value : Nil) : Nil
Set
#startup_id
property to nil. -
#startup_id? : String | Nil
Same as
#startup_id
, but can return nil. - #state : Gdk::ToplevelState
- #supports_edge_constraints : Bool
- #title : String
- #title=(title : String) : Nil
-
#title=(value : Nil) : Nil
Set
#title
property to nil. -
#title? : String | Nil
Same as
#title
, but can return nil. - #titlebar_gesture(gesture : Gdk::TitlebarGesture) : Bool
- #to_unsafe
- #transient_for : Gdk::Surface | Nil
- #transient_for=(parent : Gdk::Surface) : Nil
- #transient_for=(value : Gdk::Surface | Nil) : Gdk::Surface | Nil
Constructor Detail
Cast a GObject::Object
to self
, throws a TypeCastError
if the cast can't be made.
Class Method Detail
Instance Method Detail
def begin_move(device : Gdk::Device, button : Int32, x : Float64, y : Float64, timestamp : UInt32) : Nil
#
def begin_resize(edge : Gdk::SurfaceEdge, device : Gdk::Device | Nil, button : Int32, x : Float64, y : Float64, timestamp : UInt32) : Nil
#