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