X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_repeat_gradient.h;h=972cd26540364e2c28dc43b5a036528c8659d733;hb=7a81d44e03d048339b9cbb3f7d8134497fcf3363;hp=83658df882c0acaa71a87792c50ec99bff4dac99;hpb=83fc7407cf368b3f537dee4509b404f73b766dfe;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.h b/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.h index 83658df..972cd26 100644 --- a/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.h +++ b/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.h @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_repeat_gradient.h -** \brief Template Header +** \brief Header file for implementation of the "Repeat Gradient" valuenode conversion. ** ** $Id: valuenode_repeat_gradient.h 335 2007-03-16 00:39:09Z dooglus $ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -42,28 +43,29 @@ struct ValueNode_Repeat_Gradient : public LinkableValueNode protected: - ValueNode_Repeat_Gradient(); + ValueNode_Repeat_Gradient(const Gradient& x); private: ValueNode::RHandle gradient_; ValueNode::RHandle count_; ValueNode::RHandle width_; + ValueNode::RHandle specify_start_; + ValueNode::RHandle specify_end_; + ValueNode::RHandle start_color_; + ValueNode::RHandle end_color_; public: virtual ~ValueNode_Repeat_Gradient(); -// static Handle create(ValueBase::Type id=ValueBase::TYPE_GRADIENT); - bool set_gradient(ValueNode::Handle a); - ValueNode::Handle get_gradient()const { return gradient_; } - bool set_count(ValueNode::Handle b); - ValueNode::Handle get_count()const { return count_; } - bool set_width(ValueNode::Handle x); - + bool set_specify_start(ValueNode::Handle a); + bool set_specify_end(ValueNode::Handle a); + bool set_start_color(ValueNode::Handle a); + bool set_end_color(ValueNode::Handle a); virtual bool set_link_vfunc(int i,ValueNode::Handle x);