Alessandro Mauri
ca691d1294
enlarge scrollbars when focused
4 months ago
Alessandro Mauri
f7985f8c7f
track focused and hovered elements
4 months ago
Alessandro Mauri
4bd827ce5c
set ids <facepalm>
4 months ago
Alessandro Mauri
d31b4eab53
update todo
4 months ago
Alessandro Mauri
1088083e1e
stuff, mostly renaming variables
4 months ago
Alessandro Mauri
601a396aa8
scrollbar fixup
4 months ago
Alessandro Mauri
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
4 months ago
Alessandro Mauri
499f6dc79b
removed force update
4 months ago
Alessandro Mauri
740ea0c6be
merged ugui_impl and ugui_data to ugui_core
4 months ago
Alessandro Mauri
8d4b353e88
a lot of work on sliders
4 months ago
Alessandro Mauri
c0e9565bf6
idk some stuff
4 months ago
Alessandro Mauri
c1a7b4fcdb
display timing statistics
4 months ago
Alessandro Mauri
7d9a8a1363
pre-cache ascii range in font atlas
4 months ago
Alessandro Mauri
2e0c6333d3
draw border around floating divs
4 months ago
Alessandro Mauri
3a7655a3f0
specify texture id in the sprite command
4 months ago
Alessandro Mauri
7b7aac8df4
schrift use ZString where necessary
4 months ago
Alessandro Mauri
2e60e4c5b8
fix font alpha channel
4 months ago
Alessandro Mauri
bca29c537c
scissor command
4 months ago
Alessandro Mauri
6d8300f9d9
better font atlas implementation
4 months ago
Alessandro Mauri
5a89e9ec7d
fixed formatting fuckups offered by the zed team
4 months ago
Alessandro Mauri
0db858e814
use libgrapheme to interpret utf8 encoded strings
4 months ago
Alessandro Mauri
8cf3881b6b
added libgrapheme
4 months ago
Alessandro Mauri
373243d138
fix rect roundness
4 months ago
Alessandro Mauri
3070fac9f5
cull zero area rects
4 months ago
Alessandro Mauri
5c687bd24e
add push_sprite()
4 months ago
Alessandro Mauri
c880c2b26e
correct text bounds
4 months ago
Alessandro Mauri
089140e1ed
substitute enqueue() with push_rect()
4 months ago
Alessandro Mauri
fb177c03f7
some todos
4 months ago
Alessandro Mauri
328cac871a
started work on border radius
4 months ago
Alessandro Mauri
f0aa59ef0b
even better text rendering
4 months ago
Alessandro Mauri
61556d0a2c
forgot the baseline
4 months ago
Alessandro Mauri
2356d165fe
somewhat functional text rendering
4 months ago
Alessandro Mauri
dbe70eb4f4
added library schrift
4 months ago
Alessandro Mauri
f86a360f39
correct slider handle placement
4 months ago
Alessandro Mauri
7e18c7a316
only reset div elements to default if new element
4 months ago
Alessandro Mauri
537acd4765
added a way to force a relayout
4 months ago
Alessandro Mauri
d5bea68058
report timings
4 months ago
Alessandro Mauri
574a1f23dc
some tests
5 months ago
Alessandro Mauri
f8e2c0b70c
more TODO
5 months ago
Alessandro Mauri
9a785e0f06
use builtin hash functions instead of rolling my own
5 months ago
Alessandro Mauri
bb1745a05d
use map::HashMap instead of map::Map and use clz() to find a free spot
5 months ago
Alessandro Mauri
04dff26067
reduced maximum elements to 1024
5 months ago
Alessandro Mauri
fa3362cc66
wait for events to reduce cpu usage
5 months ago
Alessandro Mauri
73bc933eb5
semi-working vertical slider
5 months ago
Alessandro Mauri
763e9ba8d6
correct placement and box model
5 months ago
Alessandro Mauri
250a0fb3b5
initial work on scrollable divs
5 months ago
Alessandro Mauri
8bc38452b3
renamed elem.rect to elem.bounds
5 months ago
Alessandro Mauri
1cad13e597
vertical slider
5 months ago
Alessandro Mauri
28598f0575
slider
5 months ago
Alessandro Mauri
f48151b38e
initial refactor
5 months ago