webkit.option_menu_item
Module for [OptionMenuItem] class
class OptionMenuItem
Types 1
One item of a #WebKitOptionMenu.
The #WebKitOptionMenu is composed of WebKitOptionMenuItem<!-- -->s. A WebKitOptionMenuItem always has a label and can contain a tooltip text. You can use the WebKitOptionMenuItem of a #WebKitOptionMenu to build your own menus.
Methods
OptionMenuItem self()Returns `this`, for use in `with` statements.webkit.option_menu_item.OptionMenuItem copy()Make a copy of the #WebKitOptionMenuItem. Returns: A copy of passed in #WebKitOptionMenuItemstring getLabel()Get the label of a #WebKitOptionMenuItem. Returns: The label of item.string getTooltip()Get the tooltip of a #WebKitOptionMenuItem. Returns: The tooltip of item, or null.bool isEnabled()Whether a #WebKitOptionMenuItem is enabled. Returns: true if the item is enabled or false otherwise.bool isGroupChild()Whether a #WebKitOptionMenuItem is a group child. Returns: true if the item is a group child or false otherwise.bool isGroupLabel()Whether a #WebKitOptionMenuItem is a group label. Returns: true if the item is a group label or false otherwise.bool isSelected()Whether a #WebKitOptionMenuItem is the currently selected one. Returns: true if the item is selected or false otherwise.