mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
C++ docs: Elaborate a little on the argument to Window::set_rendering_notifier
This commit is contained in:
parent
b888870705
commit
aba5797eaa
1 changed files with 4 additions and 0 deletions
|
@ -414,6 +414,10 @@ public:
|
|||
|
||||
/// This function allows registering a callback that's invoked during the different phases of
|
||||
/// rendering. This allows custom rendering on top or below of the scene.
|
||||
///
|
||||
/// The provided callback must be callable with a slint::RenderingState and the
|
||||
/// slint::GraphicsAPI argument.
|
||||
///
|
||||
/// On success, the function returns a std::optional without value. On error, the function
|
||||
/// returns the error code as value in the std::optional.
|
||||
template<std::invocable<RenderingState, GraphicsAPI> F>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue