Table of Contents

Class SidebarSection

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

Constructors

SidebarSection(SidebarSectionHandle)

protected SidebarSection(SidebarSectionHandle handle)

Parameters

handle SidebarSectionHandle

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

Parameters

constructArguments ConstructArgument[]

SidebarSection(CreationData)

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

Parameters

data CreationData

Fields

ItemsPropertyDefinition

public static readonly Property<ListModel, SidebarSection> ItemsPropertyDefinition

Field Value

Property<ListModel, SidebarSection>

MenuModelPropertyDefinition

public static readonly Property<MenuModel?, SidebarSection> MenuModelPropertyDefinition

Field Value

Property<MenuModel, SidebarSection>

SidebarPropertyDefinition

public static readonly Property<Sidebar?, SidebarSection> SidebarPropertyDefinition

Field Value

Property<Sidebar, SidebarSection>

TitlePropertyDefinition

public static readonly Property<string?, SidebarSection> TitlePropertyDefinition

Field Value

Property<string, SidebarSection>

Properties

Items

public ListModel Items { get; }

Property Value

ListModel

MenuModel

public MenuModel? MenuModel { get; set; }

Property Value

MenuModel

Sidebar

public Sidebar? Sidebar { get; }

Property Value

Sidebar

Title

public string? Title { get; set; }

Property Value

string

Methods

Append(SidebarItem)

[Version("1.9")]
public void Append(SidebarItem item)

Parameters

item SidebarItem

BindModel(ListModel?, SidebarSectionCreateItemFunc?)

[Version("1.9")]
public void BindModel(ListModel? model, SidebarSectionCreateItemFunc? createItemFunc)

Parameters

model ListModel
createItemFunc SidebarSectionCreateItemFunc

A callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetItem(uint)

[Version("1.9")]
public SidebarItem? GetItem(uint index)

Parameters

index uint

Returns

SidebarItem

GetItems()

[Version("1.9")]
public ListModel GetItems()

Returns

ListModel

GetMenuModel()

[Version("1.9")]
public MenuModel? GetMenuModel()

Returns

MenuModel

GetSidebar()

[Version("1.9")]
public Sidebar? GetSidebar()

Returns

Sidebar

GetTitle()

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

Returns

string

Insert(SidebarItem, int)

[Version("1.9")]
public void Insert(SidebarItem item, int position)

Parameters

item SidebarItem
position int

New()

[Version("1.9")]
public static SidebarSection New()

Returns

SidebarSection

NewFromPointer(nint, bool)

Creates a new managed SidebarSection instance for a given pointer.

public static SidebarSection NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SidebarSection

NewWithProperties(ConstructArgument[])

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

public static SidebarSection NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SidebarSection

Prepend(SidebarItem)

[Version("1.9")]
public void Prepend(SidebarItem item)

Parameters

item SidebarItem

Remove(SidebarItem)

[Version("1.9")]
public void Remove(SidebarItem item)

Parameters

item SidebarItem

RemoveAll()

[Version("1.9")]
public void RemoveAll()

SetMenuModel(MenuModel?)

[Version("1.9")]
public void SetMenuModel(MenuModel? menuModel)

Parameters

menuModel MenuModel

SetTitle(string?)

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

Parameters

title string