mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Docs: add a note that only exported global from the main file are exposed
This commit is contained in:
parent
d6e835d4ff
commit
3d209287c2
4 changed files with 18 additions and 3 deletions
|
@ -84,7 +84,10 @@ public:
|
|||
/// Sets the callback handler for the `hello` callback.
|
||||
template<typename Functor> inline void on_hello (Functor && callback_handler) const;
|
||||
|
||||
// Returns a reference to a global singleton that's exported.
|
||||
/// Returns a reference to a global singleton that's exported.
|
||||
///
|
||||
/// **Note:** Only globals that are exported or re-exported from the main .slint file will
|
||||
/// be exposed in the API
|
||||
inline template<typename T>
|
||||
const T &global() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue