Class ViewStack
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class ViewStack : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
ViewStack
- Implements
- Inherited Members
Constructors
ViewStack(ViewStackHandle)
protected ViewStack(ViewStackHandle handle)
Parameters
handleViewStackHandle
ViewStack(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 ViewStack(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ViewStack(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ViewStack(CreationData data)
Parameters
dataCreationData
Fields
EnableTransitionsPropertyDefinition
public static readonly Property<bool, ViewStack> EnableTransitionsPropertyDefinition
Field Value
HhomogeneousPropertyDefinition
public static readonly Property<bool, ViewStack> HhomogeneousPropertyDefinition
Field Value
PagesPropertyDefinition
public static readonly Property<SelectionModel, ViewStack> PagesPropertyDefinition
Field Value
TransitionDurationPropertyDefinition
public static readonly Property<uint, ViewStack> TransitionDurationPropertyDefinition
Field Value
TransitionRunningPropertyDefinition
public static readonly Property<bool, ViewStack> TransitionRunningPropertyDefinition
Field Value
VhomogeneousPropertyDefinition
public static readonly Property<bool, ViewStack> VhomogeneousPropertyDefinition
Field Value
VisibleChildNamePropertyDefinition
public static readonly Property<string?, ViewStack> VisibleChildNamePropertyDefinition
Field Value
VisibleChildPropertyDefinition
public static readonly Property<Widget?, ViewStack> VisibleChildPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
EnableTransitions
public bool EnableTransitions { get; set; }
Property Value
Hhomogeneous
public bool Hhomogeneous { get; set; }
Property Value
Pages
public SelectionModel Pages { get; }
Property Value
TransitionDuration
public uint TransitionDuration { get; set; }
Property Value
TransitionRunning
public bool TransitionRunning { get; }
Property Value
Vhomogeneous
public bool Vhomogeneous { get; set; }
Property Value
VisibleChild
public Widget? VisibleChild { get; set; }
Property Value
VisibleChildName
public string? VisibleChildName { get; set; }
Property Value
Methods
Add(Widget)
public ViewStackPage Add(Widget child)
Parameters
childWidget
Returns
AddNamed(Widget, string?)
public ViewStackPage AddNamed(Widget child, string? name)
Parameters
Returns
AddTitled(Widget, string?, string)
public ViewStackPage AddTitled(Widget child, string? name, string title)
Parameters
Returns
AddTitledWithIcon(Widget, string?, string, string)
[Version("1.2")]
public ViewStackPage AddTitledWithIcon(Widget child, string? name, string title, string iconName)
Parameters
Returns
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
GetChildByName(string)
public Widget? GetChildByName(string name)
Parameters
namestring
Returns
GetEnableTransitions()
[Version("1.7")]
public bool GetEnableTransitions()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetHhomogeneous()
public bool GetHhomogeneous()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPage(Widget)
public ViewStackPage GetPage(Widget child)
Parameters
childWidget
Returns
GetPages()
public SelectionModel GetPages()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
GetTransitionDuration()
[Version("1.7")]
public uint GetTransitionDuration()
Returns
GetTransitionRunning()
[Version("1.7")]
public bool GetTransitionRunning()
Returns
GetVhomogeneous()
public bool GetVhomogeneous()
Returns
GetVisibleChild()
public Widget? GetVisibleChild()
Returns
GetVisibleChildName()
public string? GetVisibleChildName()
Returns
New()
public static ViewStack New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ViewStack instance for a given pointer.
public static ViewStack NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ViewStack and sets the properties specified by the construct arguments.
public static ViewStack NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
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
SetEnableTransitions(bool)
[Version("1.7")]
public void SetEnableTransitions(bool enableTransitions)
Parameters
enableTransitionsbool
SetHhomogeneous(bool)
public void SetHhomogeneous(bool hhomogeneous)
Parameters
hhomogeneousbool
SetTransitionDuration(uint)
[Version("1.7")]
public void SetTransitionDuration(uint duration)
Parameters
durationuint
SetVhomogeneous(bool)
public void SetVhomogeneous(bool vhomogeneous)
Parameters
vhomogeneousbool
SetVisibleChild(Widget)
public void SetVisibleChild(Widget child)
Parameters
childWidget
SetVisibleChildName(string)
public void SetVisibleChildName(string name)
Parameters
namestring
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
UpdatePlatformState(AccessiblePlatformState)
[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState