X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer_solidcolor.h;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer_solidcolor.h;h=07f8106d019b30306d2df51cc55cbc0a312ddc1c;hb=e3acc0b267b14fda5db3c7bbb2f218b993ef84b3;hp=0000000000000000000000000000000000000000;hpb=ced68168d8518aac837f20e73bcd1e84a6bd6178;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/layer_solidcolor.h b/synfig-core/trunk/src/synfig/layer_solidcolor.h new file mode 100644 index 0000000..07f8106 --- /dev/null +++ b/synfig-core/trunk/src/synfig/layer_solidcolor.h @@ -0,0 +1,70 @@ +/* === S I N F G =========================================================== */ +/*! \file layer_solidcolor.h +** \brief Template Header +** +** $Id: layer_solidcolor.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ +** +** \legal +** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** +** This software and associated documentation +** are CONFIDENTIAL and PROPRIETARY property of +** the above-mentioned copyright holder. +** +** You may not copy, print, publish, or in any +** other way distribute this software without +** a prior written agreement with +** the copyright holder. +** \endlegal +*/ +/* ========================================================================= */ + +/* === S T A R T =========================================================== */ + +#ifndef __SINFG_LAYER_SOLIDCOLOR_H +#define __SINFG_LAYER_SOLIDCOLOR_H + +/* === H E A D E R S ======================================================= */ + +#include "layer_composite.h" +#include "color.h" + +/* === M A C R O S ========================================================= */ + +/* === T Y P E D E F S ===================================================== */ + +/* === C L A S S E S & S T R U C T S ======================================= */ + +namespace sinfg { + +class Layer_SolidColor : public Layer_Composite, public Layer_NoDeform +{ + SINFG_LAYER_MODULE_EXT + +private: + + Color color; + +public: + + Layer_SolidColor(); + + virtual bool set_param(const String & param, const sinfg::ValueBase &value); + + virtual ValueBase get_param(const String & param)const; + + virtual Color get_color(Context context, const Point &pos)const; + + virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; + + virtual Vocab get_param_vocab()const; + + virtual sinfg::Layer::Handle hit_check(sinfg::Context context, const sinfg::Point &point)const; + +}; // END of class Layer_SolidColor + +}; // END of namespace sinfg + +/* === E N D =============================================================== */ + +#endif