synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
lyr_std
timeloop.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
23
/* ========================================================================= */
24
25
/* === S T A R T =========================================================== */
26
27
#ifndef __SYNFIG_TIMELOOP_H
28
#define __SYNFIG_TIMELOOP_H
29
30
/* === H E A D E R S ======================================================= */
31
32
#include <
synfig/layer.h
>
33
#include <
synfig/color.h
>
34
#include <
synfig/time.h
>
35
#include <
synfig/context.h
>
36
37
/* === M A C R O S ========================================================= */
38
39
/* === T Y P E D E F S ===================================================== */
40
41
/* === C L A S S E S & S T R U C T S ======================================= */
42
using namespace
synfig;
43
using namespace
std;
44
using namespace
etl;
45
46
class
Layer_TimeLoop
:
public
Layer
47
{
48
SYNFIG_LAYER_MODULE_EXT
49
50
private
:
52
ValueBase
param_link_time;
54
ValueBase
param_local_time;
56
ValueBase
param_duration;
58
ValueBase
param_only_for_positive_duration;
60
ValueBase
param_symmetrical;
// the 0.1 version of this layer behaved differently before 'start_time' was reached
61
62
Time
start_time;
63
Time
end_time;
64
bool
old_version;
65
66
protected
:
67
Layer_TimeLoop
();
68
69
public
:
70
~
Layer_TimeLoop
();
71
72
virtual
bool
set_param(
const
String
& param,
const
ValueBase
&value);
73
74
virtual
ValueBase
get_param(
const
String
& param)
const
;
75
76
virtual
Vocab
get_param_vocab()
const
;
77
virtual
bool
set_version(
const
String
&ver);
78
virtual
void
reset_version();
79
virtual
Color
get_color(
Context
context,
const
Point
&pos)
const
;
80
81
virtual
void
set_time(
IndependentContext
context,
Time
time)
const
;
82
virtual
bool
accelerated_render(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
83
virtual
bool
accelerated_cairorender(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
84
};
85
86
/* === E N D =============================================================== */
87
88
#endif
Generated on Mon Nov 16 2015 15:33:52 for synfig-core by
1.8.1.2