mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Add API to the Rust and C++ interpreter library to return the names of all publicly declared callbacks
This commit is contained in:
parent
fb19588c8c
commit
855808f9b5
4 changed files with 43 additions and 1 deletions
|
@ -710,6 +710,16 @@ public:
|
|||
return props;
|
||||
}
|
||||
|
||||
/// Returns a vector of strings that describe the list of public callbacks that can be invoked
|
||||
/// using ComponentInstance::invoke_callback and set using ComponentInstance::set_callback.
|
||||
sixtyfps::SharedVector<sixtyfps::SharedString> callback_names() const
|
||||
{
|
||||
sixtyfps::SharedVector<sixtyfps::SharedString> callback_names;
|
||||
cbindgen_private::sixtyfps_interpreter_component_definition_callback_names(&inner,
|
||||
&callback_names);
|
||||
return callback_names;
|
||||
}
|
||||
|
||||
/// Returns the name of this Component as written in the .60 file
|
||||
sixtyfps::SharedString name() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue