package Gapp::Label; { $Gapp::Label::VERSION = '0.481'; } use Moose; use MooseX::SemiAffordanceAccessor; extends 'Gapp::Widget'; has '+gclass' => ( default => 'Gtk2::Label', ); has 'text' => ( is => 'rw', isa => 'Str', ); has 'markup' => ( is => 'rw', isa => 'Str', ); sub BUILDARGS { my $class = shift; my %args = @_ == 1 && is_HashRef( $_[0] ) ? %{$_[0]} : @_; #if ( exists $args{markup} ) { # $args{args} = [ $args{markup} ]; # $args{constructor} = 'new_with_markup'; #} #elsif ( exists $args{mnemonic} ) { # $args{args} = [ $args{mnemonic} ]; # $args{constructor} = 'new_with_mnemonic'; #} if ( exists $args{text} ) { $args{args} = [ $args{text} ]; } #delete $args{markup}; #delete $args{mnemonic}; #delete $args{text}; for my $att ( qw( xalign yalign) ) { $args{properties}{$att} = delete $args{$att} if exists $args{$att}; } __PACKAGE__->SUPER::BUILDARGS( %args ); } 1; __END__ =pod =head1 NAME Gapp::Label - Label Widget =head1 OBJECT HIERARCHY =over 4 =item L =item +-- L =item ....+-- L =back =head1 DELEGATED PROPERTIES =over 4 =item B =item B =item B =back =head1 AUTHORS Jeffrey Ray Hallock Ejeffrey.hallock at gmail dot comE =head1 COPYRIGHT & LICENSE Copyright (c) 2011-2012 Jeffrey Ray Hallock. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut