The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WxPerl::ShortCuts - shorter constants

SYNOPSIS

As an alternative to 'use Wx qw(:everything)', this module exports a handful of methods into your namespace which act as shorthand for several wxFOO constants.

Prefixes

WX

  WX'FOO';
  WX('FOO');

Returns Wx::wxFOO(). Multiple suffixes can be joined with '|' symbols.

  WX('FOO|BAR');

Returns Wx::wxFOO() | Wx::wxBAR().

TE

Wx::wxTE_*

  TE'FOO';

BT

Wx::wxBITMAP_TYPE_*

  BT'ANY';

SP

Wx::wxSP_*

TR

Wx::wxTR_*

Other Shortcuts

Def

  wxDEFAULT

DefP

  wxDefaultPosition

DefS

  wxDefaultSize

DefPS

Returns a list of two values.

  wxDefaultPosition, wxDefaultSize

GUTS

_mk_constant

  my $const = _mk_constant($prefix, $string);

get_constant

Expects a fully qualified subname such as 'Wx::wxALIGN_RIGHT'.

  my $const = get_constant($name);

AUTHOR

Eric Wilhelm <ewilhelm at cpan dot org>

http://scratchcomputing.com/

BUGS

If you found this module on CPAN, please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

If you pulled this development version from my /svn/, please contact me directly.

COPYRIGHT

Copyright (C) 2007 Eric L. Wilhelm, All Rights Reserved.

NO WARRANTY

Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.