Class ButtonContent
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class ButtonContent : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
ButtonContent
- Implements
- Inherited Members
Constructors
ButtonContent(ButtonContentHandle)
protected ButtonContent(ButtonContentHandle handle)
Parameters
handleButtonContentHandle
ButtonContent(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 ButtonContent(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ButtonContent(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ButtonContent(CreationData data)
Parameters
dataCreationData
Fields
CanShrinkPropertyDefinition
public static readonly Property<bool, ButtonContent> CanShrinkPropertyDefinition
Field Value
IconNamePropertyDefinition
public static readonly Property<string?, ButtonContent> IconNamePropertyDefinition
Field Value
LabelPropertyDefinition
public static readonly Property<string?, ButtonContent> LabelPropertyDefinition
Field Value
UseUnderlinePropertyDefinition
public static readonly Property<bool, ButtonContent> UseUnderlinePropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
CanShrink
public bool CanShrink { get; set; }
Property Value
IconName
public string? IconName { get; set; }
Property Value
Label
public string? Label { get; set; }
Property Value
UseUnderline
public bool UseUnderline { 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
GetCanShrink()
[Version("1.4")]
public bool GetCanShrink()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetIconName()
public string GetIconName()
Returns
GetLabel()
public string GetLabel()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
GetUseUnderline()
public bool GetUseUnderline()
Returns
New()
public static ButtonContent New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ButtonContent instance for a given pointer.
public static ButtonContent NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ButtonContent and sets the properties specified by the construct arguments.
public static ButtonContent NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
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
SetCanShrink(bool)
[Version("1.4")]
public void SetCanShrink(bool canShrink)
Parameters
canShrinkbool
SetIconName(string)
public void SetIconName(string iconName)
Parameters
iconNamestring
SetLabel(string)
public void SetLabel(string label)
Parameters
labelstring
SetUseUnderline(bool)
public void SetUseUnderline(bool useUnderline)
Parameters
useUnderlinebool
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
UpdatePlatformState(AccessiblePlatformState)
[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState