Table of Contents

Class SidebarItem

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

Constructors

SidebarItem(SidebarItemHandle)

protected SidebarItem(SidebarItemHandle handle)

Parameters

handle SidebarItemHandle

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

Parameters

constructArguments ConstructArgument[]

SidebarItem(CreationData)

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

Parameters

data CreationData

Fields

DragMotionActivatePropertyDefinition

public static readonly Property<bool, SidebarItem> DragMotionActivatePropertyDefinition

Field Value

Property<bool, SidebarItem>

EnabledPropertyDefinition

public static readonly Property<bool, SidebarItem> EnabledPropertyDefinition

Field Value

Property<bool, SidebarItem>

IconNamePropertyDefinition

public static readonly Property<string?, SidebarItem> IconNamePropertyDefinition

Field Value

Property<string, SidebarItem>

IconPaintablePropertyDefinition

public static readonly Property<Paintable, SidebarItem> IconPaintablePropertyDefinition

Field Value

Property<Paintable, SidebarItem>

SectionPropertyDefinition

public static readonly Property<SidebarSection?, SidebarItem> SectionPropertyDefinition

Field Value

Property<SidebarSection, SidebarItem>

SubtitlePropertyDefinition

public static readonly Property<string?, SidebarItem> SubtitlePropertyDefinition

Field Value

Property<string, SidebarItem>

SuffixPropertyDefinition

public static readonly Property<Widget?, SidebarItem> SuffixPropertyDefinition

Field Value

Property<Widget, SidebarItem>

TitlePropertyDefinition

public static readonly Property<string?, SidebarItem> TitlePropertyDefinition

Field Value

Property<string, SidebarItem>

TooltipPropertyDefinition

public static readonly Property<string?, SidebarItem> TooltipPropertyDefinition

Field Value

Property<string, SidebarItem>

UseUnderlinePropertyDefinition

public static readonly Property<bool, SidebarItem> UseUnderlinePropertyDefinition

Field Value

Property<bool, SidebarItem>

VisiblePropertyDefinition

public static readonly Property<bool, SidebarItem> VisiblePropertyDefinition

Field Value

Property<bool, SidebarItem>

Properties

DragMotionActivate

public bool DragMotionActivate { get; set; }

Property Value

bool

Enabled

public bool Enabled { get; set; }

Property Value

bool

IconName

public string? IconName { get; set; }

Property Value

string

IconPaintable

public Paintable IconPaintable { get; set; }

Property Value

Paintable

Section

public SidebarSection? Section { get; }

Property Value

SidebarSection

Subtitle

public string? Subtitle { get; set; }

Property Value

string

Suffix

public Widget? Suffix { get; set; }

Property Value

Widget

Title

public string? Title { get; set; }

Property Value

string

Tooltip

public string? Tooltip { get; set; }

Property Value

string

UseUnderline

public bool UseUnderline { get; set; }

Property Value

bool

Visible

public bool Visible { get; set; }

Property Value

bool

Methods

GetDragMotionActivate()

[Version("1.9")]
public bool GetDragMotionActivate()

Returns

bool

GetEnabled()

[Version("1.9")]
public bool GetEnabled()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetIconName()

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

Returns

string

GetIconPaintable()

[Version("1.9")]
public Paintable? GetIconPaintable()

Returns

Paintable

GetIndex()

[Version("1.9")]
public uint GetIndex()

Returns

uint

GetSection()

[Version("1.9")]
public SidebarSection? GetSection()

Returns

SidebarSection

GetSectionIndex()

[Version("1.9")]
public uint GetSectionIndex()

Returns

uint

GetSubtitle()

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

Returns

string

GetSuffix()

[Version("1.9")]
public Widget? GetSuffix()

Returns

Widget

GetTitle()

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

Returns

string

GetTooltip()

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

Returns

string

GetUseUnderline()

[Version("1.9")]
public bool GetUseUnderline()

Returns

bool

GetVisible()

[Version("1.9")]
public bool GetVisible()

Returns

bool

New(string)

[Version("1.9")]
public static SidebarItem New(string title)

Parameters

title string

Returns

SidebarItem

NewFromPointer(nint, bool)

Creates a new managed SidebarItem instance for a given pointer.

public static SidebarItem NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SidebarItem

NewWithProperties(ConstructArgument[])

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

public static SidebarItem NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SidebarItem

SetDragMotionActivate(bool)

[Version("1.9")]
public void SetDragMotionActivate(bool dragMotionActivate)

Parameters

dragMotionActivate bool

SetEnabled(bool)

[Version("1.9")]
public void SetEnabled(bool enabled)

Parameters

enabled bool

SetIconName(string?)

[Version("1.9")]
public void SetIconName(string? iconName)

Parameters

iconName string

SetIconPaintable(Paintable?)

[Version("1.9")]
public void SetIconPaintable(Paintable? paintable)

Parameters

paintable Paintable

SetSubtitle(string?)

[Version("1.9")]
public void SetSubtitle(string? subtitle)

Parameters

subtitle string

SetSuffix(Widget?)

[Version("1.9")]
public void SetSuffix(Widget? suffix)

Parameters

suffix Widget

SetTitle(string?)

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

Parameters

title string

SetTooltip(string?)

[Version("1.9")]
public void SetTooltip(string? tooltip)

Parameters

tooltip string

SetUseUnderline(bool)

[Version("1.9")]
public void SetUseUnderline(bool useUnderline)

Parameters

useUnderline bool

SetVisible(bool)

[Version("1.9")]
public void SetVisible(bool visible)

Parameters

visible bool