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