Thickness
The thickness of a frame around a rectangle, as used for margins and padding.
- Kind: Record struct
- Namespace: SkeleKit
- Implements:
IEquatable<Thickness>
Constructors
Creates a uniform thickness: all four sides use the same value.
| Parameter | Summary |
|---|---|
double uniform | The thickness value for all four sides. |
Creates a symmetric thickness: horizontal for left/right, vertical for top/bottom.
| Parameter | Summary |
|---|---|
double horizontal | The thickness for the left and right sides. |
double vertical | The thickness for the top and bottom sides. |
Initializes a new instance of the Thickness struct.
| Parameter | Summary |
|---|---|
double Left | The thickness on the left side. |
double Top | The thickness on the top side. |
double Right | The thickness on the right side. |
double Bottom | The thickness on the bottom side. |
Properties
Bottom
The thickness on the bottom side.
Type: double
Horizontal
The total thickness on the horizontal axis (Left + Right).
Type: double
Left
The thickness on the left side.
Type: double
Right
The thickness on the right side.
Type: double
Top
The thickness on the top side.
Type: double
Vertical
The total thickness on the vertical axis (Top + Bottom).
Type: double
Fields
Zero
A thickness of zero on all sides.
Type: Thickness
Operators
Implicit Thickness(double)
Creates a uniform thickness from a single numeric value.
| Parameter | Summary |
|---|---|
double uniform | The uniform thickness value. |
Returns
Thickness: A uniform thickness.