Simon Hausmann
|
37a8c50c12
|
Simplify FontRequest
It doesn't have to be generic as mostly the frontend code creates it with logical lengths.
|
2022-09-30 23:31:32 +02:00 |
|
Simon Hausmann
|
a52d633b59
|
Change FontRequest to be a generic over the length
The API uses a logical length for pixel sizes and letter spacing,
but the renderer will need the physical length eventually.
|
2022-09-30 13:00:37 +02:00 |
|
Simon Hausmann
|
1624a66ebc
|
Change the Renderer trait's text related functions to explicitly operate on logical lengths
|
2022-09-30 13:00:37 +02:00 |
|
Olivier Goffart
|
36845dcbab
|
Support drawing embedded textures with the non-software renderers
|
2022-09-07 18:44:14 +02:00 |
|
Olivier Goffart
|
1ba4450115
|
Apply suggestions from code review
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
|
2022-09-07 17:11:57 +02:00 |
|
Olivier Goffart
|
abbf1edd91
|
Better error message when using the software renderer with a .slint file not compiled for it
|
2022-09-07 17:11:57 +02:00 |
|
Simon Hausmann
|
b0697352a1
|
Fix no_std build
|
2022-08-10 13:07:07 +02:00 |
|
Simon Hausmann
|
351a1b6448
|
Move set_rendering_notifier from the (to be public) PlatformWindow to the (private) Renderer trait
|
2022-08-10 13:07:07 +02:00 |
|
Olivier Goffart
|
8c70cd7f57
|
Move the fonts out of the Backend trait (#1438)
and remove the `'static`
|
2022-07-26 16:45:54 +02:00 |
|
Olivier Goffart
|
20d5cb72ed
|
Move the init_dirty_region dirrectly into the Renderer
This means we will query the size of the popup also for the GL backend
even if the backend don't need to be marked dirty, but that should be
alright.
|
2022-07-25 17:53:15 +02:00 |
|
Olivier Goffart
|
f7637b521f
|
More PlatformWindow trait simplification: Component registation optional
Forward the free graphics resource to the renderer by default
|
2022-07-25 12:04:34 +02:00 |
|
Olivier Goffart
|
74c041010e
|
Move the text functions out of the Window, into the Renderer trait
|
2022-07-25 12:04:34 +02:00 |
|