synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
mod_example
filledrect.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
21
/* ========================================================================= */
22
23
/* === S T A R T =========================================================== */
24
25
#ifndef __SYNFIG_FILLEDRECT_H
26
#define __SYNFIG_FILLEDRECT_H
27
28
/* === H E A D E R S ======================================================= */
29
30
#include <
synfig/layers/layer_composite.h
>
31
#include <
synfig/color.h
>
32
#include <
synfig/vector.h
>
33
#include <
synfig/value.h
>
34
#include <list>
35
36
/* === M A C R O S ========================================================= */
37
38
/* === T Y P E D E F S ===================================================== */
39
40
/* === C L A S S E S & S T R U C T S ======================================= */
41
42
using namespace
synfig;
43
using namespace
std;
44
using namespace
etl;
45
46
class
FilledRect
:
public
Layer_Composite
,
public
Layer_NoDeform
47
{
48
SYNFIG_LAYER_MODULE_EXT
49
50
private
:
52
ValueBase
param_color;
54
ValueBase
param_point1;
56
ValueBase
param_point2;
58
ValueBase
param_feather_x;
60
ValueBase
param_feather_y;
62
ValueBase
param_bevel;
64
ValueBase
param_bevCircle;
65
66
bool
get_color(
const
Point
&pos,
Color
&out,
Real
&outamount)
const
;
67
68
public
:
69
70
FilledRect
();
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
Color
get_color(
Context
context,
const
Point
&pos)
const
;
77
78
virtual
bool
accelerated_render(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
79
virtual
bool
accelerated_cairorender(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
80
81
virtual
Vocab
get_param_vocab()
const
;
82
83
virtual
Layer::Handle
hit_check(
Context
context,
const
Point
&point)
const
;
84
};
// END of class FilledRect
85
86
/* === E N D =============================================================== */
87
88
#endif
Generated on Mon Nov 16 2015 15:33:40 for synfig-core by
1.8.1.2