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
OptionMenuGidBuilder builder() static nothrowGet builder for [webkit.option_menu.OptionMenu] Returns: New builder objectgdk.event.Event getEvent() nothrowGets 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) nothrowReturns the #WebKitOptionMenuItem at index in menu.uint getNItems() nothrowGets the length of the menu. Returns: the number of #WebKitOptionMenuItem<!-- -->s in menugulong 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) nothrowConnect to `Close` signal.Fluent builder implementation template for webkit.option_menu.OptionMenu
Fluent builder for webkit.option_menu.OptionMenu
Methods