]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Path.pm
Just use Mouse instead of Any::Moose
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Path.pm
index f7a5fb21b684deb1afca328d216f41597d42db27..259e1ce24c0dce96eb6b00a50e4a32614e350493 100644 (file)
@@ -21,7 +21,7 @@ Paths are all the elements against which we can call the C<path> method.
 
 =cut
 
-use Any::Moose 'Role';
+use Mouse::Role;
 
 =head1 RELATIONSHIPS
 
@@ -33,15 +33,28 @@ with 'LaTeX::TikZ::Set';
 
 =head1 METHODS
 
-This method is required by the interface :
+These methods are required by the interface :
 
 =over 4
 
 =item *
 
-C<path $formatter>
+C<path $formatter, $context>
 
 Returns the TikZ code that builds a path out of the current set object as a string formatted by the L<LaTeX::TikZ::Formatter> object C<$formatter>.
+The current evaluation context is passed as the L<LaTeX::TikZ::Context> object C<$context>.
+
+=item *
+
+C<begin>
+
+Returns a L<LaTeX::TikZ::Point> object pointing to the beginning of the path, or C<undef> if this path has no beginning.
+
+=item *
+
+C<end>
+
+A L<LaTeX::TikZ::Point> object pointing to the end of the path, or C<undef> if this path has no end.
 
 =back
 
@@ -49,6 +62,8 @@ Returns the TikZ code that builds a path out of the current set object as a stri
 
 requires qw<
  path
+ begin
+ end
 >;
 
 =head2 C<draw>