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
handleSidebarItemHandle
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
constructArgumentsConstructArgument[]
SidebarItem(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SidebarItem(CreationData data)
Parameters
dataCreationData
Fields
DragMotionActivatePropertyDefinition
public static readonly Property<bool, SidebarItem> DragMotionActivatePropertyDefinition
Field Value
EnabledPropertyDefinition
public static readonly Property<bool, SidebarItem> EnabledPropertyDefinition
Field Value
IconNamePropertyDefinition
public static readonly Property<string?, SidebarItem> IconNamePropertyDefinition
Field Value
IconPaintablePropertyDefinition
public static readonly Property<Paintable, SidebarItem> IconPaintablePropertyDefinition
Field Value
SectionPropertyDefinition
public static readonly Property<SidebarSection?, SidebarItem> SectionPropertyDefinition
Field Value
SubtitlePropertyDefinition
public static readonly Property<string?, SidebarItem> SubtitlePropertyDefinition
Field Value
SuffixPropertyDefinition
public static readonly Property<Widget?, SidebarItem> SuffixPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, SidebarItem> TitlePropertyDefinition
Field Value
TooltipPropertyDefinition
public static readonly Property<string?, SidebarItem> TooltipPropertyDefinition
Field Value
UseUnderlinePropertyDefinition
public static readonly Property<bool, SidebarItem> UseUnderlinePropertyDefinition
Field Value
VisiblePropertyDefinition
public static readonly Property<bool, SidebarItem> VisiblePropertyDefinition
Field Value
Properties
DragMotionActivate
public bool DragMotionActivate { get; set; }
Property Value
Enabled
public bool Enabled { get; set; }
Property Value
IconName
public string? IconName { get; set; }
Property Value
IconPaintable
public Paintable IconPaintable { get; set; }
Property Value
Section
public SidebarSection? Section { get; }
Property Value
Subtitle
public string? Subtitle { get; set; }
Property Value
Suffix
public Widget? Suffix { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
Tooltip
public string? Tooltip { get; set; }
Property Value
UseUnderline
public bool UseUnderline { get; set; }
Property Value
Visible
public bool Visible { get; set; }
Property Value
Methods
GetDragMotionActivate()
[Version("1.9")]
public bool GetDragMotionActivate()
Returns
GetEnabled()
[Version("1.9")]
public bool GetEnabled()
Returns
GetGType()
public static Type GetGType()
Returns
GetIconName()
[Version("1.9")]
public string? GetIconName()
Returns
GetIconPaintable()
[Version("1.9")]
public Paintable? GetIconPaintable()
Returns
GetIndex()
[Version("1.9")]
public uint GetIndex()
Returns
GetSection()
[Version("1.9")]
public SidebarSection? GetSection()
Returns
GetSectionIndex()
[Version("1.9")]
public uint GetSectionIndex()
Returns
GetSubtitle()
[Version("1.9")]
public string? GetSubtitle()
Returns
GetSuffix()
[Version("1.9")]
public Widget? GetSuffix()
Returns
GetTitle()
[Version("1.9")]
public string? GetTitle()
Returns
GetTooltip()
[Version("1.9")]
public string? GetTooltip()
Returns
GetUseUnderline()
[Version("1.9")]
public bool GetUseUnderline()
Returns
GetVisible()
[Version("1.9")]
public bool GetVisible()
Returns
New(string)
[Version("1.9")]
public static SidebarItem New(string title)
Parameters
titlestring
Returns
NewFromPointer(nint, bool)
Creates a new managed SidebarItem instance for a given pointer.
public static SidebarItem NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SidebarItem and sets the properties specified by the construct arguments.
public static SidebarItem NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetDragMotionActivate(bool)
[Version("1.9")]
public void SetDragMotionActivate(bool dragMotionActivate)
Parameters
dragMotionActivatebool
SetEnabled(bool)
[Version("1.9")]
public void SetEnabled(bool enabled)
Parameters
enabledbool
SetIconName(string?)
[Version("1.9")]
public void SetIconName(string? iconName)
Parameters
iconNamestring
SetIconPaintable(Paintable?)
[Version("1.9")]
public void SetIconPaintable(Paintable? paintable)
Parameters
paintablePaintable
SetSubtitle(string?)
[Version("1.9")]
public void SetSubtitle(string? subtitle)
Parameters
subtitlestring
SetSuffix(Widget?)
[Version("1.9")]
public void SetSuffix(Widget? suffix)
Parameters
suffixWidget
SetTitle(string?)
[Version("1.9")]
public void SetTitle(string? title)
Parameters
titlestring
SetTooltip(string?)
[Version("1.9")]
public void SetTooltip(string? tooltip)
Parameters
tooltipstring
SetUseUnderline(bool)
[Version("1.9")]
public void SetUseUnderline(bool useUnderline)
Parameters
useUnderlinebool
SetVisible(bool)
[Version("1.9")]
public void SetVisible(bool visible)
Parameters
visiblebool