webkitwebprocessextension.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
ContextMenuItemGidBuilder builder() static nothrowGet builder for [webkitwebprocessextension.context_menu_item.ContextMenuItem] Returns: New builder objectwebkitwebprocessextension.context_menu_item.ContextMenuItem newFromGaction(gio.action.Action action, string label, glib.variant.Variant target = null) static nothrowCreates a new #WebKitContextMenuItem for the given action and label.webkitwebprocessextension.context_menu_item.ContextMenuItem newFromStockAction(webkitwebprocessextension.types.ContextMenuAction action) static nothrowCreates a new #WebKitContextMenuItem for the given stock action.webkitwebprocessextension.context_menu_item.ContextMenuItem newFromStockActionWithLabel(webkitwebprocessextension.types.ContextMenuAction action, string label) static nothrowCreates a new #WebKitContextMenuItem for the given stock action using the given label.webkitwebprocessextension.context_menu_item.ContextMenuItem newSeparator() static nothrowCreates a new #WebKitContextMenuItem representing a separator. Returns: the newly created #WebKitContextMenuItem object.webkitwebprocessextension.context_menu_item.ContextMenuItem newWithSubmenu(string label, webkitwebprocessextension.context_menu.ContextMenu submenu) static nothrowCreates a new #WebKitContextMenuItem using the given label with a submenu.gio.action.Action getGaction() nothrowGets the action associated to item as a #GAction. Returns: the #GAction associated to the #WebKitContextMenuItem, or null if item is a separator.webkitwebprocessextension.types.ContextMenuAction getStockAction() nothrowGets the #WebKitContextMenuAction of item.webkitwebprocessextension.context_menu.ContextMenu getSubmenu() nothrowGets the submenu of item. Returns: the #WebKitContextMenu representing the submenu of item or null if item doesn't have a submenu.bool isSeparator() nothrowChecks whether item is a separator. Returns: true is item is a separator or false otherwisevoid setSubmenu(webkitwebprocessextension.context_menu.ContextMenu submenu = null) nothrowSets or replaces the item submenu.Fluent builder implementation template for webkitwebprocessextension.context_menu_item.ContextMenuItem
Fluent builder for webkitwebprocessextension.context_menu_item.ContextMenuItem
Methods