ContextMenuItem

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

One item of a #WebKitContextMenu.

The #WebKitContextMenu is composed of #WebKitContextMenuItems. These items can be created from a #GtkAction, from a #WebKitContextMenuAction or from a #WebKitContextMenuAction and a label. These #WebKitContextMenuActions denote stock actions for the items. You can also create separators and submenus.

Constructors

Link copied to clipboard
constructor()

Creates a new #WebKitContextMenuItem representing a separator.

constructor(action: <Error class: unknown class>, label: String, target: <Error class: unknown class>? = null)

Creates a new #WebKitContextMenuItem for the given @action and @label.

constructor(action: ContextMenuAction)

Creates a new #WebKitContextMenuItem for the given stock action.

constructor(action: ContextMenuAction, label: String)

Creates a new #WebKitContextMenuItem for the given stock action using the given @label.

constructor(label: String, submenu: ContextMenu)

Creates a new #WebKitContextMenuItem using the given @label with a submenu.

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

Types

Link copied to clipboard
object Companion

Properties

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

Functions

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

Gets the action associated to @item as a #GAction.

Link copied to clipboard

Gets the #WebKitContextMenuAction of @item.

Link copied to clipboard

Gets the submenu of @item.

Link copied to clipboard

Checks whether @item is a separator.

Link copied to clipboard
fun setSubmenu(submenu: ContextMenu? = null)

Sets or replaces the @item submenu.