webkit.context_menu_item

Module for [ContextMenuItem] class

Types 3

One item of a #WebKitContextMenu.

The #WebKitContextMenu is composed of #WebKitContextMenuItem<!-- -->s. These items can be created from a #GtkAction, from a #WebKitContextMenuAction or from a #WebKitContextMenuAction and a label. These #WebKitContextMenuAction<!-- -->s denote stock actions for the items. You can also create separators and submenus.

Methods
GType _gType() @property
ContextMenuItem self()Returns `this`, for use in `with` statements.
ContextMenuItemGidBuilder builder()Get builder for [webkit.contextmenuitem.ContextMenuItem] Returns: New builder object
webkit.context_menu_item.ContextMenuItem newFromGaction(gio.action.Action action, string label, glib.variant.Variant target = null)Creates a new #WebKitContextMenuItem for the given action and label.
webkit.context_menu_item.ContextMenuItem newFromStockAction(webkit.types.ContextMenuAction action)Creates a new #WebKitContextMenuItem for the given stock action.
webkit.context_menu_item.ContextMenuItem newFromStockActionWithLabel(webkit.types.ContextMenuAction action, string label)Creates a new #WebKitContextMenuItem for the given stock action using the given label.
webkit.context_menu_item.ContextMenuItem newSeparator()Creates a new #WebKitContextMenuItem representing a separator. Returns: the newly created #WebKitContextMenuItem object.
webkit.context_menu_item.ContextMenuItem newWithSubmenu(string label, webkit.context_menu.ContextMenu submenu)Creates a new #WebKitContextMenuItem using the given label with a submenu.
gio.action.Action getGaction()Gets the action associated to item as a #GAction. Returns: the #GAction associated to the #WebKitContextMenuItem, or null if item is a separator.
webkit.types.ContextMenuAction getStockAction()Gets the #WebKitContextMenuAction of item.
webkit.context_menu.ContextMenu getSubmenu()Gets the submenu of item. Returns: the #WebKitContextMenu representing the submenu of item or null if item doesn't have a submenu.
bool isSeparator()Checks whether item is a separator. Returns: true is item is a separator or false otherwise
void setSubmenu(webkit.context_menu.ContextMenu submenu = null)Sets or replaces the item submenu.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.context_menu_item.ContextMenuItem]