Commit graph

368 commits

Author SHA1 Message Date
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
Jared Moulton
a3c0771a2a Update Flickable and ScrollView docs...
...to include information about having to manually set the
viewport-width and viewport-height when using a for loop to instantiate
elements.
2021-12-06 11:59:09 +01:00
Simon Hausmann
cba553b9f7 Small grammar fixes 2021-11-26 13:46:20 +01:00
Olivier Goffart
d1883b53f3
Update install_qt.md 2021-11-26 13:21:58 +01:00
Simon Hausmann
c1cb648972 Polish the Qt setup docs
Clarify the setup for macOS and Windows, and refer to `bin` in the generic section for qmake.
2021-11-26 13:09:12 +01:00
Simon Hausmann
55e4068707 Fix typo 2021-11-26 13:02:30 +01:00
ogoffart
3278b39549 Bump version number to 0.1.6 2021-11-24 14:19:09 +00:00
Olivier Goffart
a3df480650 Revert "Adjust the URL in the documentation to the released version"
This reverts commit 2904b7ad6d.

The release was done
2021-11-24 15:18:23 +01:00
Olivier Goffart
2904b7ad6d Adjust the URL in the documentation to the released version 2021-11-24 14:13:30 +01:00
Olivier Goffart
abed31454c Update version number in docs in preparation for the release 2021-11-24 14:10:16 +01:00
Simon Hausmann
42477db3e3 In the C++ prerequisites, link to the cmake website
It's easier that way :-)
2021-11-24 13:02:08 +01:00
Olivier Goffart
7a88902d4e Fix once more the description of @image-url in the tutorial
PR #669 changed the wording, but the tutorial uses the sixtyfps! macro
for which that wording was fine.
Instead, be more explicit about chere the file is looked up in both situation
2021-11-23 11:18:02 +01:00
Jared Moulton
799dbff366 Fix the description of where @image-url looks for files 2021-11-23 08:34:32 +01:00
Olivier Goffart
9401bfbec7 Rust test driver: Add a feature to generate the rust code in build.rs
instead of in the sixtyfps! macro, so se actually see where the error is in
the generated code.

This also expose a bunch of warning that were not being taken care on.
2021-11-05 11:35:56 +01:00
Simon Hausmann
4800217f2f Document the minimum supported Rust version
cc #622
2021-11-03 16:39:41 +01:00
Olivier Goffart
72f022b3ed Document the test harness 2021-10-26 14:51:23 +02:00
ogoffart
b25ae6fbcd Bump version number to 0.1.5 2021-10-26 07:36:54 +00:00
Olivier Goffart
ce65e7871c Update the GIT_TAG in the readme 2021-10-22 16:51:25 +02:00