Commit Graph

282 Commits

Author SHA1 Message Date
63b3d05b19 up and down in textedit 2025-09-25 23:16:18 +02:00
24216e4ab4 add separator widget 2025-09-24 22:49:51 +02:00
6a13245fd9 revert ccca2be496 2025-09-24 22:49:34 +02:00
fe9e2bdf49 moved test_renderer.c3 2025-09-23 23:32:34 +02:00
ccca2be496 "fixed" segfault with >00
idk if this is a compiler error but leaving the ascii pre-caching in results
in the pointer to the font structure to be corrupted before font.get_glyph()
2025-09-23 23:30:22 +02:00
6839a7e06c documentation of mtree 2025-09-23 23:30:11 +02:00
7f8b5196a5 new tree implementation
this about halves the time spent on level_order_it and drastically reduces the
time spent in children_it
2025-09-21 18:17:39 +02:00
c046c6af52 some comments 2025-09-20 00:27:24 +02:00
df18be7bf6 bools for VSYNC and FPS_LIMIT 2025-09-17 22:49:46 +02:00
48d1b29537 first draft for absolute positioning 2025-09-17 22:45:03 +02:00
915f395b5a corrected handling of newline in layout_string() 2025-09-16 17:06:19 +02:00
be1476d107 renderer now uses a single pipeline for ugui 2025-09-15 18:53:42 +02:00
622b648d26 corrected layout offset 2025-09-14 20:32:31 +02:00
d33d72a074 fixed check_key_combo 2025-09-13 20:02:21 +02:00
34b92c93b4 re-implemented text box
also includes
	- small layout fix for grow elements
	- ElemEvents now includes has_focus flag
2025-09-13 19:53:50 +02:00
81cc3dae65 div_end returns the div Id 2025-09-12 22:45:23 +02:00
d35ef7ddaf re-implemented toggles 2025-09-12 22:44:33 +02:00
48a333e501 simplified code 2025-09-12 22:18:15 +02:00
71a959b9a1 re-added sliders 2025-09-12 20:23:07 +02:00
a00e39f36b Merge branch 'c3' of https://git.alemauri.eu/alema/ugui into c3 2025-09-12 12:52:31 +02:00
e328a67d96 re-implemented checkbox 2025-09-12 12:48:29 +02:00
be951c616a fix dimensions being calculated wrong 2025-09-12 12:47:00 +02:00
636f162b10 fixed problem with >31 elements 2025-09-12 11:44:26 +02:00
2bd15ac981 Merge branch 'c3' of https://git.alemauri.eu/alema/ugui into c3 2025-09-11 19:00:46 +02:00
f8befeea4d idk 2025-09-11 19:00:41 +02:00
9d96d2eb74 moved widgets to their own folder 2025-09-09 20:01:10 +02:00
c3a6390404 draw text correctly 2025-09-09 19:10:04 +02:00
db63b2c6b1 layout actually works now 2025-09-08 23:43:59 +02:00
869c7871f9 minor changes 2025-09-06 12:50:36 +02:00
3d7be2a2df implement operator overloading for rects 2025-09-05 19:56:59 +02:00
335624fcbe in layout use a combined version of margin, border and padding 2025-09-05 18:53:47 +02:00
0f7d5a6506 working example of the new layout system 2025-09-05 13:10:16 +02:00
2619873ca7 tested new layout system 2025-09-03 23:32:04 +02:00
24ac28e0d9 update sdl3.c3l 2025-08-29 19:25:18 +02:00
5e5c912092 use the specified allocator for the element caches 2025-08-29 19:24:52 +02:00
4a690fdeb5 actually useful calculator example 2025-08-20 17:33:25 +02:00
62ebd6592d fix wrong scissor 2025-08-20 17:32:45 +02:00
00299bec0b fix calculator demo
turns out it was an incorrect handling of  scissor test
2025-08-16 10:10:06 +02:00
be00c87c6a implement a convenient macro to start and end a div 2025-08-14 22:16:54 +02:00
e8bb35811a renamed position_element() to layout_element() 2025-07-14 13:16:04 +02:00
278e4988e9 use containing_rect() in position_element() 2025-07-14 13:10:14 +02:00
78fc1c1e87 cleaner get_parent() 2025-07-14 13:05:30 +02:00
8d79f13fd6 added another demo ui 2025-07-14 12:59:07 +02:00
7713cd7da9 prettier radius 2025-07-14 12:58:15 +02:00
00aa01109e crash if last element is not root 2025-07-14 12:57:53 +02:00
5e68671828 fixed divs-in-divs 2025-07-14 12:57:29 +02:00
8367f6b617 better css lexer 2025-07-13 21:43:57 +02:00
dd073385c8 fix slider styling 2025-07-13 20:12:48 +02:00
80d17d7b33 unified button element 2025-07-13 20:08:18 +02:00
b48c413d2d changed text (glyph) placement 2025-07-10 11:05:39 +02:00