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 Rectangle : public synfig::Layer_Composite, public synfig::Layer_NoDeform 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 expand; 00054 00055 bool invert; 00056 00057 public: 00058 00059 Rectangle(); 00060 00061 virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value); 00062 00063 virtual synfig::ValueBase get_param(const synfig::String & param)const; 00064 00065 virtual bool is_solid_color()const; 00066 00067 virtual synfig::Color get_color(synfig::Context context, const synfig::Point &pos)const; 00068 00069 virtual bool accelerated_render(synfig::Context context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, synfig::ProgressCallback *cb)const; 00070 00071 synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; 00072 00073 virtual synfig::Rect get_bounding_rect()const; 00074 virtual synfig::Rect get_full_bounding_rect(synfig::Context context)const; 00075 00076 virtual Vocab get_param_vocab()const; 00077 }; // END of class FilledRect 00078 00079 /* === E N D =============================================================== */ 00080 00081 #endif