Table of Contents

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

constructArguments ConstructArgument[]

OptionMenu(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected OptionMenu(CreationData data)

Parameters

data CreationData

OptionMenu(OptionMenuHandle)

protected OptionMenu(OptionMenuHandle handle)

Parameters

handle OptionMenuHandle

Fields

CloseSignal

Signal Descriptor for OnClose.

public static readonly Signal<OptionMenu> CloseSignal

Field Value

Signal<OptionMenu>

Methods

ActivateItem(uint)

[Version("2.18")]
public void ActivateItem(uint index)

Parameters

index uint

Close()

[Version("2.18")]
public void Close()

GetEvent()

[Version("2.40")]
public Event GetEvent()

Returns

Event

GetGType()

public static Type GetGType()

Returns

Type

GetItem(uint)

[Version("2.18")]
public OptionMenuItem GetItem(uint index)

Parameters

index uint

Returns

OptionMenuItem

GetNItems()

[Version("2.18")]
public uint GetNItems()

Returns

uint

NewFromPointer(nint, bool)

Creates a new managed OptionMenu instance for a given pointer.

public static OptionMenu NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

OptionMenu

NewWithProperties(ConstructArgument[])

Creates a new OptionMenu and sets the properties specified by the construct arguments.

public static OptionMenu NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

OptionMenu

SelectItem(uint)

[Version("2.18")]
public void SelectItem(uint index)

Parameters

index uint

Events

OnClose

public event SignalHandler<OptionMenu> OnClose

Event Type

SignalHandler<OptionMenu>