Add support for select-all(), cut(), copy() and paste() functions on text input elements (#2804)

In the compiler this is still very primitive, but an attempt to start a
generic interface. The basic assumption is that all item functions will
eventually need access to the window adapter and itemrc. Support for
additional arguments is still missing.

Also missing is support for the function access via rtti in the
interpreter, hence the hardcoding at the moment.
This commit is contained in:
Simon Hausmann 2023-06-01 16:04:53 +02:00 committed by GitHub
parent d52f40979c
commit c428601370
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 383 additions and 40 deletions

View file

@ -265,6 +265,9 @@ public:
}
}
/// \private
const cbindgen_private::WindowAdapterRcOpaque &handle() { return inner; }
private:
friend class slint::experimental::platform::SkiaRenderer;
friend class slint::experimental::platform::SoftwareRenderer;