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