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::Popup
s 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.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #autohide : Bool
- #autohide=(value : Bool) : Bool
- #autohide? : Bool
- #parent : Gdk::Surface | Nil
- #parent=(value : Gdk::Surface | Nil) : Gdk::Surface | Nil
- #position_x : Int32
- #position_y : Int32
- #present(width : Int32, height : Int32, layout : Gdk::PopupLayout) : Bool
- #rect_anchor : Gdk::Gravity
- #surface_anchor : Gdk::Gravity
- #to_unsafe
Constructor Detail
Cast a GObject::Object
to self
, throws a TypeCastError
if the cast can't be made.