Table of Contents

Class ShortcutsSection

Namespace
Adw
Assembly
Adw-1.dll
public sealed class ShortcutsSection : Object, ListModel, Buildable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
ShortcutsSection
Implements
Inherited Members

Constructors

ShortcutsSection(ShortcutsSectionHandle)

protected ShortcutsSection(ShortcutsSectionHandle handle)

Parameters

handle ShortcutsSectionHandle

ShortcutsSection(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 ShortcutsSection(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ShortcutsSection(CreationData)

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

Parameters

data CreationData

Fields

ItemsChangedSignal

Signal Descriptor for OnItemsChanged.

public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal

Field Value

Signal<ListModel, ListModel.ItemsChangedSignalArgs>

TitlePropertyDefinition

public static readonly Property<string?, ShortcutsSection> TitlePropertyDefinition

Field Value

Property<string, ShortcutsSection>

Properties

Title

public string? Title { get; set; }

Property Value

string

Methods

Add(ShortcutsItem)

[Version("1.8")]
public void Add(ShortcutsItem item)

Parameters

item ShortcutsItem

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetItem(uint)

[Version("2.44")]
public nint GetItem(uint position)

Parameters

position uint

Returns

nint

GetItemType()

[Version("2.44")]
public Type GetItemType()

Returns

Type

GetNItems()

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

Returns

uint

GetObject(uint)

[Version("2.44")]
public Object? GetObject(uint position)

Parameters

position uint

Returns

Object

GetTitle()

[Version("1.8")]
public string? GetTitle()

Returns

string

ItemsChanged(uint, uint, uint)

[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)

Parameters

position uint
removed uint
added uint

New(string?)

[Version("1.8")]
public static ShortcutsSection New(string? title)

Parameters

title string

Returns

ShortcutsSection

NewFromPointer(nint, bool)

Creates a new managed ShortcutsSection instance for a given pointer.

public static ShortcutsSection NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ShortcutsSection

NewWithProperties(ConstructArgument[])

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

public static ShortcutsSection NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ShortcutsSection

SetTitle(string?)

[Version("1.8")]
public void SetTitle(string? title)

Parameters

title string

Events

OnItemsChanged

public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged

Event Type

SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs>