|
HikoGUI
A low latency retained GUI
|
#include <hikogui/dispatch/progress.hpp>
Public Types | |
| using | callback_type = notifier<>::callback_type |
Public Member Functions | |
| constexpr | progress_sink () noexcept=default |
| Create a fresh progress. | |
| progress_token | get_token () const noexcept |
| Get a token to pass to a function. | |
| void | reset () |
| Reset progress. | |
| void | set_value (float value) |
| Set progress. | |
| constexpr float | value () const noexcept |
| Get the current progress. | |
| float | operator* () const noexcept |
| Get the current progress. | |
| template<typename Callback > | |
| notifier ::callback_type | subscribe (Callback &&callback, callback_flags flags=callback_flags::synchronous) |
| Subscribe a callback function to be called when progress is modified. | |
A sink to read the current progress of a function.
|
constexprdefaultnoexcept |
Create a fresh progress.
|
inlinenoexcept |
Get a token to pass to a function.
|
inlinenoexcept |
Get the current progress.
|
inline |
Reset progress.
|
inline |
Subscribe a callback function to be called when progress is modified.
Get the current progress.