Olivier Goffart
f2c680ac28
Update description in Cargo.toml
2023-01-27 08:54:13 +01:00
Olivier Goffart
a0fb8bc771
Remove support of old SIXTYFPS_ env variable, and sixtyfps_widgets.60
2023-01-26 13:36:38 +01:00
Olivier Goffart
a3ec320bfb
Remove some deprecated stuff
...
CC #2024
2023-01-26 11:19:21 +01:00
Olivier Goffart
aad03d2d43
Update the version number in the readme and docs
2023-01-25 11:25:51 +01:00
Simon Hausmann
7e02fa8b6a
Update the syntax used in the different documentation entries and README
2023-01-25 09:54:50 +01:00
Jocelyn Turcotte
cad7178b9e
Docs: Suggest enabling the Feature resolver version 2 in the MCU doc
...
After a while trying to understand why std kept appearing in the output of
`cargo +nightly tree -e features -i once_cell -f "{p} {f}"` and why it built within the
slint tree but not in my project, I figured out that this is probably because slint
is enabling the new feature resolver in its root Cargo.toml.
2023-01-18 06:09:47 +01:00
Olivier Goffart
00de1867ae
Janitor: deps upgrade
2023-01-16 10:47:55 +01:00
Florian Blasius
f2aab576f4
Add StandardTableView widget ( #2032 )
...
* Text only StandardTableView with column and rows
* Text editing of cells
* Sort by column ascending and descending
* Variants of the TableView for native, fluent and material
2023-01-12 19:41:12 +01:00
Olivier Goffart
af50c2c2c2
Do not panic if the document contains a global but no normal component
...
Fixes #2005
(Unfortunately, we can't make a driver test for this becasue the
behavior with the interpreter is different than with the compilers.
The interpreter errors out, while the compiler should just generate
nothing)
2022-12-19 11:54:15 -08:00
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