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
|
@ -18,7 +18,7 @@ This class will have the following public member functions:
|
|||
* A getter `get_<property_name>` returning the property type.
|
||||
* A setter `set_<property_name>` taking the new value of the property by const reference
|
||||
- for each callbacks:
|
||||
* `call_<callback_name>` function which takes the callback argument as parameter and call the callback.
|
||||
* `invoke_<callback_name>` function which takes the callback argument as parameter and call the callback.
|
||||
* `on_<callback_name>` functin wich takes a functor as an argument and sets the callback handler
|
||||
for this callback. the functor must accept the type parameter of the callback
|
||||
|
||||
|
@ -64,7 +64,7 @@ public:
|
|||
inline void set_user_name (const sixtyfps::SharedString &value) const;
|
||||
|
||||
/// Call this function to call the `hello` callback
|
||||
inline void call_hello () const;
|
||||
inline void invoke_hello () const;
|
||||
/// Sets the callback handler for the `hello` callback.
|
||||
template<typename Functor> inline void on_hello (Functor && callback_handler) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue