From 1b70ae754028cddf20e809f548d89832f2c605be Mon Sep 17 00:00:00 2001 From: A1029384756 Date: Mon, 7 Jul 2025 21:19:22 -0400 Subject: [PATCH] [bindings/odin] SizingFit and SizingGrow default parameters [bindings/odin] indentation --- bindings/odin/clay-odin/clay.odin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/odin/clay-odin/clay.odin b/bindings/odin/clay-odin/clay.odin index ad1e1ee..f56254d 100644 --- a/bindings/odin/clay-odin/clay.odin +++ b/bindings/odin/clay-odin/clay.odin @@ -186,7 +186,7 @@ FloatingElementConfig :: struct { attachment: FloatingAttachPoints, pointerCaptureMode: PointerCaptureMode, attachTo: FloatingAttachToElement, - clipTo: FloatingClipToElement, + clipTo: FloatingClipToElement, } TextRenderData :: struct { @@ -342,7 +342,7 @@ ElementDeclaration :: struct { layout: LayoutConfig, backgroundColor: Color, cornerRadius: CornerRadius, - aspectRatio: AspectRatioElementConfig, + aspectRatio: AspectRatioElementConfig, image: ImageElementConfig, floating: FloatingElementConfig, custom: CustomElementConfig, @@ -460,11 +460,11 @@ CornerRadiusAll :: proc(radius: f32) -> CornerRadius { return CornerRadius{radius, radius, radius, radius} } -SizingFit :: proc(sizeMinMax: SizingConstraintsMinMax) -> SizingAxis { +SizingFit :: proc(sizeMinMax: SizingConstraintsMinMax = {}) -> SizingAxis { return SizingAxis{type = SizingType.Fit, constraints = {sizeMinMax = sizeMinMax}} } -SizingGrow :: proc(sizeMinMax: SizingConstraintsMinMax) -> SizingAxis { +SizingGrow :: proc(sizeMinMax: SizingConstraintsMinMax = {}) -> SizingAxis { return SizingAxis{type = SizingType.Grow, constraints = {sizeMinMax = sizeMinMax}} } @@ -486,4 +486,4 @@ ID :: proc(label: string, index: u32 = 0) -> ElementId { ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId { return _HashString(MakeString(label), index, _GetParentElementId()) -} \ No newline at end of file +}