Simon Hausmann
01d666083f
doc: Remove the experimental tag from the Skia renderer
...
Should've done that for 0.3.1, but better late than never :)
2022-10-31 10:50:28 +01:00
ogoffart
2171773a3e
Bump version number to 0.3.2
2022-10-28 09:30:14 +00:00
Olivier Goffart
17aa0d7203
Update version number in docs
2022-10-28 09:42:20 +02:00
Tobias Hunger
107c68e35a
janitor: Update toml-edit to 0.15
2022-10-26 08:59:36 +02:00
Simon Hausmann
c16253d29f
Use Property<LogicalLength> instead of Property<Coord>
...
This removes the special code for the generated property getters and
ensures type safety in the run-time library for property value setting.
In the Rust generated code we continue to do arithmetic on the scalar
values, that means we immediately extract the scalar, do arithmetic and
rely on the compiler to only allow compatible units.
Danger zone alert: In the interpreter Value::Number can now be converted
to LogicalLength as-is.
2022-10-24 12:49:37 +02:00
Olivier Goffart
1b58ab93f1
Fix documentation of CompilerConfiguration::embed_resources
...
It was just a copy paste of with_style
2022-10-21 10:33:54 +02:00
Florian Blasius
5fb31ace02
Florian/rust sorting model ( #1712 )
...
Add Rust version of SortModel
2022-10-07 16:24:48 +02:00
Simon Hausmann
a7dc0cff45
doc: don't show a preview for the generated component examples
2022-09-26 10:38:52 +02:00
Simon Hausmann
2c54628302
Minor grammar fix
...
Don't "do" a liasion, act as one :)
2022-09-22 12:56:18 +02:00
ogoffart
261614b914
Bump version number to 0.3.1
2022-09-15 14:39:51 +02:00
Olivier Goffart
419016a356
Rename the compat feature again
...
crates.io won't let us upload a feature with dots in it:
```
Uploading slint-interpreter v0.3.0 (/home/olivier/slint/internal/interpreter)
error: failed to publish to registry at https://crates.io
Caused by:
the remote server responded with an error: invalid upload request: invalid value: string "compat-0.3.0", expected a valid feature name at line 1 column 2254
```
2022-09-14 15:55:57 +02:00
Olivier Goffart
2ada879b05
Update version number in the documentation
2022-09-14 14:47:44 +02:00
Simon Hausmann
9301fd4bf2
Link to the template and the mcu printer demo
2022-09-13 15:55:53 +02:00
Olivier Goffart
0608c0b0e1
docs: add a picture to illustrate the MCU docs
2022-09-13 15:35:45 +02:00
Simon Hausmann
7dd4e043be
janitor: fix typo
2022-09-13 14:16:05 +02:00
Simon Hausmann
0e97cb04a8
Doc fixes
...
* Avoid abbreviations in headings
* Micro-Controllers -> Microcontrollers
2022-09-13 14:05:34 +02:00
Simon Hausmann
f6001818a8
Second round of changes to the MCU docs ( #1624 )
2022-09-12 13:48:07 +02:00
Simon Hausmann
012dc34975
Remove the Rust and C++ migration guides from the documentation
2022-09-09 16:53:49 +02:00
Simon Hausmann
8251d60185
Build on docs.rs also with log
...
The document-features feature will end up with markup that references the log crate.
2022-09-09 11:18:16 +02:00
Simon Hausmann
76aea0c2d4
Remove renderer-winit-software
from the docs.rs feature flags
...
That flag used to enable the software renderer API, but not anymore.
2022-09-09 10:07:20 +02:00
Simon Hausmann
6875e35ec9
Polish the platform module level-docs ( #1616 )
...
Various edits and tweaks.
2022-09-09 09:24:59 +02:00
Simon Hausmann
8ee88a53c1
MCU Doc fixes ( #1615 )
...
Various edits to the introduction of how to use Slint on MCUs.
2022-09-09 08:35:01 +02:00
Olivier Goffart
1ba4450115
Apply suggestions from code review
...
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2022-09-07 17:11:57 +02:00
Olivier Goffart
8850959a2c
Rename the backend feature flags
2022-09-07 17:11:57 +02:00
Olivier Goffart
15fa69ef55
Rename the compat-0-2-0 feature to compat-0.3.0
...
But keep a compat-0-2-0 fome compatibility anyway
2022-09-07 14:09:07 +02:00
Tobias Hunger
8b66194aca
Fix doc for renderer-software
feature
...
Also fix casing in `mcu.md` headline
2022-09-07 10:11:11 +02:00
Tobias Hunger
625546304c
Remove software-renderer feature more aggressively
...
I missed some instances as the CI and @ogoffart both pointed out. Fix
that.
Also make the `text_layout`and `ìnteger-sqrt` features that were set by
the `swrenderer` feature mandatory -- by removing them completely.
2022-09-07 10:11:11 +02:00
Tobias Hunger
d880ef8eb5
api: Remove software-renderer
feature
2022-09-07 10:11:11 +02:00
Tobias Hunger
639dcaf702
api: Rename module swrenderer
to software_renderer
...
Also rename the `swrenderer` feature to `software-renderer`.
2022-09-07 10:11:11 +02:00
Olivier Goffart
d5e27a9788
Move the documentation of the log
feature before the backends
...
We do that by using the `dep:` trick in the Cargo.toml
2022-09-06 18:33:20 +02:00
Olivier Goffart
88d231f3ec
Move the testing
module from away from public api
...
move it the testing backend
2022-09-06 17:27:15 +02:00
Simon Hausmann
7967bf1ab0
Replace the internal WindowHandleAccess
trait with a helper function on WindowInner
...
The reversal of ownership removes the need for the glue trait in the
publicly visible API.
2022-09-06 16:17:06 +02:00
ogoffart
05a49da906
Bump version number to 0.3.0
2022-09-06 13:00:22 +02:00
Olivier Goffart
40f489041e
Rename slint::internal to slint::unstable_private_api and move re_exports into it
...
Also move the module in its own file
2022-09-06 05:42:11 +02:00
Simon Hausmann
3a1817de3f
Skia: Make it possible to explicitly select the OpenGL backend of Skia
...
When opting into the Skia renderer, we default to metal on macOS and D3D on Windows.
However if you want to develop a cross-platform application with Skia and
for example rely on OpenGL to be able to implement an OpenGL underlay or overlay,
then we need the ability to explicitly opt into skia's GL renderer.
cc #1445
2022-09-05 14:07:27 +02:00
Olivier Goffart
0085145d10
MCU documentation
2022-09-04 18:31:26 +02:00
Olivier Goffart
d4df55e6ab
Move non-backend features outside of the backend section
2022-09-03 11:15:26 +02:00
Simon Hausmann
437218db70
Replace the built-in defmt debug logging to the platform trait
...
This way we don't have to add defmt, esp32-println and others as features to corelib and the slint api crate
(which would also expose them as public dependencies),
but instead this can be simply delegated to the Platform trait.
2022-09-02 20:13:41 +02:00
Tobias Hunger
3430a13bf8
API cleanup: Remove quit behavior parameter from run_event_loop
2022-08-30 08:34:45 +02:00
Olivier Goffart
396a2c5ecb
Implement std::fmt::Write for SharedString and add a format!
macro
2022-08-29 17:25:24 +02:00
Tobias Hunger
10c3c9d16d
Api cleanup: Rename some remaining platform abstractions to platform
2022-08-29 16:53:47 +02:00
Tobias Hunger
88cf874d03
API cleanup: Rename create_window to create_window_adapter
2022-08-29 16:53:47 +02:00
Tobias Hunger
1e6ffeaa0f
API cleanup: Rename PlatformWindow to WindowAdapter
2022-08-29 16:53:47 +02:00
Tobias Hunger
53053683a1
API cleanup: Rename PlatformAbstraction to Platform
2022-08-29 13:26:36 +02:00
Olivier Goffart
8fba65a282
Rename and expose the unsafe-single-threaded feature
2022-08-25 16:47:53 +02:00
Simon Hausmann
bf801cfdda
Remove mcu bsp feature dependency on i-slint-core for defmt and libm
...
Make both features of the slint crate
2022-08-25 12:54:52 +02:00
Simon Hausmann
94d5444105
Remove swrenderer
feature dependency on i_slint_core from mcu bsp crate
...
Let `renderer-software` enable the API in `slint::platform::swrenderer` and optionally toggle winit support.
2022-08-25 12:54:52 +02:00
Simon Hausmann
d90b503a1c
Move the mcu backend to become a board support helper crate for examples
2022-08-25 12:54:52 +02:00
Olivier Goffart
1884ddf4c6
Add api so slint-build to chose how to embed the images
2022-08-24 18:18:44 +02:00
Olivier Goffart
13c9c3bbab
Re-export the platform module as public api in slint::platform
...
Tweek some documentation
2022-08-24 14:28:51 +02:00