OptionMenu

class OptionMenu(pointer: <Error class: unknown class><<Error class: unknown class>>)

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 #WebKitOptionMenuItems that should be displayed.

Since

2.18

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitOptionMenuPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun activateItem(index: <Error class: unknown class>)

Activates the #WebKitOptionMenuItem at @index in @menu.

Link copied to clipboard
fun close()

Request to close a #WebKitOptionMenu.

Link copied to clipboard
fun connectClose(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when closing a #WebKitOptionMenu is requested. This can happen when the user explicitly calls webkit_option_menu_close() or when the element is detached from the current page.

Link copied to clipboard
fun getEvent(): <Error class: unknown class>

Gets the #GdkEvent that triggered the dropdown menu. If @menu was not triggered by a user interaction, like a mouse click, null is returned.

Link copied to clipboard
fun getItem(index: <Error class: unknown class>): OptionMenuItem

Returns the #WebKitOptionMenuItem at @index in @menu.

Link copied to clipboard
fun getNItems(): <Error class: unknown class>

Gets the length of the @menu.

Link copied to clipboard
fun selectItem(index: <Error class: unknown class>)

Selects the #WebKitOptionMenuItem at @index in @menu.