mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Testing C++ API: add a visitor over the ElementHandle
This commit is contained in:
parent
2d6a8b1545
commit
58826ddd94
6 changed files with 91 additions and 15 deletions
|
@ -689,11 +689,9 @@ public:
|
|||
///
|
||||
/// Note: Since the ComponentInstance holds the handler, the handler itself should not
|
||||
/// capture a strong reference to the instance.
|
||||
// clang-format off
|
||||
template<std::invocable<std::span<const Value>> F>
|
||||
requires(std::is_convertible_v<std::invoke_result_t<F, std::span<const Value>>, Value>)
|
||||
auto set_callback(std::string_view name, F callback) const -> bool
|
||||
// clang-format on
|
||||
{
|
||||
using namespace cbindgen_private;
|
||||
auto actual_cb =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue