]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Path.pm
This is 0.03
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Path.pm
index f7a5fb21b684deb1afca328d216f41597d42db27..9dbc902eaa70e0d3a035412660180a3c753216da 100644 (file)
@@ -9,11 +9,11 @@ LaTeX::TikZ::Set::Path - A role for set objects that can be part of a path.
 
 =head1 VERSION
 
-Version 0.02
+Version 0.03
 
 =cut
 
-our $VERSION = '0.02';
+our $VERSION = '0.03';
 
 =head1 DESCRIPTION
 
@@ -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>
@@ -84,7 +99,7 @@ You can find documentation for this module with the perldoc command.
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2010 Vincent Pit, all rights reserved.
+Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
 
 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.