WIP: Make image decoding a feature of the core library

This includes the cache of decoded images, the HTMLImage element support
and the SVG rendering adapter.

The objective is that Image holds an ImageInner, which is not a path
anymore that the backend has to process, but instead always either
decoded image data, a pointer to a static texture or an SVG tree that
can be rendered to the desired size.
This commit is contained in:
Simon Hausmann 2022-06-02 13:23:22 +02:00 committed by Simon Hausmann
parent 29d28dc73e
commit 67a2f0ce3f
22 changed files with 448 additions and 282 deletions

View file

@ -21,7 +21,7 @@ public:
static Image load_from_path(const SharedString &file_path)
{
Image img;
img.data = Data::ImageInner_AbsoluteFilePath(file_path);
cbindgen_private::types::slint_image_load_from_path(&file_path, &img.data);
return img;
}