ogoffart
ce07d078ce
Bump version number to 0.3.4
2022-12-16 09:36:15 +00:00
Olivier Goffart
3bc3962c00
Update versions in docs
2022-12-16 09:31:11 +01:00
Olivier Goffart
30a81d856a
documentation: fix formatting of the backend selection
2022-12-08 08:05:27 +01:00
Simon Hausmann
11f46906a2
Centralize rust-version in Cargo.toml
...
Require 1.64 in the workspace and inherit the setting in package
Cargo.toml files.
2022-12-05 12:39:14 +01:00
Simon Hausmann
7e77a2a4cc
Bump MSRV to 1.64
...
... due to rust-skia bindings requiring a feature (ffi related).
2022-12-04 19:39:35 +01:00
Simon Hausmann
d28ebc46c5
janitor: Trigger rebuilds of SLINT_EMBEDD_RESOURCES changes
...
The compiler reads this variable, so we should rebuild if it changes.
2022-11-30 11:31:14 +01:00
ogoffart
fb02b4118b
Bump version number to 0.3.3
2022-11-28 13:11:11 +00:00
Olivier Goffart
ed1911cc89
Update version number in docs
2022-11-28 11:55:48 +01:00
Simon Hausmann
4308ed921d
Add documentation about the available widget styles and how to select them ( #1910 )
2022-11-25 14:53:20 +01:00
Simon Hausmann
247772104a
Move WindowEvent
, PointerEventButton
and Key
to the platform
module
...
For `Key` this is a move, as it is a new type. For `WindowEvent` and `PointerEventButton` deprecated aliases
are provided.
2022-11-24 11:34:28 +01:00
Simon Hausmann
d8a1f2cf01
Introduce a rem
unit in the type system
...
This allows specifying font sizes relative to the Window's
default-font-size, similar to CSS rem.
2022-11-24 11:33:38 +01:00
Olivier Goffart
f6a41e236a
Fix typo
2022-11-22 06:26:25 +01:00
Florian Blasius
61c39b5fa1
Add support for dispatching key events through the public platform API
...
This change adds `KeyPress` and `KeyRelease` variants to the
`WindowEvent` enum, along with the new `slint::Key` enum, that allows
encoding keys.
2022-11-15 10:34:17 +01:00
Olivier Goffart
4556291e1a
Compiler: move the image and font embedding behind a software-renderer flag
...
Limit the dependency tree of things like the interpreter or the C++ compiler that
doesn't support it anyway.
It is still enabled inconditionally in slint-build though
2022-11-09 12:56:44 +01:00
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