Tobias Hunger
bfca0e3573
Mass update copyright messages to be more REUSE compliant
2021-12-22 10:06:12 +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
Olivier Goffart
e22e870ce6
Adjustment to the rust documentation with regards to global singetons
2021-08-27 18:00:44 +02:00
Simon Hausmann
4b8259017b
Doc fixes
...
Try to use the term "global singleton" consistently. That's also the
term we use in the language reference.
2021-08-27 13:46:44 +02:00
Simon Hausmann
7a8c798d70
Fix rust doc build
2021-08-27 13:36:48 +02:00
Olivier Goffart
603c5df47a
Building the doc no longer need nightly rust
...
Rust 1.54 has the feature that allow us to include markdown files
in the docs
2021-08-03 16:27:31 +02:00
Simon Hausmann
29f5853332
Provide sixtyfps::Window
by reference in the Rust API
...
This also removes Clone from the Window again, to avoid having to face
the question: Does cloning a window duplicate it on the screen?
2021-08-03 10:32:04 +02:00
Simon Hausmann
66891a299c
Start a new sixtyfps::Window API for Rust, C++, the interpreters and JS
...
The generated component now provides access to a Window type
via the window() accessor function.
This is part of #333
2021-08-03 10:32:04 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Olivier Goffart
dcbbd0cd7d
Update dependencies
2021-06-22 11:15:20 +02:00
Simon Hausmann
7ebbf20467
Fix doc build with nightly in CI
...
The #[doc = include_str!("...")] syntax is now the new external file
syntax in rust nightly - the old syntax was removed.
2021-06-06 20:52:10 +02:00
Simon Hausmann
8372d3f6d8
Rename call_*
to invoke_*
for callbacks
...
Fixes #187
2021-03-15 17:01:05 +01:00
Simon Hausmann
b27034efa5
Rename sixtyfps::IntoWeak
into sixtyfps::ComponentHandle
and remove Clone
from generated components
...
`ComponentHandle` offers a richer API of common functions, such as
`show()`/`hide()` as well as the new `clone_strong()` - that should help
to prevent mistakely created strong reference that may cause leaks.
Fixes #188
2021-03-15 16:01:13 +01:00
Olivier Goffart
5a21f1bd81
Rename emit_ to call_ for callback
...
Signal was renamed to Callback, but one does not emit a callback, one calls it
2021-01-25 15:59:10 +01:00
Olivier Goffart
962a31d8f5
Layouting documentation
2021-01-23 10:25:43 +01:00
Simon Hausmann
5f265ffc09
Split up ComponentWindow::run() into show(), hide() and sixtyfps::run_event_loop()
...
This allows creating multiple windows for example, and it will allow for
showing windows in those tests that require a mapped window.
As a bonus, the run() function on generated components is not consuming
anymore.
2021-01-19 09:50:22 +01:00
Olivier Goffart
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +01:00
Simon Hausmann
4f412dcde4
Fix up the docs of the sample component for the new wrapping API
2020-12-03 08:13:40 +01:00
Olivier Goffart
20b4d8826b
Make the extra documentation page a bit more visible
2020-11-23 10:55:05 +01:00
Olivier Goffart
503567d84c
Update the documentation after the changes to ComponentHandle
2020-11-09 15:08:08 +01:00
Olivier Goffart
45e8c94535
Some more documentation for the rust backend
2020-10-21 10:35:42 +02:00
Simon Hausmann
4f4d2b10e9
Add missing license tag
2020-10-20 18:18:24 +02:00
Olivier Goffart
0c253efb0d
Some changes in the rust documentation and its README
2020-10-20 18:02:28 +02:00