Gapp::App::Widget::Trait::HasApp - Provides app attribute
Apply this traits to widgets which should have a reference to the application.
use Gapp::App; $app = Gapp::App->new; $w = Gapp::Window->new( traits => [qw( HasApp )], app => $app ); ... # or use it in a subclass package Foo::Window; use Moose; extends 'Gapp::Window'; with 'Gapp::App::Widget::Trait::HasApp';
A weak reference to the application object.
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
Copyright (c) 2010-2012 Jeffrey Ray Hallock.
This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
To install Gapp::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gapp::App
CPAN shell
perl -MCPAN -e shell install Gapp::App
For more information on module installation, please visit the detailed CPAN module installation guide.