synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
lyr_std
shade.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
23
/* ========================================================================= */
24
25
/* === H E A D E R S ======================================================= */
26
27
#ifndef __SYNFIG_LAYER_SHADE_H__
28
#define __SYNFIG_LAYER_SHADE_H__
29
30
/* -- H E A D E R S --------------------------------------------------------- */
31
32
#include <
synfig/layers/layer_composite.h
>
33
#include <
synfig/color.h
>
34
#include <
synfig/vector.h
>
35
#include <
synfig/blur.h
>
36
37
using namespace
synfig;
38
using namespace
std;
39
using namespace
etl;
40
41
class
Layer_Shade
:
public
synfig::Layer_Composite
42
{
43
SYNFIG_LAYER_MODULE_EXT
44
private
:
46
ValueBase
param_size;
48
ValueBase
param_type;
50
ValueBase
param_color;
52
ValueBase
param_origin;
54
ValueBase
param_invert;
55
56
public
:
57
Layer_Shade
();
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
virtual
Rect
get_full_bounding_rect(
Context
context)
const
;
68
virtual
Vocab
get_param_vocab()
const
;
69
virtual
bool
reads_context
()
const
{
return
true
; }
70
};
// END of class Layer_Shade
71
72
/* -- E X T E R N S --------------------------------------------------------- */
73
74
/* -- E N D ----------------------------------------------------------------- */
75
76
#endif
Generated on Mon Nov 16 2015 15:33:50 for synfig-core by
1.8.1.2