Skip to content

Commit

Permalink
update odin
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbarker committed Dec 20, 2024
1 parent 0475830 commit 9bb88a3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions bindings/odin/clay-odin/clay.odin
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,18 @@ FloatingAttachPoints :: struct {
parent: FloatingAttachPointType,
}

PointerCaptureMode :: enum EnumBackingType {
CAPTURE,
PASSTHROUGH,
}

FloatingElementConfig :: struct {
offset: Vector2,
expand: Dimensions,
zIndex: u16,
parentId: u32,
attachment: FloatingAttachPoints,
offset: Vector2,
expand: Dimensions,
zIndex: u16,
parentId: u32,
attachment: FloatingAttachPoints,
pointerCaptureMode: PointerCaptureMode,
}

ElementConfigUnion :: struct #raw_union {
Expand Down
Binary file modified bindings/odin/clay-odin/linux/clay.a
Binary file not shown.
Binary file modified bindings/odin/clay-odin/macos-arm64/clay.a
Binary file not shown.
Binary file modified bindings/odin/clay-odin/macos/clay.a
Binary file not shown.
Binary file modified bindings/odin/clay-odin/wasm/clay.o
Binary file not shown.
Binary file modified bindings/odin/clay-odin/windows/clay.lib
Binary file not shown.
2 changes: 1 addition & 1 deletion clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
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;
}
}
Expand Down

0 comments on commit 9bb88a3

Please sign in to comment.