synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
mod_filter
lumakey.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
27
/* === S T A R T =========================================================== */
28
29
#ifndef __SYNFIG_LUMAKEY_H
30
#define __SYNFIG_LUMAKEY_H
31
32
/* === H E A D E R S ======================================================= */
33
34
#include <
synfig/layers/layer_composite.h
>
35
#include <
synfig/color.h
>
36
#include <
synfig/vector.h
>
37
38
/* === M A C R O S ========================================================= */
39
40
/* === T Y P E D E F S ===================================================== */
41
42
/* === C L A S S E S & S T R U C T S ======================================= */
43
44
using namespace
synfig;
45
using namespace
std;
46
using namespace
etl;
47
48
class
LumaKey
:
public
Layer_Composite
,
public
Layer_NoDeform
49
{
50
SYNFIG_LAYER_MODULE_EXT
51
private
:
52
53
public
:
54
LumaKey
();
55
56
virtual
bool
set_param(
const
String
& param,
const
ValueBase
&value);
57
58
virtual
ValueBase
get_param(
const
String
& param)
const
;
59
60
virtual
Color
get_color(
Context
context,
const
Point
&pos)
const
;
61
62
virtual
Vocab
get_param_vocab()
const
;
63
64
Layer::Handle
hit_check(
Context
context,
const
Point
&point)
const
;
65
using
Layer::get_bounding_rect
;
66
virtual
Rect
get_bounding_rect(
Context
context)
const
;
67
68
virtual
bool
accelerated_render(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
69
virtual
bool
accelerated_cairorender(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
70
virtual
bool
reads_context
()
const
{
return
true
; }
71
};
// END of class LumaKey
72
73
/* === E N D =============================================================== */
74
75
#endif
Generated on Mon Nov 16 2015 15:33:45 for synfig-core by
1.8.1.2