and 1 contributors
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';
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)