Table of Contents

Class ViewSwitcher

Namespace
Adw
Assembly
Adw-1.dll
public sealed class ViewSwitcher : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
ViewSwitcher
Implements
Inherited Members

Constructors

ViewSwitcher(ViewSwitcherHandle)

protected ViewSwitcher(ViewSwitcherHandle handle)

Parameters

handle ViewSwitcherHandle

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

Parameters

constructArguments ConstructArgument[]

ViewSwitcher(CreationData)

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

Parameters

data CreationData

Fields

PolicyPropertyDefinition

public static readonly Property<ViewSwitcherPolicy, ViewSwitcher> PolicyPropertyDefinition

Field Value

Property<ViewSwitcherPolicy, ViewSwitcher>

StackPropertyDefinition

public static readonly Property<ViewStack?, ViewSwitcher> StackPropertyDefinition

Field Value

Property<ViewStack, ViewSwitcher>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

Policy

public ViewSwitcherPolicy Policy { get; set; }

Property Value

ViewSwitcherPolicy

Stack

public ViewStack? Stack { get; set; }

Property Value

ViewStack

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

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

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetPolicy()

public ViewSwitcherPolicy GetPolicy()

Returns

ViewSwitcherPolicy

GetStack()

public ViewStack? GetStack()

Returns

ViewStack

New()

public static ViewSwitcher New()

Returns

ViewSwitcher

NewFromPointer(nint, bool)

Creates a new managed ViewSwitcher instance for a given pointer.

public static ViewSwitcher NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ViewSwitcher

NewWithProperties(ConstructArgument[])

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

public static ViewSwitcher NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ViewSwitcher

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetPolicy(ViewSwitcherPolicy)

public void SetPolicy(ViewSwitcherPolicy policy)

Parameters

policy ViewSwitcherPolicy

SetStack(ViewStack?)

public void SetStack(ViewStack? stack)

Parameters

stack ViewStack

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

UpdatePlatformState(AccessiblePlatformState)

[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState