X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_repeat_gradient.h;h=6da2c267ddac39067823ac6f366c1d5dcd547e54;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;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..6da2c26 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 $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007, 2008 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,29 +43,22 @@ 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); - - virtual bool set_link_vfunc(int i,ValueNode::Handle x); virtual ValueNode::LooseHandle get_link_vfunc(int i)const;