synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
lyr_std
stretch.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_LAYER_STRETCH_H
28
#define __SYNFIG_LAYER_STRETCH_H
29
30
/* === H E A D E R S ======================================================= */
31
32
#include <
synfig/layer.h
>
33
#include <
synfig/vector.h
>
34
35
/* === M A C R O S ========================================================= */
36
37
/* === T Y P E D E F S ===================================================== */
38
39
/* === C L A S S E S & S T R U C T S ======================================= */
40
41
class
Stretch_Trans;
42
namespace
synfig {
43
44
class
Layer_Stretch
:
public
Layer
45
{
46
SYNFIG_LAYER_MODULE_EXT
47
friend
class ::Stretch_Trans;
48
49
private
:
51
ValueBase
param_amount;
53
ValueBase
param_center;
54
55
public
:
56
57
Layer_Stretch
();
58
59
virtual
bool
set_param
(
const
String
& param,
const
synfig::ValueBase
&value);
60
61
virtual
ValueBase
get_param
(
const
String
& param)
const
;
62
63
virtual
Color
get_color
(
Context
context,
const
Point
&pos)
const
;
64
65
virtual
bool
accelerated_render
(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
66
virtual
bool
accelerated_cairorender
(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
67
synfig::Layer::Handle
hit_check
(
synfig::Context
context,
const
synfig::Point
&point)
const
;
68
69
virtual
Vocab
get_param_vocab
()
const
;
70
virtual
etl::handle<synfig::Transform>
get_transform
()
const
;
71
virtual
synfig::Rect
get_full_bounding_rect
(
Context
context)
const
;
72
};
// END of class Layer_Stretch
73
74
};
// END of namespace synfig
75
76
/* === E N D =============================================================== */
77
78
#endif
Generated on Mon Nov 16 2015 15:33:50 for synfig-core by
1.8.1.2