Commit graph

346 commits

Author SHA1 Message Date
Fatih Gungor e00536b6d4 feat: return pointer interaction state for current element 2025-07-25 02:30:21 +02:00
Nic Barker 0835781602 [Bindings/Odin] Update Odin Bindings 2025-06-18 09:55:32 +10:00
Nic Barker 13ecd80ee5 [Renderers/SDL3] Fix up outdated API usage in SDL3 example 2025-06-18 09:54:27 +10:00
Nic Barker c524485c46 [Core] Fix case where there could be 64 extra bytes of padding between arrays in clays internal arena 2025-06-17 13:07:56 +10:00
Nic Barker b9e27178c0 [Core] Align base arena memory to 64 byte cache line 2025-06-17 10:32:30 +10:00
Nic Barker 6f10bf4b3d [Core] Remove erroneous break statement when using external scroll handling 2025-06-13 10:35:31 +10:00
Nic Barker adb1bd620a [Examples/clay-official-website] Fix links on official website example 2025-06-13 09:59:07 +10:00
Nic Barker dca9f60a6c [Core] Add objective-c support 2025-06-12 12:16:29 +10:00
Nic Barker 3ccfa0f8fa [Core] Fix a bug where extra child gap was added to the dimensions of clipped containers 2025-06-11 10:41:01 +10:00
Nic Barker 35b45d939b Fix some typos in the readme 2025-06-11 10:15:51 +10:00
Nic Barker 6b03a215b7 [Core] Fix an out of bounds access for single newline characters 2025-06-10 11:38:56 +10:00
Nic Barker b25a31c1a1 [Bindings/Odin] Update Odin Bindings to latest 2025-06-06 11:01:42 +10:00
Nic Barker 8bbe14fbcc [Documentation] Fix README typo, bump version number to 0.14 2025-06-06 10:20:37 +10:00
Alan 58491394ca
[Renderers/Raylib] Fix element float distortion (#430) 2025-06-05 10:49:26 +10:00
Nic Barker 87575cb7c3 [Core] Fix handling of letter spacing 2025-06-05 10:38:53 +10:00
Nic Barker 80659eda04 [Renderers/Web] Fix clay official website example struct definitions for web renderers 2025-06-04 10:50:35 +10:00
Rats a3003cfa12
[Bindings/Odin] Update README to better match official website example. (#422) 2025-06-02 20:26:04 +10:00
Wes Lord 5eceb52abc
Set CMake FetchContent GIT_TAG for SDL_ttf (#423) 2025-06-02 13:00:45 +10:00
Michael Tanner 149833bdc0
[Core] Fix dimension calculation that would always result in 0 (#428) 2025-06-02 12:27:28 +10:00
Nic Barker 0431f862f4 [Core] Improve handling of aspect ratio scaling 2025-06-02 12:14:09 +10:00
Nic Barker d6f3957a60
[Core] Split aspect ratio scaling into its own config (#426) 2025-06-02 10:36:58 +10:00
Boreal 89ce22e894
[Core] Fix sign comparison warning (#427) 2025-05-29 13:10:05 +10:00
Wes Lord e80736892d
[Renderers/SDL2] Indent SDL2's CMakeLists.txt consistently (#424) 2025-05-28 09:50:00 +10:00
Nic Barker ce2475ba73 [Compilers] Add missing struct name for image element config 2025-05-26 10:10:24 +10:00
Johann Muszynski 34ff7e1bea
[Compilers] Add struct names to public structs (#336) 2025-05-26 10:03:07 +10:00
Emmanuel 65e813d4df
[Renderers/Terminal] Add initial implementation of terminal renderer (#91) 2025-05-22 12:45:52 +12:00
Nic Barker 7af50d0f48 [Bindings/Odin] Update odin bindings to include floating element clipTo 2025-05-20 11:40:25 +12:00
Matt Jennings e2f94f17f6
[Renderers/Playdate] Playdate console example (#404) 2025-05-19 11:46:39 +12:00
Zordan eb1d85f2a6
[Renderers/Cairo] Fix cairo renderer and example (#416) 2025-05-19 11:36:08 +12:00
Patricio Whittingslow 76351a0999
[Documentation] Add Go rewrites of clay to README (#411) 2025-05-19 11:33:38 +12:00
Simon Oelerich efbd680685
[Core] restore compatibility with C99 (#412) 2025-05-14 13:29:12 +12:00
Patrick Doane b656dc5253
[Core] Add Clay_FloatingClipToElement (#413) 2025-05-14 13:24:42 +12:00
João Matos b78fd66da8
[Core] Add Clay_GetPointerOverIds function to the public API. (#389) 2025-05-14 12:39:56 +12:00
Jeroen van Rijn 76265e4c3c
[Bindings/Odin] Add missing border macros to Odin bindings 2025-05-09 13:25:34 +12:00
Sam El-Borai c483269295
[Documentation] Fix anchor to Clay_CustomElementConfig (#403) 2025-05-06 12:41:33 +12:00
Nic Barker 4aad9daa9e [Documentation] Update README 2025-05-06 12:33:55 +12:00
João Matos 52759cd028
[Debug] Update Clay__RenderDebugLayoutSizing to handle more sizing types. (#392) 2025-05-05 12:27:55 +12:00
David Delassus fb4eec93b2
[Renderers/SDL3] Use SDL_Texture instead of SDL_Surface for images (#402) 2025-05-05 12:27:41 +12:00
Hayden Gray e4e7b113a9
[Bindings/Odin] Updated odin bindings with new clip config (#397)
Great work, thanks for moving on this so quickly! 😁
2025-05-02 16:02:40 +12:00
Nic Barker 90b45f059c [Core] Fix a bug with the implementation of clip .childOffset 2025-05-01 17:21:09 +12:00
Rats ea8288158e
[Bindings/Odin] Odin Raylib renderer rewrite (#395) 2025-05-01 14:31:05 +12:00
Nic Barker 970919e1fb
[Core] Replace .scroll config with .clip (#376) 2025-05-01 14:11:31 +12:00
Nic Barker 313964132c [Renderers/Raylib] Pin raylib version to 5.5 2025-04-29 12:43:44 +12:00
Nic Barker a21b0665fe [Core] Correctly throw an error when using attach to element id with an invalid id 2025-04-29 12:31:54 +12:00
Nic Barker b33ba4ff62
[Core] Fix a string hash bug with single characters (#384) 2025-04-16 20:16:05 +12:00
Jackson Novak f88f0517f7
[Documentation] Fix Clay_String definition in README.md file. (#374) 2025-04-16 20:07:16 +12:00
Tim Lügger 5391a259f3
[Renderers/Raylib] Fix raylib renderer border bottom left corner radius (#378) 2025-04-14 14:26:12 +12:00
Lily Nikitin fe2d44a888
[Renderers/Raylib] Add explicit type cast for malloc (#379) 2025-04-14 14:23:13 +12:00
Nic Barker 06167b4f4b [Core] Fix a potential null pointer deref in scroll GetScrollContainerData 2025-04-12 11:27:10 +12:00
Nathan Korth eb46688b82
[Renderers/Sokol] Sokol renderer & examples (#373) 2025-04-09 13:40:22 +12:00