Commit graph

38 commits

Author SHA1 Message Date
cdd6fee9d6
refactor: compare widgets via the .ptr memeber instead of via their addresses
Widget is a handle type. Sort of a smart pointer. Comparing their addresses
is brittle because it requires keeping Widget pointers stable. This is
nonsense because Widget identity is actually determined by the actual
widget object it points to.

This big refactor elimits the requirement that Widget addresses remain
stable to work properly with Widget.walk and Widget.get.
2026-02-23 21:44:24 +01:00
c1200ac5bd
refactor: make Widget.get method const 2026-01-06 19:22:24 +01:00
4658c4820f
refactor: remove unused put_at_pos function 2025-12-01 20:19:06 +01:00
aaca270de4
refactor: move render_decoration to WidgetStyle 2025-12-01 15:43:55 +01:00
a1455e8e3d
refactor: move from_client_box and to_client_box to Widget.Box 2025-12-01 15:43:55 +01:00
c02a5d939c
refactor: add Widget.get_at function 2025-11-06 19:23:14 +01:00
3437f4fd20
refactor: add focus/unfocus to widget vtable 2025-11-06 19:23:14 +01:00
7f229f3486
feat: allow overriding WidgetList.render_decoration function 2025-10-10 15:38:31 +02:00
bf0d4402ea
refactor: lots more writergate fixes - first successful build 2025-09-25 22:01:29 +02:00
0c19cbd82d
feat: persist widget style changes 2025-08-14 15:55:09 +02:00
bcfd17a0e2
feat: select widget styles based on widget type 2025-08-13 12:58:05 +02:00
21f7b14970
refactor: remove widget debug output 2025-08-13 12:09:14 +02:00
d2c4fb66bd
fix: typo in WidgetList 2025-08-13 01:28:21 +02:00
ae39016f03
fix: stop rendering widget list contents that are outside of it's box 2025-08-13 01:10:31 +02:00
83a0adccc7
feat: add menu border styles 2025-08-12 22:29:10 +02:00
ce204d650a
feat: add WidgetList support for overriding layouts 2025-08-03 16:16:15 +02:00
efdad96054
refactor: improve create pattern to avoid leaks 2025-07-19 00:03:30 +02:00
a1b2737c5d
feat: use explicit error handling for all startup errors 2025-03-25 17:24:34 +01:00
0a195a4b79
Merge branch 'master' into zig-0.14 2025-03-05 17:58:18 +01:00
66a1764d6c
fix: stop after removing widget in Widget.remove (fixes ReleaseFast crash) 2025-03-05 17:51:19 +01:00
a0514a6f7e
build: update to zig-0.14.0-dev.3280 2025-02-21 22:17:28 +01:00
53045123c6
build: update to zig 0.14.0-dev.3039 2025-02-04 22:59:18 +01:00
5dd47f7248
feat(tabs): complete tabs widget and next_/previous_tabs 2025-01-24 23:26:41 +01:00
4848f2494f
fix(tabs): don't propagate hover events in WidgetList 2025-01-24 23:24:14 +01:00
d7b48b40f1
feat(tabs): start work on a tabbar widget 2025-01-23 22:32:08 +01:00
4145460012
refactor: simplify Plane/Widget usage 2025-01-23 16:12:56 +01:00
3cb1fc2bba
refactor: add WidgetList.delete function 2024-12-11 20:43:32 +01:00
c5e7b1f896
refactor: improve WidgetList.addP style 2024-10-09 20:48:50 +02:00
7b812d73ea
refactor: change a -> allocator 2024-09-02 14:31:49 +02:00
50d47a73f2 feat: add mouse resizing of panel views 2024-08-13 19:38:35 +02:00
acd65d0157 fix: menu and open_recent resize handling 2024-06-14 20:41:01 +02:00
1cd3cb17ce feat: add libvaxis renderer 2024-05-10 12:44:14 +02:00
b15fa47f30 refactor: add renderer abstraction layer 2024-05-09 11:48:33 +02:00
2c4452dd81 feat: add keyboard support to menus 2024-03-26 22:01:31 +01:00
1489a96013 feat: add support for resize hooks on WidgetLists 2024-03-22 20:56:02 +01:00
8f360c8f28 feat: add Button widget and use it to build a menu with mouse support on the home screen 2024-03-06 00:44:43 +01:00
45307e3636 feat: add alternate create mode Box for WidgetList
This is for using widgetLists in static layouts.
2024-03-05 22:37:05 +01:00
4ece4babad Initial public release 2024-02-29 00:00:15 +01:00