X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvalue.h;h=c55f4c94f2bd1f70da09270348b6b04477a00f86;hb=d43ed398fd84b93b96eb91d91dafdf65c80537e6;hp=1ff51c5e25925250cd2969536884cee14bd9668d;hpb=1c1eea49df6278dc5e9215d39267f9ceb7d25f0e;p=synfig.git diff --git a/synfig-core/src/synfig/value.h b/synfig-core/src/synfig/value.h index 1ff51c5..c55f4c9 100644 --- a/synfig-core/src/synfig/value.h +++ b/synfig-core/src/synfig/value.h @@ -123,6 +123,8 @@ protected: etl::reference_counter ref_count; //! For Values with loop option like TYPE_LIST bool loop_; + //! For Values of Constant Value Nodes + bool static_; /* -- ** -- C O N S T R U C T O R S ----------------------------------- @@ -135,8 +137,8 @@ public: //! Template constructor for any type template - ValueBase(const T &x, bool loop_=false): - type(TYPE_NIL),data(0),ref_count(0),loop_(loop_) + ValueBase(const T &x, bool loop_=false, bool static_=false): + type(TYPE_NIL),data(0),ref_count(0),loop_(loop_), static_(static_) { set(x); } //! Copy constructor. The data is not copied, just the type. @@ -184,6 +186,12 @@ public: //! Sets the loop option. void set_loop(bool x) { loop_=x; } + //! Gets the static option. + bool get_static()const { return static_; } + + //! Sets the static option. + void set_static(bool x) { static_=x; } + //! True if the Value is not valid or is type LIST and is empty bool empty()const;