package Gapp::Meta::Widget::Native::Role::HasIcon; { $Gapp::Meta::Widget::Native::Role::HasIcon::VERSION = '0.60'; } use Moose::Role; use MooseX::SemiAffordanceAccessor; has 'icon' => ( is => 'rw', isa => 'Maybe[Str]', ); 1; __END__ =pod =head1 NAME Gapp::Meta::Widget::Native::Role::HasIcon - icon attribute for widgets =head1 SYNOPSIS Gapp::Button->new( icon => 'gtk-quit', label => 'Exit' ); =head1 PROVIDED ATTRIBUTES =over 4 =item B =over 4 =item is rw =item isa Str|Undef =back The stock-id of the image to apply to the widget. =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