1 /*! ========================================================================
4 ** $Id: checkerboard.h,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
8 ** This software and associated documentation
9 ** are CONFIDENTIAL and PROPRIETARY property of
10 ** the above-mentioned copyright holder.
12 ** You may not copy, print, publish, or in any
13 ** other way distribute this software without
14 ** a prior written agreement with
15 ** the copyright holder.
17 ** === N O T E S ===========================================================
19 ** ========================================================================= */
21 /* === S T A R T =========================================================== */
23 #ifndef __SYNFIG_CHECKERBOARD_H
24 #define __SYNFIG_CHECKERBOARD_H
26 /* === H E A D E R S ======================================================= */
28 #include <synfig/layer_composite.h>
29 #include <synfig/color.h>
30 #include <synfig/vector.h>
32 /* === M A C R O S ========================================================= */
34 /* === T Y P E D E F S ===================================================== */
36 /* === C L A S S E S & S T R U C T S ======================================= */
38 class CheckerBoard : public synfig::Layer_Composite, public synfig::Layer_NoDeform
40 SYNFIG_LAYER_MODULE_EXT
46 bool point_test(const synfig::Point& x)const;
51 virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value);
53 virtual synfig::ValueBase get_param(const synfig::String & param)const;
55 virtual synfig::Color get_color(synfig::Context context, const synfig::Point &pos)const;
57 virtual Vocab get_param_vocab()const;
59 synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const;
61 virtual bool accelerated_render(synfig::Context context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, synfig::ProgressCallback *cb)const;
64 /* === E N D =============================================================== */