#include <hikogui/dispatch/progress.hpp>
|
|
using | callback_type = notifier<>::callback_type |
| |
|
| 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.
◆ progress_sink()
| constexpr hi::v1::progress_sink::progress_sink |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ get_token()
Get a token to pass to a function.
◆ operator*()
| float hi::v1::progress_sink::operator* |
( |
| ) |
const |
|
inlinenoexcept |
Get the current progress.
◆ reset()
| void hi::v1::progress_sink::reset |
( |
| ) |
|
|
inline |
◆ set_value()
| void hi::v1::progress_sink::set_value |
( |
float | value | ) |
|
|
inline |
◆ subscribe()
template<typename Callback >
| notifier ::callback_type hi::v1::progress_sink::subscribe |
( |
Callback && | callback, |
|
|
callback_flags | flags = callback_flags::synchronous ) |
|
inline |
Subscribe a callback function to be called when progress is modified.
◆ value()
| constexpr float hi::v1::progress_sink::value |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Get the current progress.
The documentation for this class was generated from the following file: