mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
parent
b27034efa5
commit
8372d3f6d8
27 changed files with 69 additions and 68 deletions
|
@ -96,7 +96,7 @@ pub mod generated_code {
|
|||
/// For each callback declared at the root of the component, a function to call that
|
||||
/// callback is generated. This is the function that calls the `hello` callback declared
|
||||
/// in the `.60` design markup.
|
||||
pub fn call_hello(&self) {}
|
||||
pub fn invoke_hello(&self) {}
|
||||
/// For each callback declared at the root of the component, a function connect to that callback
|
||||
/// is generated. This is the function that registers the function f as callback when the
|
||||
/// callback `hello` is emitted. In order to access
|
||||
|
|
|
@ -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