Class DisplayCutoutConfig
Configuration for a display cutout.
public sealed record DisplayCutoutConfig : IEquatable<DisplayCutoutConfig>
- Inheritance
-
DisplayCutoutConfig
- Implements
- Inherited Members
Constructors
DisplayCutoutConfig(Rect, DisplayCutoutShape)
Configuration for a display cutout.
public DisplayCutoutConfig(Rect Rect, DisplayCutoutShape Shape)
Parameters
RectRectA rectangle representing the cutout bounds.
ShapeDisplayCutoutShapeShape used to draw the cutout.
Properties
BorderRadius
Border radius for rounded cutout shapes.
public long? BorderRadius { get; init; }
Property Value
- long?
ContentColor
The cutout fill color (default: black).
public RGBA? ContentColor { get; init; }
Property Value
Cx
Center x coordinate for circle cutout shapes.
public long? Cx { get; init; }
Property Value
- long?
Cy
Center y coordinate for circle cutout shapes.
public long? Cy { get; init; }
Property Value
- long?
LowerRadius
Lower transition radius for notch cutout shapes.
public long? LowerRadius { get; init; }
Property Value
- long?
Radius
Radius for circle cutout shapes.
public long? Radius { get; init; }
Property Value
- long?
Rect
A rectangle representing the cutout bounds.
public Rect Rect { get; init; }
Property Value
Shape
Shape used to draw the cutout.
public DisplayCutoutShape Shape { get; init; }
Property Value
UpperRadius
Upper shoulder radius for notch cutout shapes.
public long? UpperRadius { get; init; }
Property Value
- long?