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

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 #