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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


[View source]

Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def begin_move(device : Gdk::Device, button : Int32, x : Float64, y : Float64, timestamp : UInt32) : Nil #

[View source]
def begin_resize(edge : Gdk::SurfaceEdge, device : Gdk::Device | Nil, button : Int32, x : Float64, y : Float64, timestamp : UInt32) : Nil #

[View source]
def compute_size_signal #

[View source]
def decorated=(decorated : Bool) : Nil #

[View source]
def decorated? : Bool #

[View source]
def deletable=(deletable : Bool) : Nil #

[View source]
def deletable? : Bool #

[View source]
def focus(timestamp : UInt32) : Nil #

[View source]
def fullscreen_mode : Gdk::FullscreenMode #

[View source]
def fullscreen_mode=(value : Gdk::FullscreenMode) : Gdk::FullscreenMode #

[View source]
def icon_list : Pointer(Void) #

[View source]
def icon_list=(value : Pointer(Void)) : Pointer(Void) #

[View source]
def icon_list=(surfaces : GLib::List) : Nil #

[View source]
def inhibit_system_shortcuts(event : Gdk::Event | Nil) : Nil #

[View source]
def lower : Bool #

[View source]
def minimize : Bool #

[View source]
def modal=(modal : Bool) : Nil #

[View source]
def modal? : Bool #

[View source]
def present(layout : Gdk::ToplevelLayout) : Nil #

[View source]
def restore_system_shortcuts : Nil #

[View source]
def shortcuts_inhibited? : Bool #

[View source]
def show_window_menu(event : Gdk::Event) : Bool #

[View source]
def startup_id : String #

[View source]
def startup_id=(startup_id : String) : Nil #

[View source]
def state : Gdk::ToplevelState #

[View source]
def supports_edge_constraints : Bool #

[View source]
def title : String #

[View source]
def title=(title : String) : Nil #

[View source]
def titlebar_gesture(gesture : Gdk::TitlebarGesture) : Bool #

[View source]
abstract def to_unsafe #

[View source]
def transient_for : Gdk::Surface | Nil #

[View source]
def transient_for=(parent : Gdk::Surface) : Nil #

[View source]
def transient_for=(value : Gdk::Surface | Nil) : Gdk::Surface | Nil #

[View source]