00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_LAYER_BITMAP_H 00026 #define __SYNFIG_LAYER_BITMAP_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include "layer_composite.h" 00031 #include "surface.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 00044 class Layer_Bitmap : public Layer_Composite, public Layer_NoDeform 00045 { 00046 const Color& filter(const Color& c)const; 00047 public: 00048 typedef etl::handle<Layer_Bitmap> Handle; 00049 00050 Point tl; 00051 Point br; 00052 int c; 00053 mutable Surface surface; 00054 00055 Real gamma_adjust; 00056 00057 Layer_Bitmap(); 00058 00059 virtual bool set_param(const String & param, ValueBase value); 00060 00061 virtual ValueBase get_param(const String & param)const; 00062 00063 virtual Color get_color(Context context, const Point &pos)const; 00064 00065 virtual Vocab get_param_vocab()const; 00066 00067 virtual Rect get_bounding_rect()const; 00068 00069 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &rend_desc, ProgressCallback *callback)const; 00070 00071 virtual synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; 00072 }; // END of class Layer_Bitmap 00073 00074 }; // END of namespace synfig 00075 00076 /* === E N D =============================================================== */ 00077 00078 #endif