mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 12:36:17 +00:00
[Bindings/Odin] Add missing border macros to Odin bindings
This commit is contained in:
parent
c483269295
commit
76265e4c3c
|
@ -439,6 +439,14 @@ PaddingAll :: proc(allPadding: u16) -> Padding {
|
||||||
return { left = allPadding, right = allPadding, top = allPadding, bottom = allPadding }
|
return { left = allPadding, right = allPadding, top = allPadding, bottom = allPadding }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BorderOutside :: proc(width: u16) -> BorderWidth {
|
||||||
|
return {width, width, width, width, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
BorderAll :: proc(width: u16) -> BorderWidth {
|
||||||
|
return {width, width, width, width, width}
|
||||||
|
}
|
||||||
|
|
||||||
CornerRadiusAll :: proc(radius: f32) -> CornerRadius {
|
CornerRadiusAll :: proc(radius: f32) -> CornerRadius {
|
||||||
return CornerRadius{radius, radius, radius, radius}
|
return CornerRadius{radius, radius, radius, radius}
|
||||||
}
|
}
|
||||||
|
@ -469,4 +477,4 @@ ID :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||||
|
|
||||||
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||||
return _HashString(MakeString(label), index, _GetParentElementId())
|
return _HashString(MakeString(label), index, _GetParentElementId())
|
||||||
}
|
}
|
Loading…
Reference in a new issue