Olivier Goffart
7f7b620a35
Update the injected scripts to the new name
2022-02-02 12:26:55 +01:00
Simon Hausmann
7d297da2fc
Rename the sixtyfps C++ namespaces
2022-02-02 12:11:27 +01:00
Olivier Goffart
692171bf0c
Change the 60 blocks to slint blocs in documentation comments
2022-02-02 10:51:42 +01:00
Simon Hausmann
95452ccab3
Fix calls to slint_target_sources
...
Use the .slint extension
2022-02-02 10:39:56 +01:00
Olivier Goffart
03534039d6
Replace more .60 by .slint
...
Mainly an automated change with
git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"
and some manual checks
2022-02-02 10:12:31 +01:00
Olivier Goffart
d706d63ce1
Replace references to the .60 files that are now renamed with .slint
2022-02-02 10:12:31 +01:00
Olivier Goffart
0c0a783095
Rename all our .60 files to .slint
2022-02-02 10:05:45 +01:00
Simon Hausmann
b1a70f9e58
Rename the SixtyFPS CMake interface
2022-02-02 09:58:26 +01:00
Simon Hausmann
c333b4de2b
Rename the sixtyfps-cpp crate
2022-02-02 09:27:11 +01:00
Simon Hausmann
809fbfc7a6
Rename sixtyfps-node
...
This doesn't touch the documentation, just the package/API side
2022-02-01 22:17:35 +01:00
Olivier Goffart
0308f86cd4
Rename sixtyfps_widgets.60 to std-widgets.slint
2022-02-01 18:58:54 +01:00
Tobias Hunger
842f75e653
[reorg]: Move api/sixtyfps-rs/sixtyfps-* into api/rs
2022-01-31 18:24:33 +01:00
Tobias Hunger
a3b86690ff
[reorg]: Move the rendering backends into internal
2022-01-31 16:00:50 +01:00
Olivier Goffart
929166f06c
Change what is accepted by ModelRc::new and ModelRc::from
...
- ModelRc::new constructs a ModelRc from a impl Model
- ModelRc::form constructs a ModelRc from a `Rc<dyn Model>` or `Rc<impl Model>`
2022-01-31 14:44:35 +01:00
Tobias Hunger
018c1a6666
Rename ModelHandle to SharedModel
...
This patch is mostly a rename now, but also contains a few small
cleanups.
SharedModel implements the Model trait itself and gracefully falls back
to an empty model is no Model was provided. This allows for some small
simplifications.
Also make sure to use the same comparision for SharedModels everywhere.
This fixes the last remaining clippy errors we had.
2022-01-30 01:26:35 +01:00
Boris Zhguchev
38bd1917a0
Add support for font-size to LineEdit and Text-Edit widgets. ( #872 )
...
closes #435
2022-01-26 15:08:04 +01:00
Tobias Hunger
e3c4209b1f
Change Model::row_data to return an Option<T> ( #873 )
...
Change Model::row_data to return an Option<T> (rust) or std::optional<T> (c++)
Co-authored-by: Olivier Goffart <olivier@woboq.com>
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2022-01-26 13:55:38 +01:00
Olivier Goffart
e2ec76f9ef
We don't need the resolver=2 with edition 2021
2022-01-25 11:40:11 +01:00
Olivier Goffart
a45dcc1f9a
Update to edition 2021
...
The ffi function wrapper need to be changed because in the 2021 edition, when
the capture is moved into the closure, it moves the individual field instead
of the whole wrapper. But we need to move the whole wrapper because the Drop
of the wrapper will delete the C++ closure, and we don't want to call the
closure after it is deleted.
2022-01-25 11:40:11 +01:00
Simon Hausmann
36e07b8801
Make it possible to use a string binding for Path commands
...
This was requested a few days ago in the chat and might also present an alternative for #754
2022-01-24 15:59:49 +01:00
Olivier Goffart
d0b3adeba9
Requires C++20
2022-01-24 13:04:12 +01:00
Olivier Goffart
6babb73136
Update the MSRV to 1.56, and test the generated code with edition 2021
2022-01-24 13:01:59 +01:00
ogoffart
42f1964e54
Bump version number to 0.2.0
2022-01-24 11:39:50 +01:00
Simon Hausmann
4f5df180b8
Add the named CSS colors to the docs
2022-01-21 16:33:34 +01:00
Simon Hausmann
ad20d44e33
Document the values in the Keys namespace
2022-01-21 16:33:34 +01:00
Olivier Goffart
4206c8d542
Revert "Update documentation link for release"
...
This reverts commit 20c6f24b65 .
The release was done, now go back to snapshot in docs snapshots
2022-01-21 10:53:57 +01:00
Olivier Goffart
20c6f24b65
Update documentation link for release
2022-01-21 09:38:17 +01:00
Olivier Goffart
c3f624d2fd
Version updates
2022-01-21 09:33:16 +01:00
Simon Hausmann
113bdb8730
doc: add missing period at the end of the sentence
2022-01-20 13:47:11 +01:00
Simon Hausmann
fa1ac9884d
Verify the existence of imported custom fonts
...
... and produce diagnostics.
That way in later phases we don't need to check again.
As an unfortunately side-effect, we need to skip one of the examples in
the language reference from the doc test, as the compilation fails
because the font does not exist.
2022-01-19 16:24:22 +01:00
Tobias Hunger
2f6be7b31f
Mass-add copyright headers into Cargo.toml files
2022-01-19 11:25:21 +01:00
James Blacklock
7ad1ba209d
Add support for array index expressions
...
This is a squash of the changes in
https://github.com/sixtyfpsui/sixtyfps/pull/605
2022-01-14 13:38:25 +01:00
Tobias Hunger
32cd9ccab2
Document delay property on PropertyAnimation
2022-01-11 20:58:26 +01:00
Simon Hausmann
eee5062e75
Small grammar fixes in the docs
2022-01-10 18:37:50 +01:00
Jared Moulton
c5c139fbc9
Feat: Add math funcs Log10, Log2, Log and Exp ( #813 )
...
Implement Math.log and Math.pow
2022-01-07 12:07:58 +01:00
Olivier Goffart
5891d006b1
Add a paragraph about when property are re-evaluated
...
As discussed in #769
2022-01-03 11:40:03 +01:00
Olivier Goffart
cdfac0574b
Fix typo
2022-01-02 20:38:36 +01:00
Be
9939425834
docs: minor improvements for layout docs
2021-12-24 23:49:29 +01:00
Tobias Hunger
597467fae9
Manually update license information in Cargo.toml files
...
... that are not published or private or not processed by xtask for
other reasons.
2021-12-22 10:06:12 +01:00
Tobias Hunger
bfca0e3573
Mass update copyright messages to be more REUSE compliant
2021-12-22 10:06:12 +01:00
Simon Hausmann
37f7b8f786
Add a note about the scale factor only applying to the GL backend atm
2021-12-21 09:09:59 +01:00
Simon Hausmann
f08c4dfccb
Add a debugging techniques page to the C++ and Rust documentation
...
This is listed under the reference ("how to") and explains `SIXTYFPS_SLOW_ANIMATIONS`, SIXTYFPS_DEBUG_PERFORMANCE` as well as `SIXTYFPS_SCALE_FACTOR`.
cc #728
2021-12-21 09:09:59 +01:00
Frederick Vollbrecht
12c0ef38fb
Typos: repeating words in documentation, across the repository ( #753 )
...
* fixed typo in image.rs
* unnecessary repeated words in sixtyfps_runtime
* unnecessary repeated words in sixtyfps_compiler
* unnecessary repeated word in docs
* unnecessary repeated words in helper_crates
2021-12-19 17:40:45 +01:00
Olivier Goffart
df22b65107
Apply suggestions from code review
...
Co-authored-by: Simon Hausmann <simon.hausmann@sixtyfps.io>
2021-12-10 11:28:09 +01:00
Olivier Goffart
f7c92183db
Add a Keys namespace in the .60 language with all the string constant for special keys
2021-12-10 11:28:09 +01:00
Olivier Goffart
963c44fd78
Put the global functions also in the Math namespace
...
So they can be accessible even if there is a property of the same name
2021-12-08 16:35:11 +01:00
Olivier Goffart
0436ce2399
Allow to access color names form the Colors namespace
2021-12-08 16:35:11 +01:00
Lukas Jung
70d71e7c59
Add documentation for mouse-cursor
2021-12-07 22:41:24 +01:00
Olivier Goffart
0e5295aa33
Some more improvments to the Flickable docs
...
Complete #716
2021-12-06 12:08:20 +01:00
Jared Moulton
63fd204dda
Update the Flickable and ScrollView docs...
...
...to include mention that the default is for the viewport dimensions to
be calculated automatically and add properties and and an example to the
Flickable docs
2021-12-06 11:59:09 +01:00