Popup
Object Hierarchy:
Gdk.Popup
Gdk.Popup
Gdk.Popup
Gdk.Surface
Gdk.Surface
Gdk.Surface->Gdk.Popup
GLib.Object
GLib.Object
GLib.Object->Gdk.Surface
Description:
[
CCode ( type_cname =
"GdkPopupInterface" , type_id =
"gdk_popup_get_type ()" ) ]
public interface Popup :
Surface
A `GdkPopup` is a surface that is attached to another surface.
The `GdkPopup` is positioned relative to its parent surface.
`GdkPopup`s are typically used to implement menus and similar popups. They can be modal, which is indicated by the [
property@GdkPopup:autohide] property.
Content:
Properties:
Methods:
public bool get_autohide ()
Returns whether this popup is set to hide on outside clicks.
public unowned Surface ? get_parent ()
Returns the parent surface of a popup.
public int get_position_x ()
Obtains the position of the popup relative to its parent.
public int get_position_y ()
Obtains the position of the popup relative to its parent.
public Gravity get_rect_anchor ()
Gets the current popup rectangle anchor.
public Gravity get_surface_anchor ()
Gets the current popup surface anchor.
public bool present (int width, int height, PopupLayout layout)
Present this after having processed
the `GdkPopupLayout` rules.
Inherited Members:
All known members inherited from class Gdk.Surface
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref