aboutsummaryrefslogtreecommitdiff
path: root/view.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix compiler warningdilluti0n2026-07-171-3/+3
|
* Fixed curser not displaying at the end of a linedilluti0n2026-04-201-15/+28
| | | | or an unallocated line
* Make scroll actaully scrolldilluti0n2026-04-201-5/+10
| | | | | | | | | | | | | | | | | | Fixed draw offsets and added scroll guard to not to try draw non-existing parts and produce this: (gdb) bt #0 0x00007ffff7daba3c in ?? () from /usr/lib64/libc.so.6 #1 0x00007ffff7d51bd6 in raise () from /usr/lib64/libc.so.6 #2 0x00007ffff7d3930d in abort () from /usr/lib64/libc.so.6 #3 0x00007ffff7d39275 in ?? () from /usr/lib64/libc.so.6 #4 0x000055555555d7a5 in Vec_slinep_get (v=0x555555ae1ea0, index=50) at editor.c:20 #5 0x000055555555d950 in eb_get_line (eb=0x555556479b50, index=50) at editor.c:67 #6 0x000055555555e18b in eb_get_line_slice (eb=0x555556479b50, pos=50, sl=0x7fffffffc6e0) at editor.c:255 #7 0x0000555555560c98 in view_eb_draw (veb=0x555556258100) at view.c:220 #8 0x00005555555607d9 in view_draw_under (root=0x555556689000) at view.c:155 #9 0x000055555555fc78 in main (argc=2, argv=0x7fffffffd8c8) at main.c:47 I mean... what I were doing last year? This is just unreadable.
* refactor: modify field 'w' and 'h' to width and height respectivelydilluti0n2025-06-011-14/+14
|
* feat: enable fraction format of each geometry metadatas on viewdilluti0n2025-06-011-10/+52
|
* fix: mark unused dirty flag as TODOdilluti0n2025-06-011-3/+3
|
* refactor: view_eb_draw to draw text only for its boarderdilluti0n2025-06-011-13/+16
| | | | - rename and refactor draw_text_slice to draw_textn for more freely used
* refactor: introduce view.c; ui drawing abstraction layerdilluti0n2025-06-011-0/+253
This patch extracts the drawing logic from redr_raylib.c and moves it into a new abstraction layer in view.c, introducing a tree-based view system for UI rendering. - view.c defines a hierarchical 'view' structure with polymorphic draw methods. - root and ed_buf views are implemented as a proof of concept. - redr.c (via redr.h) now exposes only backend rendering primitives (text, clear, measure). - main.c is updated to instantiate and draw the view tree. This separation clarifies the responsibilities between layout (view) and rendering (redr) and prepares the system for future UI extensions such as nested panels, split views, and overlays.