Jeffrey Ray Hallock > Gapp-0.494 > Gapp::Widget

Download:
Gapp-0.494.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.494   Source   Latest Release: Gapp-0.60

NAME ^

Gapp::Widget - The base class for all Gapp widgets

OBJECT HIERARCHY ^

Gapp::Object
+-- Gapp::Widget

DESCRIPTION ^

All Gapp widgets inherit from Gapp::Widget.

PROVIDED ATTRIBUTES ^

expand
isa: Bool
default: 0

If the widget should expand inside it's container. (Tables widgets ignore this value because widget expansion is determind by the Gapp::TableMap)

fill
isa: Bool
default: 0

If the widget should fill it's container. (Tables widgets ignore this value because widget layout is determind by the Gapp::TableMap)

gwrapper
is rw
isa Gtk2::Widget
writer set_gwrapper
reader get_gwrapper

The gwrapper is a widget that encapsulates the gobject. This is useful when creating composite widgets. To retrieve the value of the gwrapper attribute use the get_gwrapper method. Calling the grwapper will return the gwrapper if one has been set, otherwise it will return the gobject.

padding
isa: Int
default: 0

Padding around the widget.

parent
isa Gapp::Widget|Undef
default undef

The parent widget.

tooltip
isa Str|Undef

The tooltip to display over the widget.

PROVIDED METHODS ^

toplevel

Searches through the widget heirachy to find the furthest widget up the chain with no parent widget. Returns the calling widget if it has no parent.

returns Gapp::Widget

AUTHORS ^

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

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.
syntax highlighting: