Class Leaflet
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class Leaflet : Widget, Swipeable, Accessible, Buildable, ConstraintTarget, Orientable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Leaflet
- Implements
- Inherited Members
Constructors
Leaflet(LeafletHandle)
protected Leaflet(LeafletHandle handle)
Parameters
handleLeafletHandle
Leaflet(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 Leaflet(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Leaflet(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Leaflet(CreationData data)
Parameters
dataCreationData
Fields
CanNavigateBackPropertyDefinition
public static readonly Property<bool, Leaflet> CanNavigateBackPropertyDefinition
Field Value
CanNavigateForwardPropertyDefinition
public static readonly Property<bool, Leaflet> CanNavigateForwardPropertyDefinition
Field Value
CanUnfoldPropertyDefinition
public static readonly Property<bool, Leaflet> CanUnfoldPropertyDefinition
Field Value
ChildTransitionParamsPropertyDefinition
public static readonly Property<SpringParams, Leaflet> ChildTransitionParamsPropertyDefinition
Field Value
ChildTransitionRunningPropertyDefinition
public static readonly Property<bool, Leaflet> ChildTransitionRunningPropertyDefinition
Field Value
FoldThresholdPolicyPropertyDefinition
public static readonly Property<FoldThresholdPolicy, Leaflet> FoldThresholdPolicyPropertyDefinition
Field Value
FoldedPropertyDefinition
public static readonly Property<bool, Leaflet> FoldedPropertyDefinition
Field Value
HomogeneousPropertyDefinition
public static readonly Property<bool, Leaflet> HomogeneousPropertyDefinition
Field Value
ModeTransitionDurationPropertyDefinition
public static readonly Property<uint, Leaflet> ModeTransitionDurationPropertyDefinition
Field Value
PagesPropertyDefinition
public static readonly Property<SelectionModel, Leaflet> PagesPropertyDefinition
Field Value
TransitionTypePropertyDefinition
public static readonly Property<LeafletTransitionType, Leaflet> TransitionTypePropertyDefinition
Field Value
VisibleChildNamePropertyDefinition
public static readonly Property<string?, Leaflet> VisibleChildNamePropertyDefinition
Field Value
VisibleChildPropertyDefinition
public static readonly Property<Widget?, Leaflet> VisibleChildPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
CanNavigateBack
public bool CanNavigateBack { get; set; }
Property Value
CanNavigateForward
public bool CanNavigateForward { get; set; }
Property Value
CanUnfold
public bool CanUnfold { get; set; }
Property Value
ChildTransitionParams
public SpringParams ChildTransitionParams { get; set; }
Property Value
ChildTransitionRunning
public bool ChildTransitionRunning { get; }
Property Value
FoldThresholdPolicy
public FoldThresholdPolicy FoldThresholdPolicy { get; set; }
Property Value
Folded
public bool Folded { get; }
Property Value
Homogeneous
public bool Homogeneous { get; set; }
Property Value
ModeTransitionDuration
public uint ModeTransitionDuration { get; set; }
Property Value
Pages
public SelectionModel Pages { get; }
Property Value
TransitionType
public LeafletTransitionType TransitionType { get; set; }
Property Value
VisibleChild
public Widget? VisibleChild { get; set; }
Property Value
VisibleChildName
public string? VisibleChildName { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
messagestringpriorityAccessibleAnnouncementPriority
Append(Widget)
public LeafletPage Append(Widget child)
Parameters
childWidget
Returns
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAdjacentChild(NavigationDirection)
public Widget? GetAdjacentChild(NavigationDirection direction)
Parameters
directionNavigationDirection
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
GetCanNavigateBack()
public bool GetCanNavigateBack()
Returns
GetCanNavigateForward()
public bool GetCanNavigateForward()
Returns
GetCanUnfold()
public bool GetCanUnfold()
Returns
GetCancelProgress()
public double GetCancelProgress()
Returns
GetChildByName(string)
public Widget? GetChildByName(string name)
Parameters
namestring
Returns
GetChildTransitionParams()
public SpringParams GetChildTransitionParams()
Returns
GetChildTransitionRunning()
public bool GetChildTransitionRunning()
Returns
GetDistance()
public double GetDistance()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetFoldThresholdPolicy()
public FoldThresholdPolicy GetFoldThresholdPolicy()
Returns
GetFolded()
public bool GetFolded()
Returns
GetGType()
public static Type GetGType()
Returns
GetHomogeneous()
public bool GetHomogeneous()
Returns
GetModeTransitionDuration()
public uint GetModeTransitionDuration()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetOrientation()
public Orientation GetOrientation()
Returns
GetPage(Widget)
public LeafletPage GetPage(Widget child)
Parameters
childWidget
Returns
GetPages()
public SelectionModel GetPages()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
GetProgress()
public double GetProgress()
Returns
GetSwipeArea(NavigationDirection, bool, out Rectangle)
public void GetSwipeArea(NavigationDirection navigationDirection, bool isDrag, out Rectangle rect)
Parameters
navigationDirectionNavigationDirectionisDragboolrectRectangle
GetTransitionType()
public LeafletTransitionType GetTransitionType()
Returns
GetVisibleChild()
public Widget? GetVisibleChild()
Returns
GetVisibleChildName()
public string? GetVisibleChildName()
Returns
InsertChildAfter(Widget, Widget?)
public LeafletPage InsertChildAfter(Widget child, Widget? sibling)
Parameters
Returns
Navigate(NavigationDirection)
public bool Navigate(NavigationDirection direction)
Parameters
directionNavigationDirection
Returns
New()
public static Leaflet New()
Returns
NewFromPointer(nint, bool)
Creates a new managed Leaflet instance for a given pointer.
public static Leaflet NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Leaflet and sets the properties specified by the construct arguments.
public static Leaflet NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Prepend(Widget)
public LeafletPage Prepend(Widget child)
Parameters
childWidget
Returns
Remove(Widget)
public void Remove(Widget child)
Parameters
childWidget
ReorderChildAfter(Widget, Widget?)
public void ReorderChildAfter(Widget child, Widget? sibling)
Parameters
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
SetCanNavigateBack(bool)
public void SetCanNavigateBack(bool canNavigateBack)
Parameters
canNavigateBackbool
SetCanNavigateForward(bool)
public void SetCanNavigateForward(bool canNavigateForward)
Parameters
canNavigateForwardbool
SetCanUnfold(bool)
public void SetCanUnfold(bool canUnfold)
Parameters
canUnfoldbool
SetChildTransitionParams(SpringParams)
public void SetChildTransitionParams(SpringParams @params)
Parameters
paramsSpringParams
SetFoldThresholdPolicy(FoldThresholdPolicy)
public void SetFoldThresholdPolicy(FoldThresholdPolicy policy)
Parameters
policyFoldThresholdPolicy
SetHomogeneous(bool)
public void SetHomogeneous(bool homogeneous)
Parameters
homogeneousbool
SetModeTransitionDuration(uint)
public void SetModeTransitionDuration(uint duration)
Parameters
durationuint
SetOrientation(Orientation)
public void SetOrientation(Orientation orientation)
Parameters
orientationOrientation
SetTransitionType(LeafletTransitionType)
public void SetTransitionType(LeafletTransitionType transition)
Parameters
transitionLeafletTransitionType
SetVisibleChild(Widget)
public void SetVisibleChild(Widget visibleChild)
Parameters
visibleChildWidget
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