Rename call_* to invoke_* for callbacks

Fixes #187
This commit is contained in:
Simon Hausmann 2021-03-15 17:01:05 +01:00
parent b27034efa5
commit 8372d3f6d8
27 changed files with 69 additions and 68 deletions

View file

@ -111,7 +111,7 @@ For each top-level property
- A getter [`fn get_<property_name>(&self) -> <PropertyType>`](docs::generated_code::SampleComponent::get_counter)
For each top-level callback
- [`fn call_<callback_name>(&self)`](docs::generated_code::SampleComponent::call_hello): to emit the callback
- [`fn invoke_<callback_name>(&self)`](docs::generated_code::SampleComponent::invoke_hello): to invoke the callback
- [`fn on_<callback_name>(&self, callback: impl Fn(<CallbackArgs>) + 'static)`](docs::generated_code::SampleComponent::on_hello): to set the callback handler.
After instantiating the component you can call just [`fn run(&self)`] on it, in order to show it and spin the event loop to