Package org.gnome.webkit
Class OptionMenuItem
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.webkit.OptionMenuItem
- All Implemented Interfaces:
Proxy
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.
-
Constructor Summary
ConstructorDescriptionOptionMenuItem
(MemorySegment address) Create a OptionMenuItem proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Make a copy of theWebKitOptionMenuItem
.void
free()
Free theWebKitOptionMenuItem
.getLabel()
Get the label of aWebKitOptionMenuItem
.Get the tooltip of aWebKitOptionMenuItem
.static Type
getType()
Get the GType of the OptionMenuItem classboolean
Whether aWebKitOptionMenuItem
is enabled.boolean
Whether aWebKitOptionMenuItem
is a group child.boolean
Whether aWebKitOptionMenuItem
is a group label.boolean
Whether aWebKitOptionMenuItem
is the currently selected one.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OptionMenuItem
Create a OptionMenuItem proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
copy
Make a copy of theWebKitOptionMenuItem
.- Returns:
- A copy of passed in
WebKitOptionMenuItem
-
free
public void free()Free theWebKitOptionMenuItem
. -
getLabel
Get the label of aWebKitOptionMenuItem
.- Returns:
- The label of this OptionMenuItem.
-
getTooltip
Get the tooltip of aWebKitOptionMenuItem
.- Returns:
- The tooltip of this OptionMenuItem, or
null
.
-
isEnabled
public boolean isEnabled()Whether aWebKitOptionMenuItem
is enabled.- Returns:
true
if the this OptionMenuItem is enabled orfalse
otherwise.
-
isGroupChild
public boolean isGroupChild()Whether aWebKitOptionMenuItem
is a group child.- Returns:
true
if the this OptionMenuItem is a group child orfalse
otherwise.
-
isGroupLabel
public boolean isGroupLabel()Whether aWebKitOptionMenuItem
is a group label.- Returns:
true
if the this OptionMenuItem is a group label orfalse
otherwise.
-
isSelected
public boolean isSelected()Whether aWebKitOptionMenuItem
is the currently selected one.- Returns:
true
if the this OptionMenuItem is selected orfalse
otherwise.
-