mirror of
https://github.com/nicbarker/clay.git
synced 2026-04-30 07:01:17 +00:00
Update odin bindings
This commit is contained in:
parent
0f2519f2a9
commit
98bbba5beb
7 changed files with 29 additions and 23 deletions
|
|
@ -223,8 +223,10 @@ Sizing :: struct {
|
|||
}
|
||||
|
||||
Padding :: struct {
|
||||
x: u16,
|
||||
y: u16,
|
||||
left: u16,
|
||||
right: u16,
|
||||
top: u16,
|
||||
bottom: u16,
|
||||
}
|
||||
|
||||
LayoutDirection :: enum EnumBackingType {
|
||||
|
|
@ -350,6 +352,10 @@ Layout :: proc(config: LayoutConfig) -> TypedConfig {
|
|||
return {type = ElementConfigType.Layout, config = _StoreLayoutConfig(config) }
|
||||
}
|
||||
|
||||
PaddingAll :: proc (padding: u16) -> Padding {
|
||||
return { padding, padding, padding, padding }
|
||||
}
|
||||
|
||||
Rectangle :: proc(config: RectangleElementConfig) -> TypedConfig {
|
||||
return {type = ElementConfigType.Rectangle, config = _StoreRectangleElementConfig(config)}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue