mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
Fix crash on Windows (#10)
This commit is contained in:
parent
39c2aa5305
commit
29ebed2010
@ -57,7 +57,13 @@ BorderData :: struct {
|
|||||||
color: Color,
|
color: Color,
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderCommandType :: enum u8 {
|
when ODIN_OS == .Windows {
|
||||||
|
EnumBackingType :: u32
|
||||||
|
} else {
|
||||||
|
EnumBackingType :: u8
|
||||||
|
}
|
||||||
|
|
||||||
|
RenderCommandType :: enum EnumBackingType {
|
||||||
None,
|
None,
|
||||||
Rectangle,
|
Rectangle,
|
||||||
Border,
|
Border,
|
||||||
@ -104,7 +110,7 @@ ScrollElementConfig :: struct {
|
|||||||
vertical: c.bool,
|
vertical: c.bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
FloatingAttachPointType :: enum u8 {
|
FloatingAttachPointType :: enum EnumBackingType {
|
||||||
LEFT_TOP,
|
LEFT_TOP,
|
||||||
LEFT_CENTER,
|
LEFT_CENTER,
|
||||||
LEFT_BOTTOM,
|
LEFT_BOTTOM,
|
||||||
@ -156,7 +162,7 @@ ScrollContainerData :: struct {
|
|||||||
found: c.bool,
|
found: c.bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
SizingType :: enum u8 {
|
SizingType :: enum EnumBackingType {
|
||||||
FIT,
|
FIT,
|
||||||
GROW,
|
GROW,
|
||||||
PERCENT,
|
PERCENT,
|
||||||
@ -188,18 +194,18 @@ Padding :: struct {
|
|||||||
y: c.uint16_t,
|
y: c.uint16_t,
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutDirection :: enum u8 {
|
LayoutDirection :: enum EnumBackingType {
|
||||||
LEFT_TO_RIGHT,
|
LEFT_TO_RIGHT,
|
||||||
TOP_TO_BOTTOM,
|
TOP_TO_BOTTOM,
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutAlignmentX :: enum u8 {
|
LayoutAlignmentX :: enum EnumBackingType {
|
||||||
LEFT,
|
LEFT,
|
||||||
RIGHT,
|
RIGHT,
|
||||||
CENTER,
|
CENTER,
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutAlignmentY :: enum u8 {
|
LayoutAlignmentY :: enum EnumBackingType {
|
||||||
TOP,
|
TOP,
|
||||||
BOTTOM,
|
BOTTOM,
|
||||||
CENTER,
|
CENTER,
|
||||||
|
Loading…
Reference in New Issue
Block a user