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
handleSidebarSectionHandle
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
constructArgumentsConstructArgument[]
SidebarSection(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SidebarSection(CreationData data)
Parameters
dataCreationData
Fields
ItemsPropertyDefinition
public static readonly Property<ListModel, SidebarSection> ItemsPropertyDefinition
Field Value
MenuModelPropertyDefinition
public static readonly Property<MenuModel?, SidebarSection> MenuModelPropertyDefinition
Field Value
SidebarPropertyDefinition
public static readonly Property<Sidebar?, SidebarSection> SidebarPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, SidebarSection> TitlePropertyDefinition
Field Value
Properties
Items
public ListModel Items { get; }
Property Value
MenuModel
public MenuModel? MenuModel { get; set; }
Property Value
Sidebar
public Sidebar? Sidebar { get; }
Property Value
Title
public string? Title { get; set; }
Property Value
Methods
Append(SidebarItem)
[Version("1.9")]
public void Append(SidebarItem item)
Parameters
itemSidebarItem
BindModel(ListModel?, SidebarSectionCreateItemFunc?)
[Version("1.9")]
public void BindModel(ListModel? model, SidebarSectionCreateItemFunc? createItemFunc)
Parameters
modelListModelcreateItemFuncSidebarSectionCreateItemFuncA callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).
GetBuildableId()
public string? GetBuildableId()
Returns
GetGType()
public static Type GetGType()
Returns
GetItem(uint)
[Version("1.9")]
public SidebarItem? GetItem(uint index)
Parameters
indexuint
Returns
GetItems()
[Version("1.9")]
public ListModel GetItems()
Returns
GetMenuModel()
[Version("1.9")]
public MenuModel? GetMenuModel()
Returns
GetSidebar()
[Version("1.9")]
public Sidebar? GetSidebar()
Returns
GetTitle()
[Version("1.9")]
public string? GetTitle()
Returns
Insert(SidebarItem, int)
[Version("1.9")]
public void Insert(SidebarItem item, int position)
Parameters
itemSidebarItempositionint
New()
[Version("1.9")]
public static SidebarSection New()
Returns
NewFromPointer(nint, bool)
Creates a new managed SidebarSection instance for a given pointer.
public static SidebarSection NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SidebarSection and sets the properties specified by the construct arguments.
public static SidebarSection NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Prepend(SidebarItem)
[Version("1.9")]
public void Prepend(SidebarItem item)
Parameters
itemSidebarItem
Remove(SidebarItem)
[Version("1.9")]
public void Remove(SidebarItem item)
Parameters
itemSidebarItem
RemoveAll()
[Version("1.9")]
public void RemoveAll()
SetMenuModel(MenuModel?)
[Version("1.9")]
public void SetMenuModel(MenuModel? menuModel)
Parameters
menuModelMenuModel
SetTitle(string?)
[Version("1.9")]
public void SetTitle(string? title)
Parameters
titlestring