mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Add support for source clipping to the Image element
This allows rendering only a sub-rectangle of the original image, which we can use right away in the sliding puzzle demo.
This commit is contained in:
parent
7583394751
commit
3d85e45ec3
13 changed files with 219 additions and 25 deletions
|
@ -37,6 +37,7 @@ extern const cbindgen_private::ItemVTable BorderRectangleVTable;
|
|||
extern const cbindgen_private::ItemVTable TextVTable;
|
||||
extern const cbindgen_private::ItemVTable TouchAreaVTable;
|
||||
extern const cbindgen_private::ItemVTable ImageVTable;
|
||||
extern const cbindgen_private::ItemVTable ClippedImageVTable;
|
||||
extern const cbindgen_private::ItemVTable PathVTable;
|
||||
extern const cbindgen_private::ItemVTable FlickableVTable;
|
||||
extern const cbindgen_private::ItemVTable WindowVTable;
|
||||
|
@ -126,6 +127,7 @@ private:
|
|||
|
||||
using cbindgen_private::BorderRectangle;
|
||||
using cbindgen_private::Clip;
|
||||
using cbindgen_private::ClippedImage;
|
||||
using cbindgen_private::Flickable;
|
||||
using cbindgen_private::Image;
|
||||
using cbindgen_private::Path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue