mizchi/crater-layout/types does not have a README file
pub(all) struct BoundingRect {
x : Double
y : Double
width : Double
height : Double
}impl Show for BoundingRectpub(all) struct Color {
r : Int
g : Int
b : Int
a : Double
}pub(all) enum Dimension {
Length(Double)
Percent(Double)
Auto
MinContent
MaxContent
FitContent(Double)
} derive(Eq)impl Show for FlexDirectionimpl Show for GridAutoFlowimpl Show for GridPlacementpub(all) struct IntrinsicSize {
min_width : Double
max_width : Double
min_height : Double
max_height : Double
}pub(all) struct LayoutContext {
available_width : Double
available_height : Double?
sizing_mode : SizingMode
viewport_width : Double
viewport_height : Double
stretch_width : Bool
stretch_height : Bool
}pub(all) enum LayoutWarning {
UnsupportedFloat(String)
UnsupportedPosition(String)
UnsupportedDisplay(String)
} derive(Debug)impl Show for LayoutWarningpub struct Line[T] {
start : T
end : T
}pub struct Point[T] {
x : T
y : T
}pub(all) struct Rect[T] {
left : T
right : T
top : T
bottom : T
}impl Show for RepeatCountpub(all) enum SingleTrackSizing {
Length(Double)
Percent(Double)
Fr(Double)
Auto
MinContent
MaxContent
MinMax(MinTrackSizing, MaxTrackSizing)
FitContentLength(Double)
FitContentPercent(Double)
} derive(Eq, Debug)impl Show for SingleTrackSizingpub struct Size[T] {
width : T
height : T
}pub(all) enum TrackSizingFunction {
Length(Double)
Percent(Double)
Fr(Double)
Auto
MinContent
MaxContent
MinMax(MinTrackSizing, MaxTrackSizing)
Repeat(RepeatCount, Array[SingleTrackSizing])
FitContentLength(Double)
FitContentPercent(Double)
} derive(Eq, Debug)impl Show for TrackSizingFunctionfn apply_aspect_ratio_height(width : Double, aspect_ratio : Double?) -> Double?fn apply_aspect_ratio_width(height : Double, aspect_ratio : Double?) -> Double?fn clamp(value : Double, min_val : Double, max_val : Double) -> Doublefn resolve_dimensions_with_aspect_ratio(width : Double?, height : Double?, aspect_ratio : Double?, min_width : Double, max_width : Double, min_height : Double, max_height : Double) -> (Double?, Double?)