Class OptionMenu
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class OptionMenu : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
OptionMenu
- Implements
- Inherited Members
Constructors
OptionMenu(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public OptionMenu(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
OptionMenu(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected OptionMenu(CreationData data)
Parameters
dataCreationData
OptionMenu(OptionMenuHandle)
protected OptionMenu(OptionMenuHandle handle)
Parameters
handleOptionMenuHandle
Fields
CloseSignal
Signal Descriptor for OnClose.
public static readonly Signal<OptionMenu> CloseSignal
Field Value
Methods
ActivateItem(uint)
[Version("2.18")]
public void ActivateItem(uint index)
Parameters
indexuint
Close()
[Version("2.18")]
public void Close()
GetEvent()
[Version("2.40")]
public Event GetEvent()
Returns
GetGType()
public static Type GetGType()
Returns
GetItem(uint)
[Version("2.18")]
public OptionMenuItem GetItem(uint index)
Parameters
indexuint
Returns
GetNItems()
[Version("2.18")]
public uint GetNItems()
Returns
NewFromPointer(nint, bool)
Creates a new managed OptionMenu instance for a given pointer.
public static OptionMenu NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new OptionMenu and sets the properties specified by the construct arguments.
public static OptionMenu NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SelectItem(uint)
[Version("2.18")]
public void SelectItem(uint index)
Parameters
indexuint
Events
OnClose
public event SignalHandler<OptionMenu> OnClose