WxPerl::ShortCuts - shorter constants


dotReader documentation  | view source Contained in the dotReader distribution.

Index


NAME

Top

WxPerl::ShortCuts - shorter constants

SYNOPSIS

Top

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

Top

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

Top

Def

  wxDEFAULT

DefP

  wxDefaultPosition

DefS

  wxDefaultSize

DefPS

Returns a list of two values.

  wxDefaultPosition, wxDefaultSize

GUTS

Top

_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

Top

Eric Wilhelm <ewilhelm at cpan dot org>

http://scratchcomputing.com/

BUGS

Top

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

Top

NO WARRANTY

Top

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

Top

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


dotReader documentation  | view source Contained in the dotReader distribution.