Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::Async::BackgroundTask< R, T >::params Struct Reference

Public Attributes

std::function< R(Progress< T... > &)> work
 
std::function< void()> on_started = {}
 
std::function< void(T...)> on_progress = {}
 
duration throttle_time = duration::zero()
 
std::function< void(R)> on_complete = {}
 
std::function< void()> on_cancelled = {}
 
std::function< void(std::exception_ptr)> on_exception = {}
 
std::function< void()> on_finished = {}
 

Detailed Description

template<typename R, typename... T>
struct Inkscape::Async::BackgroundTask< R, T >::params

Definition at line 51 of file background-task.h.

Member Data Documentation

◆ on_cancelled

template<typename R , typename... T>
std::function<void ()> Inkscape::Async::BackgroundTask< R, T >::params::on_cancelled = {}

Definition at line 63 of file background-task.h.

◆ on_complete

template<typename R , typename... T>
std::function<void (R)> Inkscape::Async::BackgroundTask< R, T >::params::on_complete = {}

Definition at line 61 of file background-task.h.

◆ on_exception

template<typename R , typename... T>
std::function<void (std::exception_ptr)> Inkscape::Async::BackgroundTask< R, T >::params::on_exception = {}

Definition at line 65 of file background-task.h.

◆ on_finished

template<typename R , typename... T>
std::function<void ()> Inkscape::Async::BackgroundTask< R, T >::params::on_finished = {}

Definition at line 68 of file background-task.h.

◆ on_progress

template<typename R , typename... T>
std::function<void (T...)> Inkscape::Async::BackgroundTask< R, T >::params::on_progress = {}

◆ on_started

template<typename R , typename... T>
std::function<void ()> Inkscape::Async::BackgroundTask< R, T >::params::on_started = {}

Definition at line 55 of file background-task.h.

◆ throttle_time

template<typename R , typename... T>
duration Inkscape::Async::BackgroundTask< R, T >::params::throttle_time = duration::zero()

◆ work

template<typename R , typename... T>
std::function<R (Progress<T...>&)> Inkscape::Async::BackgroundTask< R, T >::params::work

The documentation for this struct was generated from the following file: