Olivier Goffart
24244e3c7c
janitor: Rename a variable
2022-09-06 13:43:52 +02:00
Olivier Goffart
e0f1fdf298
Rgb565Pixel: remove color accessor, add conversion to Rgb8Pixel
...
Closes #1540
(Went or Rgb8Pixel instead of color, because color can have alpha)
2022-09-01 13:58:38 +02:00
Olivier Goffart
a647fe2d74
Rgb656Pixel: Mask the shifted value to prevent overflow in the addition
2022-09-01 13:58:38 +02:00
Olivier Goffart
4f0e2608d2
Sofware renderer: keep a Weak of the Window
...
Closes #1545
Not that `SoftwareRenderer::new()` takes the Weak by value instead of
by reference, because coercing a reference to a `Weak` to a `&Weak<dyn>`
is not possible, while converting a Weak to a `Weak<dyn>` just works.
2022-08-29 11:07:05 +02:00
Olivier Goffart
4105bafc2f
Fix the doc example of SoftwareRenderer::render_line_by_line
...
If we don't make it compile, it will have so many typo it's useless :-)
2022-08-27 15:05:06 +02:00
Olivier Goffart
8fba65a282
Rename and expose the unsafe-single-threaded feature
2022-08-25 16:47:53 +02:00
Olivier Goffart
2ad648ac66
swrenderer: Do not draw the inside of rounder rectangle if it is transparent
...
No need to blend a slice of transparent color
2022-08-25 12:37:05 +02:00
Olivier Goffart
ab4ce29749
Add a Rgb565Pixel
...
So we don't have to depend on embedded_graphics just for that
2022-08-25 12:37:05 +02:00
Olivier Goffart
a27806aca8
Add a feature to use the sofware renderer with the winit backend
...
Currently, you still need to pass some env variable at build time so it
embeds the font.
2022-08-22 19:02:28 +02:00
Olivier Goffart
243df1ed54
Rename blend_buffer to blend_slice
2022-08-22 09:52:56 +02:00
Olivier Goffart
228e2d9a7e
Some polishing of the TargetPixel trait
2022-08-22 09:52:56 +02:00
Simon Hausmann
df99b95a0b
Don't export DEFAULT_FONT_SIZE into slint_internal.h
2022-07-26 11:21:40 +02:00
Olivier Goffart
4ecc2cd1c0
swrenderer: add a renderer that operate dirrectly on the frame buffer
2022-07-06 17:06:40 +02:00
Olivier Goffart
014c827194
swrenderer: Optimize image drawing by using premultiplied colors
2022-06-14 11:23:02 +02:00
Olivier Goffart
a72115518d
Move the software renderer to core
2022-06-04 13:40:50 +02:00