C++ docs: mention show/hide in the generated code

This commit is contained in:
Simon Hausmann 2021-07-01 13:02:40 +02:00
parent 2440d92c6e
commit 9fc81da862

View file

@ -53,6 +53,13 @@ public:
/// Show this component, and runs the event loop /// Show this component, and runs the event loop
inline void run () const; inline void run () const;
/// Show the window that renders this component. Call `sixtyfps::run_event_loop()`
/// to continuously render the contents and react to user input.
inline void show () const;
/// Hide the window that renders this component.
inline void hide () const;
/// Getter for the `counter` property /// Getter for the `counter` property
inline int get_counter () const -> int; inline int get_counter () const -> int;
/// Setter for the `counter` property /// Setter for the `counter` property