webkit.option_menu

Module for [OptionMenu] class

Types 3

Represents the dropdown menu of a select element in a #WebKitWebView.

When a select element in a #WebKitWebView needs to display a dropdown menu, the signal #WebKitWebView::show-option-menu is emitted, providing a WebKitOptionMenu with the #WebKitOptionMenuItem<!-- -->s that should be displayed.

Methods
GType _gType() @property
OptionMenu self()Returns `this`, for use in `with` statements.
OptionMenuGidBuilder builder()Get builder for [webkit.option_menu.OptionMenu] Returns: New builder object
void activateItem(uint index)Activates the #WebKitOptionMenuItem at index in menu.
void close()Request to close a #WebKitOptionMenu.
gdk.event.Event getEvent()Gets the #GdkEvent that triggered the dropdown menu. If menu was not triggered by a user interaction, like a mouse click, null is returned. Returns: the menu event or null.
webkit.option_menu_item.OptionMenuItem getItem(uint index)Returns the #WebKitOptionMenuItem at index in menu.
uint getNItems()Gets the length of the menu. Returns: the number of #WebKitOptionMenuItem<!-- -->s in menu
void selectItem(uint index)Selects the #WebKitOptionMenuItem at index in menu.
gulong connectClose(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.option_menu.OptionMenu))) && Parameters!T.length < 2)Connect to `Close` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.option_menu.OptionMenu]

Methods