module Gdk::Popup

Overview

A Gdk::Popup is a surface that is attached to another surface.

The Gdk::Popup is positioned relative to its parent surface.

Gdk::Popups are typically used to implement menus and similar popups. They can be modal, which is indicated by the Gdk::Popup::autohide property.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/popup.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 autohide : Bool #

[View source]
def autohide=(value : Bool) : Bool #

[View source]
def autohide? : Bool #

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

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

[View source]
def position_x : Int32 #

[View source]
def position_y : Int32 #

[View source]
def present(width : Int32, height : Int32, layout : Gdk::PopupLayout) : Bool #

[View source]
def rect_anchor : Gdk::Gravity #

[View source]
def surface_anchor : Gdk::Gravity #

[View source]
abstract def to_unsafe #

[View source]