Gtk2::Ex::Constants - Useful constants for working with Gnome2/Gtk2 Perl.


Gtk2-Ex-Utils documentation  | view source Contained in the Gtk2-Ex-Utils distribution.

Index


NAME

Top

Gtk2 Ex Constants - Extra Constants for working with Gnome2/Gtk2 in Perl.

SYNOPSIS

Top

 # import only the PACKing and PADing constants
 use Gtk2::Constants qw( :pack :pad );

DESCRIPTION

Top

This module provides many constant values for specific aspects of working with Gnome2/Gtk2 Perl. The main purpose of these constants (aside from unified values) is to aide in the creation of human readable code that follows consistent naming conventions.

EXPORT TAGS

Top

:all :truth :pad :pack :align :justify :policy

CONSTANTS BY TAG

Top

:truth

TRUE = 1
FALSE = 0

:pad

PAD_EDGE = 12
PAD_WIDGET = 8
PAD_ZERO = 0

:pack

PACK_EXPAND = ( 1, 0 )
PACK_FILL = ( 0, 1 )
PACK_ZERO = ( 0, 0 )
PACK_GROW = ( 1, 1 )

:align

A_LEFT = 0.00
A_CENTRE = 0.50
A_RIGHT = 1.00
A_TOP = 0.00
A_MIDDLE = 0.50
A_BOTTOM = 1.00

:justify

J_LEFT = 'left'
J_CENTRE = 'center'
J_RIGHT = 'right'
J_FILL = 'fill'

:policy

P_ALWAYS = 'always'
P_AUTO = 'automatic'
P_NEVER = 'never'

BUGS

Top

Please report any bugs to the mailing list.

CONTRIBUTE

Top

If you've got constants that are related to Gnome2/Gtk2 Perl, that are not already implemented in here and feel that others may benefit from their inclusion here, please do not hesitate to send them to the mailing list.

MAILING LIST

Top

 http://opendoorsoftware.com/lists/gtk2-ex-list
 gtk2-ex-list@opendoorsoftware.com

AUTHORS

Top

 Kevin C. Krinke, <kckrinke@opendoorsoftware.com>
 James Greenhalgh, <jgreenhalgh@opendoorsoftware.com>

COPYRIGHT AND LICENSE

Top


Gtk2-Ex-Utils documentation  | view source Contained in the Gtk2-Ex-Utils distribution.