diff --git a/api/sixtyfps-cpp/docs/generated_code.md b/api/sixtyfps-cpp/docs/generated_code.md index 0e3e2fe22..0a1baf725 100644 --- a/api/sixtyfps-cpp/docs/generated_code.md +++ b/api/sixtyfps-cpp/docs/generated_code.md @@ -23,6 +23,7 @@ This class will have the following public member functions: * `invoke_` function which takes the callback argument as parameter and call the callback. * `on_` function which takes a functor as an argument and sets the callback handler for this callback. the functor must accept the type parameter of the callback +* A `global` function, to provide access to any exported global singletons. ## Example @@ -77,6 +78,10 @@ public: /// Sets the callback handler for the `hello` callback. template inline void on_hello (Functor && callback_handler) const; + // Returns a reference to a global singleton that's exported. + inline template + const T &global() const; + private: /// private fields omitted };