mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Add a BoxShadow element
This intends to provide a configurable rectangular "drop shadow". The API is modeled after CSS/HTML5 Canvas where the element can be "bound" to an existing rectangular shape (geometry and radius), the offset can be used to place the shadow and color and blur configure the shadow. The shadow's color fades into transparent. TODO (in subsequent changes): * Documentation * Qt implementation
This commit is contained in:
parent
0cb51a986f
commit
628e6fdb38
8 changed files with 171 additions and 12 deletions
|
@ -45,6 +45,7 @@ extern const cbindgen_private::ItemVTable FlickableVTable;
|
|||
extern const cbindgen_private::ItemVTable WindowVTable;
|
||||
extern const cbindgen_private::ItemVTable TextInputVTable;
|
||||
extern const cbindgen_private::ItemVTable ClipVTable;
|
||||
extern const cbindgen_private::ItemVTable BoxShadowVTable;
|
||||
|
||||
extern const cbindgen_private::ItemVTable NativeButtonVTable;
|
||||
extern const cbindgen_private::ItemVTable NativeCheckBoxVTable;
|
||||
|
@ -151,6 +152,7 @@ using cbindgen_private::Text;
|
|||
using cbindgen_private::TextInput;
|
||||
using cbindgen_private::TouchArea;
|
||||
using cbindgen_private::Window;
|
||||
using cbindgen_private::BoxShadow;
|
||||
|
||||
using cbindgen_private::NativeButton;
|
||||
using cbindgen_private::NativeCheckBox;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue