Commit Graph

159 Commits

Author SHA1 Message Date
a0c6a3b2cb work on button with label 2024-12-20 19:50:58 +01:00
ca691d1294 enlarge scrollbars when focused 2024-12-20 02:17:41 +01:00
f7985f8c7f track focused and hovered elements 2024-12-20 01:45:10 +01:00
4bd827ce5c set ids <facepalm> 2024-12-19 19:42:02 +01:00
d31b4eab53 update todo 2024-12-19 15:27:14 +01:00
1088083e1e stuff, mostly renaming variables 2024-12-19 15:24:39 +01:00
601a396aa8 scrollbar fixup 2024-12-19 00:29:30 +01:00
a481269022 work on div sliders, major changes
* Ids are now keyed based on the parent's id, this means that an element can have
  the same label when placed in different divs
* Divs now enable the scissor test, this way the elements cannot draw outside of
  the parent div bounds
* Introduced a LAYOUT_ABSOLUTE that disables all layout logic, for internal use
* Divs now draw scrollbars using the slider_hor and slider_ver elements
2024-12-18 20:04:23 +01:00
499f6dc79b removed force update 2024-12-18 15:10:17 +01:00
740ea0c6be merged ugui_impl and ugui_data to ugui_core 2024-12-18 15:02:46 +01:00
8d4b353e88 a lot of work on sliders 2024-12-18 14:58:40 +01:00
c0e9565bf6 idk some stuff 2024-12-17 11:26:59 +01:00
c1a7b4fcdb display timing statistics 2024-12-16 17:06:46 +01:00
7d9a8a1363 pre-cache ascii range in font atlas 2024-12-16 17:06:33 +01:00
2e0c6333d3 draw border around floating divs 2024-12-16 17:06:16 +01:00
3a7655a3f0 specify texture id in the sprite command 2024-12-16 17:05:44 +01:00
7b7aac8df4 schrift use ZString where necessary 2024-12-16 14:08:08 +01:00
2e60e4c5b8 fix font alpha channel 2024-12-16 14:07:44 +01:00
bca29c537c scissor command 2024-12-15 22:29:07 +01:00
6d8300f9d9 better font atlas implementation 2024-12-15 21:39:26 +01:00
5a89e9ec7d fixed formatting fuckups offered by the zed team 2024-12-14 13:29:45 +01:00
0db858e814 use libgrapheme to interpret utf8 encoded strings 2024-12-14 01:12:54 +01:00
8cf3881b6b added libgrapheme 2024-12-13 16:44:07 +01:00
373243d138 fix rect roundness 2024-12-13 14:42:15 +01:00
3070fac9f5 cull zero area rects 2024-12-13 14:41:54 +01:00
5c687bd24e add push_sprite() 2024-12-13 14:05:07 +01:00
c880c2b26e correct text bounds 2024-12-13 13:56:02 +01:00
089140e1ed substitute enqueue() with push_rect() 2024-12-13 13:51:23 +01:00
fb177c03f7 some todos 2024-12-12 15:46:40 +01:00
328cac871a started work on border radius 2024-12-12 15:46:24 +01:00
f0aa59ef0b even better text rendering 2024-12-11 22:25:53 +01:00
61556d0a2c forgot the baseline 2024-12-11 20:39:06 +01:00
2356d165fe somewhat functional text rendering 2024-12-11 01:14:14 +01:00
dbe70eb4f4 added library schrift 2024-12-06 22:03:35 +01:00
f86a360f39 correct slider handle placement 2024-12-02 18:48:30 +01:00
7e18c7a316 only reset div elements to default if new element 2024-12-01 00:28:08 +01:00
537acd4765 added a way to force a relayout 2024-12-01 00:26:56 +01:00
d5bea68058 report timings 2024-12-01 00:25:43 +01:00
574a1f23dc some tests 2024-11-21 00:50:42 +01:00
f8e2c0b70c more TODO 2024-11-21 00:50:25 +01:00
9a785e0f06 use builtin hash functions instead of rolling my own 2024-11-21 00:50:11 +01:00
bb1745a05d use map::HashMap instead of map::Map and use clz() to find a free spot 2024-11-21 00:46:27 +01:00
04dff26067 reduced maximum elements to 1024 2024-11-21 00:45:50 +01:00
fa3362cc66 wait for events to reduce cpu usage 2024-11-20 17:12:01 +01:00
73bc933eb5 semi-working vertical slider 2024-11-17 23:36:12 +01:00
763e9ba8d6 correct placement and box model 2024-11-14 23:42:20 +01:00
250a0fb3b5 initial work on scrollable divs 2024-11-07 18:35:20 +01:00
8bc38452b3 renamed elem.rect to elem.bounds 2024-11-02 09:44:53 +01:00
1cad13e597 vertical slider 2024-11-02 09:41:54 +01:00
28598f0575 slider 2024-10-31 13:04:30 +01:00