NAME

Gapp::App::Widget::Trait::HasApp - Provides app attribute

DESCRIPTION

Apply this traits to widgets which should have a reference to the application.

SYNOPSIS

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';

PROVIDED ATTRIBUTES

app

A weak reference to the application object.

is rw
isa Gapp::App
default Undef
weak_ref

AUTHORS

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT & LICENSE

Copyright (c) 2010-2012 Jeffrey Ray Hallock.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)