1 package LaTeX::TikZ::Mod;
8 LaTeX::TikZ::Mod - Base role for LaTeX::TikZ modifiers.
16 our $VERSION = '0.02';
20 This role should be consumed by all the modifier classes.
25 use Mouse::Util::TypeConstraints;
29 These methods are required by the interface :
37 Returns an identifier for the mod object.
38 It is used to gather mods together when calling C<covers> on them.
44 Returns true if and only if the effects of the mod C<$mod> are already ensured by the current mod object, in which case no actual TikZ code will be emitted for C<$mod>.
45 Both mod objects are guaranteed to have the same C<tag>.
51 Returns an array reference of TikZ code lines required to declare this mod before using it, formatted by the L<LaTeX::TikZ::Formatter> object C<$formatter> ; or C<undef> if no declarations are needed for this mod.
57 Returns the TikZ code that activates the current mod as a string formatted by the L<LaTeX::TikZ::Formatter> object C<$formatter>.
70 coerce 'LaTeX::TikZ::Mod'
72 => via { LaTeX::TikZ::Mod::Raw->new(content => $_) };
80 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
82 You can contact me by mail or on C<irc.perl.org> (vincent).
86 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
87 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
91 You can find documentation for this module with the perldoc command.
95 =head1 COPYRIGHT & LICENSE
97 Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
99 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
103 1; # End of LaTeX::TikZ::Mod