Skip to content

Commit

Permalink
SDLx::Text - supporting text attribute during construction
Browse files Browse the repository at this point in the history
  • Loading branch information
garu committed Feb 27, 2011
1 parent 58cede0 commit 8c6646b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/SDLx/Text.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ sub new {

$self->{_color} = $color;

$self->text( $options{'text'} ) if defined $options{'text'};

return $self;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/pods/SDLx/Text.pod
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Sets the horizontal alignment of the text to be rendered relative to
whatever surface you are placing it into. Available alignments are 'C<left>',
'C<right>' and 'C<center>'. Default is 'C<left>'.

=item * text

=back

=head2 text( "text to write" )
Expand Down

0 comments on commit 8c6646b

Please sign in to comment.