mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-30 16:18:06 +00:00
update odin
This commit is contained in:
parent
0475830b2c
commit
9bb88a39b5
@ -154,12 +154,18 @@ FloatingAttachPoints :: struct {
|
|||||||
parent: FloatingAttachPointType,
|
parent: FloatingAttachPointType,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PointerCaptureMode :: enum EnumBackingType {
|
||||||
|
CAPTURE,
|
||||||
|
PASSTHROUGH,
|
||||||
|
}
|
||||||
|
|
||||||
FloatingElementConfig :: struct {
|
FloatingElementConfig :: struct {
|
||||||
offset: Vector2,
|
offset: Vector2,
|
||||||
expand: Dimensions,
|
expand: Dimensions,
|
||||||
zIndex: u16,
|
zIndex: u16,
|
||||||
parentId: u32,
|
parentId: u32,
|
||||||
attachment: FloatingAttachPoints,
|
attachment: FloatingAttachPoints,
|
||||||
|
pointerCaptureMode: PointerCaptureMode,
|
||||||
}
|
}
|
||||||
|
|
||||||
ElementConfigUnion :: struct #raw_union {
|
ElementConfigUnion :: struct #raw_union {
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2
clay.h
2
clay.h
@ -3560,7 +3560,7 @@ void Clay_SetPointerState(Clay_Vector2 position, bool isPointerDown) {
|
|||||||
|
|
||||||
Clay_LayoutElement *rootElement = Clay_LayoutElementArray_Get(&Clay__layoutElements, Clay__int32_tArray_Get(&dfsBuffer, (int)dfsBuffer.length - 1));
|
Clay_LayoutElement *rootElement = Clay_LayoutElementArray_Get(&Clay__layoutElements, Clay__int32_tArray_Get(&dfsBuffer, (int)dfsBuffer.length - 1));
|
||||||
if (found && Clay__ElementHasConfig(rootElement, CLAY__ELEMENT_CONFIG_TYPE_FLOATING_CONTAINER) &&
|
if (found && Clay__ElementHasConfig(rootElement, CLAY__ELEMENT_CONFIG_TYPE_FLOATING_CONTAINER) &&
|
||||||
Clay__FindElementConfigWithType(rootElement, CLAY__ELEMENT_CONFIG_TYPE_FLOATING_CONTAINER).floatingElementConfig->capturePointer == CLAY_POINTER_CAPTURE_MODE_CAPTURE) {
|
Clay__FindElementConfigWithType(rootElement, CLAY__ELEMENT_CONFIG_TYPE_FLOATING_CONTAINER).floatingElementConfig->pointerCaptureMode == CLAY_POINTER_CAPTURE_MODE_CAPTURE) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user