X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fgradient.h;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fgradient.h;h=e3b26e8f5b491ee77c266c238e78b7b61d2baec7;hb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;hp=0aea3401859475983dc3868b56447a7a815262b4;hpb=cee5940bae97612105db8b7e1ffcf513f9d9150c;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/gradient.h b/synfig-core/trunk/src/synfig/gradient.h index 0aea340..e3b26e8 100644 --- a/synfig-core/trunk/src/synfig/gradient.h +++ b/synfig-core/trunk/src/synfig/gradient.h @@ -48,15 +48,15 @@ struct GradientCPoint : public UniqueID { Real pos; Color color; - + bool operator<(const GradientCPoint &rhs)const { return pos public: typedef GradientCPoint CPoint; private: - + public: Gradient() { } - + //! Two-Tone Color Gradient Convience Constructor Gradient(const Color &c1, const Color &c2); @@ -80,7 +80,7 @@ public: //! You should call this function after changing stuff. void sort(); - + Color operator()(const Real &x, float supersample=0)const; //! Returns the iterator of the CPoint closest to \a x @@ -91,11 +91,11 @@ public: //! Returns the iterator of the CPoint with UniqueID \a id iterator find(const UniqueID &id); - + //! Returns the const_iterator of the CPoint with UniqueID \a id const_iterator find(const UniqueID &id)const; }; // END of class Gradient - + }; // END of namespace synfig /* === E N D =============================================================== */