00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_LAYER_BITMAP_H
00026 #define __SYNFIG_LAYER_BITMAP_H
00027
00028
00029
00030 #include "layer_composite.h"
00031 #include "surface.h"
00032
00033
00034
00035
00036
00037
00038
00039 namespace synfig {
00040
00044 class Layer_Bitmap : public Layer_Composite, public Layer_NoDeform
00045 {
00046 const Color& filter(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 mutable bool trimmed;
00055 mutable unsigned int width, height, top, left;
00056
00057 Real gamma_adjust;
00058
00059 Layer_Bitmap();
00060
00061 virtual bool set_param(const String & param, ValueBase value);
00062
00063 virtual ValueBase get_param(const String & param)const;
00064
00065 virtual Color get_color(Context context, const Point &pos)const;
00066
00067 virtual Vocab get_param_vocab()const;
00068
00069 virtual Rect get_bounding_rect()const;
00070
00071 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
00072
00073 virtual synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const;
00074 };
00075
00076 };
00077
00078
00079
00080 #endif