libgig
3.3.0.svn21
|
Used for indicating the progress of a certain task. More...
#include <gig.h>
Public Member Functions | |
progress_t () | |
Public Attributes | |
void(* | callback )(progress_t *) |
Callback function pointer which has to be assigned to a function for progress notification. More... | |
float | factor |
Reflects current progress as value between 0.0 and 1.0. More... | |
void * | custom |
This pointer can be used for arbitrary data. More... | |
float | __range_min |
Only for internal usage, do not modify! More... | |
float | __range_max |
Only for internal usage, do not modify! More... | |
Used for indicating the progress of a certain task.
The function pointer argument has to be supplied with a valid function of the given signature which will then be called on progress changes. An equivalent progress_t structure will be passed back as argument to the callback function on each progress change. The factor field of the supplied progress_t structure will then reflect the current progress as value between 0.0 and 1.0. You might want to use the custom field for data needed in your callback function.
gig::progress_t::progress_t | ( | ) |
Definition at line 59 of file gig.cpp.
References __range_max, __range_min, callback, COPY_ONE, custom, gig::dimension_keyboard, gig::dimension_layer, gig::dimension_random, gig::dimension_releasetrigger, gig::dimension_roundrobin, gig::dimension_roundrobinkeyboard, gig::dimension_samplechannel, gig::dimension_smartmidi, factor, GET_PARAMS, gig::Sample::Instances, gig::Sample::InternalDecompressionBuffer, SKIP_ONE, gig::dimension_def_t::split_type, gig::split_type_bit, gig::split_type_normal, and gig::dimension_def_t::zones.
float gig::progress_t::__range_max |
Only for internal usage, do not modify!
Definition at line 331 of file gig.h.
Referenced by gig::File::GetInstrument(), and progress_t().
float gig::progress_t::__range_min |
Only for internal usage, do not modify!
Definition at line 330 of file gig.h.
Referenced by gig::File::GetInstrument(), and progress_t().
void(* gig::progress_t::callback) (progress_t *) |
Callback function pointer which has to be assigned to a function for progress notification.
Definition at line 327 of file gig.h.
Referenced by gig::File::GetInstrument(), and progress_t().
void* gig::progress_t::custom |
This pointer can be used for arbitrary data.
Definition at line 329 of file gig.h.
Referenced by progress_t().
float gig::progress_t::factor |
Reflects current progress as value between 0.0 and 1.0.
Definition at line 328 of file gig.h.
Referenced by progress_t().