mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
parent
b27034efa5
commit
8372d3f6d8
27 changed files with 69 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue