webkit.option_menu_item

Module for [OptionMenuItem] class

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
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
OptionMenuItem self() nothrowReturns `this`, for use in `with` statements.
webkit.option_menu_item.OptionMenuItem copy() nothrowMake a copy of the #WebKitOptionMenuItem. Returns: A copy of passed in #WebKitOptionMenuItem
string getLabel() nothrowGet the label of a #WebKitOptionMenuItem. Returns: The label of item.
string getTooltip() nothrowGet the tooltip of a #WebKitOptionMenuItem. Returns: The tooltip of item, or null.
bool isEnabled() nothrowWhether a #WebKitOptionMenuItem is enabled. Returns: true if the item is enabled or false otherwise.
bool isGroupChild() nothrowWhether a #WebKitOptionMenuItem is a group child. Returns: true if the item is a group child or false otherwise.
bool isGroupLabel() nothrowWhether a #WebKitOptionMenuItem is a group label. Returns: true if the item is a group label or false otherwise.
bool isSelected() nothrowWhether a #WebKitOptionMenuItem is the currently selected one. Returns: true if the item is selected or false otherwise.
Constructors
this(void * ptr, Flag!"Take" take)