Class Layer
Information about a compositing layer.
public sealed record Layer : IEquatable<Layer>
- Inheritance
-
Layer
- Implements
- Inherited Members
Constructors
Layer(LayerId, double, double, double, double, long, bool)
Information about a compositing layer.
public Layer(LayerId LayerId, double OffsetX, double OffsetY, double Width, double Height, long PaintCount, bool DrawsContent)
Parameters
LayerIdLayerIdThe unique id for this layer.
OffsetXdoubleOffset from parent layer, X coordinate.
OffsetYdoubleOffset from parent layer, Y coordinate.
WidthdoubleLayer width.
HeightdoubleLayer height.
PaintCountlongIndicates how many time this layer has painted.
DrawsContentboolIndicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
Properties
AnchorX
Transform anchor point X, absent if no transform specified
public double? AnchorX { get; init; }
Property Value
AnchorY
Transform anchor point Y, absent if no transform specified
public double? AnchorY { get; init; }
Property Value
AnchorZ
Transform anchor point Z, absent if no transform specified
public double? AnchorZ { get; init; }
Property Value
BackendNodeId
The backend id for the node associated with this layer.
public BackendNodeId? BackendNodeId { get; init; }
Property Value
DrawsContent
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
public bool DrawsContent { get; init; }
Property Value
Height
Layer height.
public double Height { get; init; }
Property Value
Invisible
Set if layer is not visible.
public bool? Invisible { get; init; }
Property Value
- bool?
LayerId
The unique id for this layer.
public LayerId LayerId { get; init; }
Property Value
OffsetX
Offset from parent layer, X coordinate.
public double OffsetX { get; init; }
Property Value
OffsetY
Offset from parent layer, Y coordinate.
public double OffsetY { get; init; }
Property Value
PaintCount
Indicates how many time this layer has painted.
public long PaintCount { get; init; }
Property Value
ParentLayerId
The id of parent (not present for root).
public LayerId? ParentLayerId { get; init; }
Property Value
ScrollRects
Rectangles scrolling on main thread only.
public ImmutableArray<ScrollRect>? ScrollRects { get; init; }
Property Value
StickyPositionConstraint
Sticky position constraint information
public StickyPositionConstraint? StickyPositionConstraint { get; init; }
Property Value
Transform
Transformation matrix for layer, default is identity matrix
public ImmutableArray<double>? Transform { get; init; }
Property Value
Width
Layer width.
public double Width { get; init; }