]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Mod/Pattern.pm
This is 0.02
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Mod / Pattern.pm
index ddae7e2b00f8b0b0ecc2f72526be2985927d7655..d9dbb17bfc7a17894f67d77c3c3d984572af7a8a 100644 (file)
@@ -9,18 +9,30 @@ LaTeX::TikZ::Mod::Pattern - A modifier that fills a closed path with a pattern.
 
 =head1 VERSION
 
-Version 0.01
+Version 0.02
 
 =cut
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 use LaTeX::TikZ::Interface;
 
 use Any::Moose;
 
+=head1 RELATIONSHIPS
+
+This class consumes the L<LaTeX::TikZ::Mod> role, and as such implements the L</tag>, L</covers>, L</declare> and L</apply> methods.
+
+=cut
+
 with 'LaTeX::TikZ::Mod';
 
+=head1 ATTRIBUTES
+
+=head2 C<template>
+
+=cut
+
 has 'template' => (
  is       => 'ro',
  isa      => 'ArrayRef[Str]',
@@ -34,6 +46,12 @@ has '_cache' => (
  default  => sub { +{ } },
 );
 
+=head1 METHODS
+
+=head2 C<name>
+
+=cut
+
 sub name {
  my ($pat, $tikz) = @_;
 
@@ -50,9 +68,21 @@ my %handlers = (
  width => sub { sprintf '%0.1fpt', $_[1]->thickness($_[2]) },
 );
 
+=head2 C<tag>
+
+=cut
+
 sub tag { ref $_[0] }
 
-sub cover { 1 }
+=head2 C<covers>
+
+=cut
+
+sub covers { 0 }
+
+=head2 C<declare>
+
+=cut
 
 sub declare {
  my ($pat, $tikz) = @_;
@@ -75,6 +105,10 @@ sub declare {
  return @$template;
 }
 
+=head2 C<apply>
+
+=cut
+
 sub apply { 'fill', 'pattern=' . $_[0]->name($_[1]) }
 
 LaTeX::TikZ::Interface->register(
@@ -96,6 +130,10 @@ LaTeX::TikZ::Interface->register(
 
 __PACKAGE__->meta->make_immutable;
 
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>, L<LaTeX::TikZ::Mod>.
+
 =head1 AUTHOR
 
 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.