X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgui%2Fduck.h;h=fb96c458d534878818a8c9dcc30c72d1fb9f663a;hb=8463caf8ebf84825997a120eb137cf1b910c9ac9;hp=9a054f38fe1488ba766c1a65dfc08a0e35d76e02;hpb=077db16bb2200d3f6e936c9da3d8fe2950317eae;p=synfig.git diff --git a/synfig-studio/src/gui/duck.h b/synfig-studio/src/gui/duck.h index 9a054f3..fb96c45 100644 --- a/synfig-studio/src/gui/duck.h +++ b/synfig-studio/src/gui/duck.h @@ -197,10 +197,10 @@ public: const synfig::TransformStack& get_transform_stack()const { return transform_stack_; } - //! \writeme + //! Sets the type of duck void set_type(Type x) { type_=x; } - //! \writeme + //! Gets the type of duck Type get_type()const { return type_; } //! Sets the scalar multiplier for the duck with respect to the origin @@ -217,7 +217,13 @@ public: //! Returns the location of the duck synfig::Point get_point()const { return shared_point?*shared_point:point; } + //! Returns the rotations of the duck + /*! For angle and tangent ducks, rotations are used instead of the location + * so that the duck can me rotated more than 180 degrees + */ synfig::Angle get_rotations()const { return rotations; }; + + //! Sets the rotations of the duck void set_rotations(const synfig::Angle &x) { rotations=x; }; synfig::Point get_trans_point()const;