Olivier Goffart
86968d6f80
Dependencies update
2023-10-02 20:27:25 +02:00
Olivier Goffart
d688f37ee8
Change alias to the native style depending on the platform
...
Fixes #3431
2023-09-29 17:05:10 +02:00
Olivier Goffart
ea19c1e962
Remove the preview from the rust docs
...
rustdoc removes the `no-preview` tag, and we anyway do not have a
slint file to preview in the docs anymore
2023-09-29 10:40:45 +02:00
Tobias Hunger
85e1c6020b
janitor: Use workspace dependnecies for the slint crates
...
This moves most of the version information we need to update into one
place.
Note that the workplace dependency features are in *addition* to any
feature set when using the workspace dependency. So we have all
workspace dependencies defined with `no-default-features = true`.
2023-09-25 16:34:16 +02:00
Tobias Hunger
da7023a073
Update version information to 1.3.0
2023-09-25 16:34:16 +02:00
Tobias Hunger
d6695c55cb
Janitor: Use cargo workspace package data more
2023-09-25 16:34:16 +02:00
Simon Hausmann
25d954b869
Fix link to modules syntax docs
...
Fixes #3526
2023-09-21 19:31:44 +02:00
Simon Hausmann
cc7ce65c0d
Don't show a preview for the sample component in the Rust docs
...
It's not a visual example.
2023-09-19 10:56:34 +02:00
Olivier Goffart
f2c3b98a7d
Hide the ComponentFactory from the docs
...
It was not meant to be public.
Added a deprecated note even if deprecared on `pub use` don't show warnings
2023-09-19 09:41:49 +02:00
Olivier Goffart
196f14e89f
rust: return LogicalRect for inner item_geometry
functions
...
(More in line to what C++ does)
2023-09-13 16:08:37 +02:00
Olivier Goffart
e0fd9a6105
WIP: Add item_geometry to the ComponentVTable
...
(unused yet)
2023-09-13 16:08:37 +02:00
Simon Hausmann
c8b05c2b05
Add documentation about the different renderers, their pros/const, and availability in backends and API
2023-09-12 11:28:17 +02:00
Olivier Goffart
a565ed53fd
Upgrade MSRV to 1.70
...
Many of our dependencies already made the jump and require a cargo update hack, so make it official
Removed the MSRV from the README since it applies to master branch and people read the readme also for
the released version. There is enough documentation of the MSRV in other locations.
2023-09-06 12:09:03 +02:00
tronical
b8b9db4e42
Bump version number to 1.3.0
2023-09-05 15:46:36 +02:00
Simon Hausmann
5e9aa8830e
Bump Slint version in various doc samples to 1.2.0
...
Same as commit 2a2e38315e
2023-09-04 10:17:02 +02:00
Simon Hausmann
2a486edd82
Mark the linuxkms backend as experimental
2023-08-31 11:30:51 +02:00
Olivier Goffart
f7a44d7dfc
Rust docs: make the main page shorter by moving sections in their modules
2023-08-30 18:33:51 +02:00
Simon Hausmann
24df168f04
Make the FemtoVG renderer public in the Rust API ( #3371 )
2023-08-29 18:34:59 +02:00
Simon Hausmann
efb619b08a
Revert "Make the SkiaRenderer public in the Rust API"
...
This reverts commit 9d27f0cc96
.
This was not intended for the master branch. Ooops.
2023-08-29 08:55:26 +02:00
Simon Hausmann
9d27f0cc96
Make the SkiaRenderer public in the Rust API
...
It's also public in the C++ API and this is the equivalent change on the Rust API side.
2023-08-29 08:54:11 +02:00
Simon Hausmann
11128b3b7f
Document show()/hide()'s behavior of the additional strong component reference
2023-08-28 13:45:28 +02:00
Simon Hausmann
a98e07417e
Add support for a simple event loop with proxy to the testing backend
...
Moved from the spawn_local test, this allows for re-use in the
show_strongref integration test.
2023-08-28 13:45:28 +02:00
Simon Hausmann
de58d5e83c
Keep the component alive when the window is visible
...
show() now let's Slint maintain a strong reference to the component, so
that it's easy to create new windows without having to do an awkward
dance around keeping the component alive.
Closes #3328
2023-08-28 13:45:28 +02:00
Simon Hausmann
e7a883348b
Add links from Rust and C++ to the common platform backend docs
...
... and adjust the C++ platform backend docs a little to the current
state.
cc #3208
2023-08-25 13:22:06 +02:00
Olivier Goffart
2acf687cf3
Add a serde feature to Slint
...
CC discussion #3314
2023-08-23 13:03:54 +02:00
Simon Hausmann
96d7bb132c
reuse: remove glob for markdown files
...
Instead, place the copyright and license right into the source.
To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
Tobias Hunger
09d3eaf00a
Update license symlinks
...
run `cargo xtask check_reuse_compliance --fix-symlinks`
2023-08-16 11:46:15 +02:00
Simon Hausmann
bf7e7e7323
Move debugging techniques under advanced topics in the Slint reference
2023-08-15 10:43:49 +02:00
Simon Hausmann
0c9199b17f
Add support for flipping borrowed OpenGL textures vertically ( #3205 )
...
Closes #2986
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
2023-08-02 13:11:13 +02:00
Simon Hausmann
5c9eed62f1
Add a new backend that supports rendering fullscreen with Vulkan
...
This doesn't require a windowing system, just Linux and Vulkan drivers
that supports the display extensions.
It's called linuxkms as soon this will go beyond Vulkan and also support
EGL and perhaps dumb buffers for software rendering.
2023-07-28 13:40:37 +02:00
Olivier Goffart
3a807e46c1
Renderer feature refactor
2023-07-27 19:11:24 +02:00
Olivier Goffart
627deb1e9f
interpreter: Hide the ComponentFactory from the public API
...
(also re-order the types in the docs of api/rs/slint/lib.rs to make the
non-literal types appart)
2023-07-27 12:04:16 +02:00
Tobias Hunger
b55cdb9cf4
Make ComponentContainer a compiler configuration feature
...
Require `SLINT_EXPERIMENTAL_FEATURES` to be set in the environment to
enable `ComponentContainer` and `component-factory`.
2023-07-27 12:04:16 +02:00
Tobias Hunger
baa4eb1ea3
Get rid of the window when building an embedded component
...
... now that we can get the WindowAdapter from the parent component when
we embed it.
2023-07-27 12:04:16 +02:00
Tobias Hunger
1fb9b6de41
docs: Sort type tables
2023-07-27 12:04:16 +02:00
Tobias Hunger
2840886d28
Add component-factory type to Slint language
...
Add a type "component-factory" to the Slint language.
2023-07-27 12:04:16 +02:00
Tobias Hunger
731c422329
Add a ComponentFactory (Rust)
...
Add a ComponentFactory type which will eventually be used as a property
value in Slint. The idea is to copy around this type and to create
components from it that we can embed.
We do not want to hand raw components around as those are reference counted
and might end up being embedded into several places, which would break out
tree of components.
2023-07-27 12:04:16 +02:00
ogoffart
aebaa7d6c9
Bump version number to 1.2.0
2023-07-25 10:44:53 +00:00
Guilhem Vallat
49b3e15bc8
Add ReverseModel
2023-07-20 16:18:37 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Tobias Hunger
e81a3d40f0
Get rid of more clippy warnings
...
* Configure clippy to not report about type complexity until *much*
later
* Configure clippy to only complain about more than 10 function
arguments
* Properly format safety sections
* Allow unnecessary main functions in doctests in the slint API crate
* AccessKit: Move big block of code before if condition
2023-06-28 14:22:30 +02:00
Tobias Hunger
e02c360000
Clippy polish
2023-06-28 14:22:30 +02:00
ogoffart
c8c9496722
Bump version number to 1.1.1
2023-06-26 12:50:02 +00:00
Olivier Goffart
d2edb6ee57
Fix crates.io uploading
...
dev-dependencies with path shouldn't have a version
2023-06-26 13:47:23 +02:00
Olivier Goffart
9b59036816
Add licenses symlinks
2023-06-26 13:12:29 +02:00
Olivier Goffart
2a2e38315e
Update a few docs to 1.1.0
2023-06-26 12:42:01 +02:00
Simon Hausmann
ab0e38c76d
Merge absolute-x
and absolute-y
"virtual" properties into absolute-position
( #2942 )
...
The type of thep property is `Point`, which existed before. It was
mapped to `slint::private_unstable_api::re_exports::Point` (euclid) and
is now mapped to slint::LogicalPosition (also in C++).
2023-06-21 08:17:57 +02:00
Olivier Goffart
fe55664eae
Improve docs of slint::init_translations
2023-06-20 12:08:38 +02:00
Olivier Goffart
fdec5960bd
Support for @rust-attr on enums
2023-06-19 22:40:49 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00