X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FInterface.pm;h=8145c096af731dc203206f37924730b73c252fa0;hb=4f696c03a66ef6b52ee7b9b3c74a71d5abc64f7e;hp=b9371f6d91e9aa9414f6dd3aba9ddc10a6210f62;hpb=d934d1a7f7268b248687f14e0ede2723010bf243;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Interface.pm b/lib/LaTeX/TikZ/Interface.pm index b9371f6..8145c09 100644 --- a/lib/LaTeX/TikZ/Interface.pm +++ b/lib/LaTeX/TikZ/Interface.pm @@ -9,21 +9,27 @@ LaTeX::TikZ::Interface - LaTeX::TikZ public interface register and loader. =head1 VERSION -Version 0.01 +Version 0.03 =cut -our $VERSION = '0.01'; +our $VERSION = '0.03'; use Sub::Name (); -sub import { - shift; +=head1 METHODS - register(@_); -} +=head2 C + + LaTeX::Tikz::Interface->register($keyword => $code) + +Registers C<$code> to be available with C<< Tikz->$keyword >>. + +=cut sub register { + shift; + while (@_ >= 2) { my ($name, $code) = splice @_, 0, 2; @@ -53,13 +59,21 @@ sub register { return; } +=head2 C + +Load all the modules of the L official suite that register a keyword in the interface. + +=cut + sub load { require LaTeX::TikZ::Formatter; # formatter + require LaTeX::TikZ::Functor; # functor require LaTeX::TikZ::Set::Raw; # raw - require LaTeX::TikZ::Set::Path; # path + require LaTeX::TikZ::Set::Union; # union, path require LaTeX::TikZ::Set::Sequence; # seq + require LaTeX::TikZ::Set::Chain; # chain, join require LaTeX::TikZ::Set::Point; # point require LaTeX::TikZ::Set::Line; # line @@ -74,12 +88,17 @@ sub load { require LaTeX::TikZ::Mod::Clip; # clip require LaTeX::TikZ::Mod::Layer; # layer + require LaTeX::TikZ::Mod::Scale; # scale require LaTeX::TikZ::Mod::Width; # width require LaTeX::TikZ::Mod::Color; # color require LaTeX::TikZ::Mod::Fill; # fill require LaTeX::TikZ::Mod::Pattern; # pattern } +=head1 SEE ALSO + +L. + =head1 AUTHOR Vincent Pit, C<< >>, L. @@ -99,7 +118,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.