webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Attributes | List of all members
_WebKitContextMenuPrivate Struct Reference

Public Attributes

GList * items
 
WebKitContextMenuItemparentItem
 
GRefPtr< GVariant > userData
 

Detailed Description

SECTION: WebKitContextMenu : Represents the context menu in a WebKitWebView : WebKitContextMenu

WebKitContextMenu represents a context menu containing #WebKitContextMenuItems in a WebKitWebView.

When a WebKitWebView is about to display the context menu, it emits the #WebKitWebView::context-menu signal, which has the WebKitContextMenu as an argument. You can modify it, adding new submenus that you can create with webkit_context_menu_new(), adding new #WebKitContextMenuItems with webkit_context_menu_prepend(), webkit_context_menu_append() or webkit_context_menu_insert(), maybe after having removed the existing ones with webkit_context_menu_remove_all().

Member Data Documentation

◆ items

GList* _WebKitContextMenuPrivate::items

◆ parentItem

WebKitContextMenuItem* _WebKitContextMenuPrivate::parentItem

◆ userData

GRefPtr<GVariant> _WebKitContextMenuPrivate::userData

The documentation for this struct was generated from the following file: