module Gdk::Popup

Overview

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.


Class Method Detail

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

def self.g_type : UInt64 #

Instance Method Detail

def autohide : Bool #

def autohide=(value : Bool) : Bool #

def autohide? : Bool #

def parent : Gdk::Surface | Nil #

def parent=(value : Gdk::Surface | Nil) : Gdk::Surface | Nil #

def position_x : Int32 #

def position_y : Int32 #

def present(width : Int32, height : Int32, layout : Gdk::PopupLayout) : Bool #

def rect_anchor : Gdk::Gravity #

def surface_anchor : Gdk::Gravity #

abstract def to_unsafe #