3.12 <WebKitOptionMenuItem>

Structure: <WebKitOptionMenuItem>

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.

Procedures

Method: option-menu-item:copy self ⇒ %return
Method: copy self ⇒ %return

Make a copy of the <WebKitOptionMenuItem>.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a <WebKitOptionMenuItem>.

A copy of passed in <WebKitOptionMenuItem>

Method: option-menu-item:free self
Method: free self

Free the <WebKitOptionMenuItem>.

self

Passed: a <WebKitOptionMenuItem>.

A <WebKitOptionMenuItem>

Method: option-menu-item:get-label self ⇒ %return
Method: get-label self ⇒ %return

Get the label of a <WebKitOptionMenuItem>.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a string.

The label of self.

Method: option-menu-item:get-tooltip self ⇒ %return
Method: get-tooltip self ⇒ %return

Get the tooltip of a <WebKitOptionMenuItem>.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a string.

The tooltip of self, or #f.

Method: option-menu-item:is-enabled? self ⇒ %return
Method: is-enabled? self ⇒ %return

Whether a <WebKitOptionMenuItem> is enabled.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a boolean.

#t if the self is enabled or #f otherwise.

Method: option-menu-item:is-group-child? self ⇒ %return
Method: is-group-child? self ⇒ %return

Whether a <WebKitOptionMenuItem> is a group child.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a boolean.

#t if the self is a group child or #f otherwise.

Method: option-menu-item:is-group-label? self ⇒ %return
Method: is-group-label? self ⇒ %return

Whether a <WebKitOptionMenuItem> is a group label.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a boolean.

#t if the self is a group label or #f otherwise.

Method: option-menu-item:is-selected? self ⇒ %return
Method: is-selected? self ⇒ %return

Whether a <WebKitOptionMenuItem> is the currently selected one.

self

Passed: a <WebKitOptionMenuItem>.

a <WebKitOptionMenuItem>

%return

Returned: a boolean.

#t if the self is selected or #f otherwise.