Table of Contents

Class ContextMenuItem

Namespace
WebKitWebProcessExtension.Internal
Assembly
WebKitWebProcessExtension-6.0.dll
public class ContextMenuItem
Inheritance
ContextMenuItem
Inherited Members

Methods

GetGType()

Calls native function webkit_context_menu_item_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetGaction(IntPtr)

Calls native method webkit_context_menu_item_get_gaction. Version: 2.18

[Version("2.18")]
public static extern IntPtr GetGaction(IntPtr item)

Parameters

item IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetStockAction(IntPtr)

Calls native method webkit_context_menu_item_get_stock_action.

public static extern ContextMenuAction GetStockAction(IntPtr item)

Parameters

item IntPtr

Transfer ownership: None Nullable: False

Returns

ContextMenuAction

Transfer ownership: None Nullable: False

GetSubmenu(IntPtr)

Calls native method webkit_context_menu_item_get_submenu.

public static extern IntPtr GetSubmenu(IntPtr item)

Parameters

item IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

IsSeparator(IntPtr)

Calls native method webkit_context_menu_item_is_separator.

public static extern bool IsSeparator(IntPtr item)

Parameters

item IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

NewFromGaction(IntPtr, NonNullableUtf8StringHandle, VariantHandle)

Calls native constructor webkit_context_menu_item_new_from_gaction. Version: 2.18

[Version("2.18")]
public static extern IntPtr NewFromGaction(IntPtr action, NonNullableUtf8StringHandle label, VariantHandle target)

Parameters

action IntPtr

Transfer ownership: None Nullable: False

label NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

target VariantHandle

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromStockAction(ContextMenuAction)

Calls native constructor webkit_context_menu_item_new_from_stock_action.

public static extern IntPtr NewFromStockAction(ContextMenuAction action)

Parameters

action ContextMenuAction

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromStockActionWithLabel(ContextMenuAction, NonNullableUtf8StringHandle)

Calls native constructor webkit_context_menu_item_new_from_stock_action_with_label.

public static extern IntPtr NewFromStockActionWithLabel(ContextMenuAction action, NonNullableUtf8StringHandle label)

Parameters

action ContextMenuAction

Transfer ownership: None Nullable: False

label NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

NewSeparator()

Calls native constructor webkit_context_menu_item_new_separator.

public static extern IntPtr NewSeparator()

Returns

IntPtr

Transfer ownership: None Nullable: False

NewWithSubmenu(NonNullableUtf8StringHandle, IntPtr)

Calls native constructor webkit_context_menu_item_new_with_submenu.

public static extern IntPtr NewWithSubmenu(NonNullableUtf8StringHandle label, IntPtr submenu)

Parameters

label NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

submenu IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

SetSubmenu(IntPtr, IntPtr)

Calls native method webkit_context_menu_item_set_submenu.

public static extern void SetSubmenu(IntPtr item, IntPtr submenu)

Parameters

item IntPtr

Transfer ownership: None Nullable: False

submenu IntPtr

Transfer ownership: None Nullable: True