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
handleShortcutsSectionHandle
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
constructArgumentsConstructArgument[]
ShortcutsSection(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ShortcutsSection(CreationData data)
Parameters
dataCreationData
Fields
ItemsChangedSignal
Signal Descriptor for OnItemsChanged.
public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal
Field Value
TitlePropertyDefinition
public static readonly Property<string?, ShortcutsSection> TitlePropertyDefinition
Field Value
Properties
Title
public string? Title { get; set; }
Property Value
Methods
Add(ShortcutsItem)
[Version("1.8")]
public void Add(ShortcutsItem item)
Parameters
itemShortcutsItem
GetBuildableId()
public string? GetBuildableId()
Returns
GetGType()
public static Type GetGType()
Returns
GetItem(uint)
[Version("2.44")]
public nint GetItem(uint position)
Parameters
positionuint
Returns
GetItemType()
[Version("2.44")]
public Type GetItemType()
Returns
GetNItems()
[Version("2.44")]
public uint GetNItems()
Returns
GetObject(uint)
[Version("2.44")]
public Object? GetObject(uint position)
Parameters
positionuint
Returns
GetTitle()
[Version("1.8")]
public string? GetTitle()
Returns
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
New(string?)
[Version("1.8")]
public static ShortcutsSection New(string? title)
Parameters
titlestring
Returns
NewFromPointer(nint, bool)
Creates a new managed ShortcutsSection instance for a given pointer.
public static ShortcutsSection NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ShortcutsSection and sets the properties specified by the construct arguments.
public static ShortcutsSection NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetTitle(string?)
[Version("1.8")]
public void SetTitle(string? title)
Parameters
titlestring
Events
OnItemsChanged
public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged