module Gdk::Popup

Overview

A GdkPopup is a surface that is attached to another surface.

The GdkPopup is positioned relative to its parent surface.

GdkPopups are typically used to implement menus and similar popups. They can be modal, which is indicated by the GdkPopup#autohide property.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/popup.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.g_type : UInt64 #

Instance Method Detail

def autohide : Bool #

def autohide=(value : Bool) : Bool #

def autohide? : Bool #

def parent : Gdk::Surface? #

def parent=(value : Gdk::Surface?) : Gdk::Surface? #

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 #