| 1 | package POE::XUL::Constants; | ||
| 2 | # $Id: Constants.pm 1566 2010-11-03 03:13:32Z fil $ | ||
| 3 | # Copyright Philip Gwyn 2007-2010. All rights reserved. | ||
| 4 | # Based on code Copyright 2003-2004 Ran Eilam. All rights reserved. | ||
| 5 | |||
| 6 | 21 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 21 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 21 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 21 | our $VERSION = '0.0600'; | |
| 11 | |||
| 12 | 21 | require Exporter; | |
| 13 | 21 | our @ISA = qw( Exporter ); | |
| 14 | |||
| 15 | 21 | our @EXPORT = qw( | |
| 16 | FLEX ALIGN_START ALIGN_CENTER ALIGN_END ALIGN_BASELINE ALIGN_STRETCH | ||
| 17 | ALIGN_LEFT ALIGN_CENTER ALIGN_RIGHT PACK_START PACK_CENTER PACK_END | ||
| 18 | ORIENT_HORIZONTAL ORIENT_VERTICAL DIR_FORWARD DIR_REVERSE CROP_START | ||
| 19 | CROP_CENTER CROP_END SIZE_TO_CONTENT DISABLED ENABLED TYPE_CHECKBOX | ||
| 20 | TYPE_RADIO TYPE_MENU TYPE_MENU_BUTTON TYPE_BUTTON TYPE_PASSWORD FILL | ||
| 21 | ); | ||
| 22 | |||
| 23 | 21 | ▶ | use constant FLEX => (flex => 1); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 21 | ▶ | use constant ALIGN_START => (align => 'start'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 21 | ▶ | use constant ALIGN_CENTER => (align => 'center'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | 21 | ▶ | use constant ALIGN_END => (align => 'end'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 21 | ▶ | use constant ALIGN_BASELINE => (align => 'baseline'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 21 | ▶ | use constant ALIGN_STRETCH => (align => 'stretch'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 21 | ▶ | use constant ALIGN_LEFT => (align => 'left'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 21 | ▶ | use constant ALIGN_RIGHT => (align => 'right'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | |||
| 33 | 21 | ▶ | use constant PACK_START => (pack => 'start'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | 21 | ▶ | use constant PACK_CENTER => (pack => 'center'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | 21 | ▶ | use constant PACK_END => (pack => 'end'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | |||
| 37 | 21 | ▶ | use constant ORIENT_HORIZONTAL => (orient => 'horizontal'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | 21 | ▶ | use constant ORIENT_VERTICAL => (orient => 'vertical'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 39 | |||
| 40 | 21 | ▶ | use constant DIR_FORWARD => (dir => 'forward'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | 21 | ▶ | use constant DIR_REVERSE => (dir => 'reverse'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | |||
| 43 | 21 | ▶ | use constant CROP_START => (crop => 'start'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 44 | 21 | ▶ | use constant CROP_CENTER => (crop => 'center'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | 21 | ▶ | use constant CROP_END => (crop => 'end'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 46 | |||
| 47 | 21 | ▶ | use constant SIZE_TO_CONTENT => (sizeToContent => 1); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 48 | |||
| 49 | 21 | ▶ | use constant DISABLED => (disabled => 1); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 50 | 21 | ▶ | use constant ENABLED => (disabled => 0); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 51 | |||
| 52 | 21 | ▶ | use constant TYPE_CHECKBOX => (type => 'checkbox'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 53 | 21 | ▶ | use constant TYPE_RADIO => (type => 'radio'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 54 | 21 | ▶ | use constant TYPE_MENU => (type => 'menu'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 55 | 21 | ▶ | use constant TYPE_MENU_BUTTON => (type => 'menu-button'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 56 | 21 | ▶ | use constant TYPE_BUTTON => (type => 'button'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 57 | 21 | ▶ | use constant TYPE_PASSWORD => (type => 'PASSWORD'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 58 | |||
| 59 | 21 | ▶ | use constant FILL => (ALIGN_STRETCH, FLEX); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 60 | |||
| 61 | 21 | 1; | |
| 62 | |||
| 63 | __END__ | ||