Class HeaderBar
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class HeaderBar : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
HeaderBar
- Implements
- Inherited Members
Constructors
HeaderBar(HeaderBarHandle)
protected HeaderBar(HeaderBarHandle handle)
Parameters
handleHeaderBarHandle
HeaderBar(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 HeaderBar(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
HeaderBar(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected HeaderBar(CreationData data)
Parameters
dataCreationData
Fields
CenteringPolicyPropertyDefinition
public static readonly Property<CenteringPolicy, HeaderBar> CenteringPolicyPropertyDefinition
Field Value
DecorationLayoutPropertyDefinition
public static readonly Property<string?, HeaderBar> DecorationLayoutPropertyDefinition
Field Value
ShowBackButtonPropertyDefinition
public static readonly Property<bool, HeaderBar> ShowBackButtonPropertyDefinition
Field Value
ShowEndTitleButtonsPropertyDefinition
public static readonly Property<bool, HeaderBar> ShowEndTitleButtonsPropertyDefinition
Field Value
ShowStartTitleButtonsPropertyDefinition
public static readonly Property<bool, HeaderBar> ShowStartTitleButtonsPropertyDefinition
Field Value
ShowTitlePropertyDefinition
public static readonly Property<bool, HeaderBar> ShowTitlePropertyDefinition
Field Value
TitleWidgetPropertyDefinition
public static readonly Property<Widget?, HeaderBar> TitleWidgetPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
CenteringPolicy
public CenteringPolicy CenteringPolicy { get; set; }
Property Value
DecorationLayout
public string? DecorationLayout { get; set; }
Property Value
ShowBackButton
public bool ShowBackButton { get; set; }
Property Value
ShowEndTitleButtons
public bool ShowEndTitleButtons { get; set; }
Property Value
ShowStartTitleButtons
public bool ShowStartTitleButtons { get; set; }
Property Value
ShowTitle
public bool ShowTitle { get; set; }
Property Value
TitleWidget
public Widget? TitleWidget { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
messagestringpriorityAccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetBounds(out int, out int, out int, out int)
[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)
Parameters
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetCenteringPolicy()
public CenteringPolicy GetCenteringPolicy()
Returns
GetDecorationLayout()
public string? GetDecorationLayout()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
GetShowBackButton()
[Version("1.4")]
public bool GetShowBackButton()
Returns
GetShowEndTitleButtons()
public bool GetShowEndTitleButtons()
Returns
GetShowStartTitleButtons()
public bool GetShowStartTitleButtons()
Returns
GetShowTitle()
[Version("1.4")]
public bool GetShowTitle()
Returns
GetTitleWidget()
public Widget? GetTitleWidget()
Returns
New()
public static HeaderBar New()
Returns
NewFromPointer(nint, bool)
Creates a new managed HeaderBar instance for a given pointer.
public static HeaderBar NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new HeaderBar and sets the properties specified by the construct arguments.
public static HeaderBar NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PackEnd(Widget)
public void PackEnd(Widget child)
Parameters
childWidget
PackStart(Widget)
public void PackStart(Widget child)
Parameters
childWidget
Remove(Widget)
public void Remove(Widget child)
Parameters
childWidget
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
propertyAccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relationAccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
stateAccessibleState
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parentAccessiblenextSiblingAccessible
SetCenteringPolicy(CenteringPolicy)
public void SetCenteringPolicy(CenteringPolicy centeringPolicy)
Parameters
centeringPolicyCenteringPolicy
SetDecorationLayout(string?)
public void SetDecorationLayout(string? layout)
Parameters
layoutstring
SetShowBackButton(bool)
[Version("1.4")]
public void SetShowBackButton(bool showBackButton)
Parameters
showBackButtonbool
SetShowEndTitleButtons(bool)
public void SetShowEndTitleButtons(bool setting)
Parameters
settingbool
SetShowStartTitleButtons(bool)
public void SetShowStartTitleButtons(bool setting)
Parameters
settingbool
SetShowTitle(bool)
[Version("1.4")]
public void SetShowTitle(bool showTitle)
Parameters
showTitlebool
SetTitleWidget(Widget?)
public void SetTitleWidget(Widget? titleWidget)
Parameters
titleWidgetWidget
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
UpdatePlatformState(AccessiblePlatformState)
[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState