João Matos
286b177205
Merge d6ed6cb5c2
into 89ce22e894
2025-05-31 22:57:39 +02: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
tritao
d6ed6cb5c2
[Core] Add cascading property support for text element configs.
...
This change introduces an "inheritance" mechanism for all text-related
properties, enabling developers to define base styles once and have
child elements automatically pick up defaults unless explicitly
overridden, much like CSS’s cascade model.
By providing individual sentinel values (`CLAY_COLOR_INHERIT`,
`CLAY_TEXT_INHERIT_U16`, `CLAY_TEXT_WRAP_INHERIT`, and
`CLAY_TEXT_ALIGN_INHERIT`), or `CLAY_TEXT_CONFIG_INHERIT_ALL`, we can
now defer resolution of properties,
Backward compatibility is preserved: if no `_INHERIT` values are used,
behavior remains identical to previous versions.
Previously, Clay used the presence of `CLAY__ELEMENT_CONFIG_TYPE_TEXT`
in `Clay_LayoutElement.elementConfigs` to distinguish between a text and
non-text element. This is not possible to use anymore, since parent
non-text elements may have a `CLAY__ELEMENT_CONFIG_TYPE_TEXT` with text
properties.
I introduced a `hasTextElementData`, but I can understand if this design
is considered to not be acceptable due to the higher memory usage in
this core struct, perhaps in alternative a new
`CLAY__ELEMENT_CONFIG_TYPE_TEXT_STRING` element config can be
introduced?
2025-04-24 19:10:33 +01: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
Philosoph228
87efc49f52
[Renderers/WinGDI] Working on Win32 GDI renderer and example ( #344 )
2025-04-09 11:31:33 +12:00
Nic Barker
a9e94e3be0
[Core] Fix onHover reference not being reset for identical IDs between frames
2025-04-04 13:05:31 +13:00
Nic Barker
cbb50267da
[CMake] Revert change to CMakeLists because of OSX problems
2025-04-04 12:59:57 +13:00
Vitalii Rohozhyn
55792fdbec
[Cmake] basic CMake support for easier import into CMake projects ( #345 )
2025-04-01 10:48:50 +13:00
Nic Barker
50aad568fa
[Core] Remove unused variable in arm simd and inline rotate function'
2025-04-01 10:43:11 +13:00
Nic Barker
b4dc02c73a
[Core] Fix a bug with how element string ids were stored when using Clay_Hovered
2025-04-01 10:40:04 +13:00
Nic Barker
3f635cdd79
[Renderers/Raylib] Fix FLAG_HIGHDPI causing window resize to break
2025-04-01 10:31:40 +13:00
Nic Barker
1204ac400b
[Compilers] Fix implicit typecast in simd hash function
2025-03-28 11:52:20 +13:00
Nic Barker
6a7ce77024
[Core] Fix implicit simd typecast on arm architectures
2025-03-28 11:47:57 +13:00
Piggybank Studios
7c9506bc31
[Core] Fix CLAY__ELEMENT_DEFINITION_LATCH overflow in CLAY macro if 256 loops end at the same time
2025-03-27 10:14:17 +13:00
Nic Barker
08e4c5b198
[Core] Fix a bug where ID aliases werent copied on hash collision
2025-03-26 09:35:15 +13:00
ellie-but-backwards
b1c72a0647
[Bindings/Odin] Remove field hashStringContents in odin bindings ( #350 )
2025-03-26 09:21:35 +13:00
Igor Karatayev
aee4baee1c
[Core] Guard against hashmap item null dereference ( #338 )
2025-03-26 09:19:50 +13:00
Nic Barker
47d1d84bc8
[Core] Switch text content hashing to default behaviour ( #335 )
2025-03-25 10:13:04 +13:00
Nic Barker
ad49977f1b
[Core] Apply minimum width for single words and fix some minimum sizing bugs
2025-03-21 11:22:48 +13:00
Leo Zurbriggen
61490e4557
[Bindings/Odin] expose _OpenElement and _CloseElement ( #301 )
2025-03-21 09:25:50 +13:00
Nic Barker
982ade4cf9
[Compilers] Add a dummy function to suppress unused variable warning in GCC
2025-03-18 11:21:23 +13:00
Nic Barker
d5af2c3dc0
[Renderers/SDL2] Added explicit include of math.h in SDL2 renderer
2025-03-18 11:13:46 +13:00
Nic Barker
2677bec854
[Housekeeping] Revert previous commit to allow proper PR attribution
2025-03-18 11:12:21 +13:00