00001 /* === S Y N F I G ========================================================= */ 00026 /* === S T A R T =========================================================== */ 00027 00028 #ifndef __SYNFIG_XORPATTERN_H 00029 #define __SYNFIG_XORPATTERN_H 00030 00031 /* === H E A D E R S ======================================================= */ 00032 00033 #include <synfig/layer_composite.h> 00034 #include <synfig/color.h> 00035 #include <synfig/context.h> 00036 #include <synfig/vector.h> 00037 00038 /* === M A C R O S ========================================================= */ 00039 00040 /* === T Y P E D E F S ===================================================== */ 00041 00042 /* === C L A S S E S & S T R U C T S ======================================= */ 00043 00044 using namespace synfig; 00045 using namespace std; 00046 using namespace etl; 00047 00048 class XORPattern : public synfig::Layer_Composite, public synfig::Layer_NoDeform 00049 { 00050 SYNFIG_LAYER_MODULE_EXT 00051 00052 private: 00053 00054 Point origin; 00055 Point size; 00056 00057 public: 00058 XORPattern(); 00059 00060 virtual bool set_param(const String ¶m, const ValueBase &value); 00061 virtual ValueBase get_param(const String ¶m)const; 00062 virtual Color get_color(Context context, const Point &pos)const; 00063 virtual Vocab get_param_vocab()const; 00064 virtual synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; 00065 }; 00066 00067 /* === E N D =============================================================== */ 00068 00069 #endif