00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_FILLEDRECT_H 00026 #define __SYNFIG_FILLEDRECT_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/layer_composite.h> 00031 #include <synfig/color.h> 00032 #include <synfig/vector.h> 00033 #include <synfig/value.h> 00034 #include <list> 00035 00036 /* === M A C R O S ========================================================= */ 00037 00038 /* === T Y P E D E F S ===================================================== */ 00039 00040 /* === C L A S S E S & S T R U C T S ======================================= */ 00041 00042 class FilledRect : public synfig::Layer_Composite 00043 { 00044 SYNFIG_LAYER_MODULE_EXT 00045 00046 private: 00047 00048 synfig::Color color; 00049 00050 synfig::Point point1; 00051 synfig::Point point2; 00052 00053 synfig::Real feather_x; 00054 synfig::Real feather_y; 00055 00056 synfig::Real bevel; 00057 00058 bool bevCircle; 00059 00060 bool get_color(const synfig::Point &pos, synfig::Color &out, synfig::Real &outamount)const; 00061 00062 public: 00063 00064 FilledRect(); 00065 00066 virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value); 00067 00068 virtual synfig::ValueBase get_param(const synfig::String & param)const; 00069 00070 virtual synfig::Color get_color(synfig::Context context, const synfig::Point &pos)const; 00071 00072 virtual bool accelerated_render(synfig::Context context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, synfig::ProgressCallback *cb)const; 00073 00074 virtual Vocab get_param_vocab()const; 00075 00076 virtual synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; 00077 }; // END of class FilledRect 00078 00079 /* === E N D =============================================================== */ 00080 00081 #endif