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

NAME

Tk::XPMs - xpm images for icons

SYNOPSIS

 use Tk;
 use Tk::XPMs qw(:all);

 my $top = MainWindow->new;

 my $xpm = $top->Pixmap(-data => openfolder_xpm);

 my $b1 = $top->Button(
    -image     => $xpm,
    -command   => sub{ print "openfolder_xpm\n"; },
     );

DESCRIPTION

This module provides some xpm images for icons. Each image is implemented as a function which returns the xpm data as a string.

The following image methods are defined:

tools_1_xpm()

Returns a tool box icon.

tools_xpm()

Returns a tool box icon.

Tk_xpm()

Returns a 32 x 32 Tk symbol.

diskette_xpm()

Returns a 14 x 15 floppy disc symbol.

diskette2_xpm()

Returns another 14 x 15 floppy disc symbol.

folder_xpm( $color )

Returns a 16 x 12 symbol for a folder. The $color parameter is optional. Default color is "#f0ff80".

red_folder_xpm()

Returns a 17 x 15 symbol for a folder. The color of the folder symbol is red.

openfolder_xpm( $color )

Returns a 17 x 15 open folder symbol. The $color parameter is optional. Default color is "#f0ff80".

textfile_xpm( $color )

Returns a 12 x 12 symbol for a windows text file. The $color parameter is optional. Default color is "white".

srcfile_xpm( $color )

Returns a symbol for a source file. The $color parameter is optional. Default color is "white".

file_xpm( $color )

Returns a symbol for a file. The $color parameter is optional. Default color is "white".

winfolder_xpm( )

Returns a symbol for a windows folder.

winact_folder_xpm()

Returns a symbol for a opened windows folder.

act_folder_xpm( $color )

Returns a symbol for an opened windows folder. The $color parameter is optional. Default color is "yellow".

wintext_xpm( $color )

Returns a symbol for a text file. The $color parameter is optional. Default color is "white".

ColorEditor_xpm()

Returns a symbol for a color editor.

Camel_xpm( $color )

Returns a camel icon. The $color parameter is optional. Default color is "#7f7f00".

arrow_up_xpm( $color )

Returns a symbol for an up-arrow. The $color parameter is optional. Default color is "white".

arrow_down_xpm( $color )

Returns a symbol for a down-arrow. The $color parameter is optional. Default color is "white".

arrow_left_blue_xpm()

Returns a symbol for a blue left arrow.

arrow_right_blue_xpm()

Returns a symbol for a blue right arrow.

arrow_left_xpm( $color )

Returns a symbol for a left arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_right_xpm( $color )

Returns a symbol for a right arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_first_xpm( $color )

Returns a symbol for a |< arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_prev_xpm( $color )

Returns a symbol for a < arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_ppage_xpm( $color )

Returns a symbol for a << arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_next_xpm( $color )

Returns a symbol for a > arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_npage_xpm( $color )

Returns a symbol for a >> arrow. The $color parameter is optional. Default color is "#ffffff".

arrow_last_xpm( $color )

Returns a symbol for a >| arrow. The $color parameter is optional. Default color is "#ffffff".

mail_xpm()

Returns a symbol for an envelope.

cross_xpm( $color )

Returns a symbol for a x-shaped cross. The $color parameter is optional. Default color is "red".

info_xpm()

Returns a symbol for a info symbol.

arrow_zomm_in_xpm()

Returns a symbol for a zoom-in lense.

arrow_zomm_out_xpm()

Returns a symbol for a zoom-out lense.

cut_disabled_xpm()

Returns a symbol for a cut symbol (disabled).

cut_normal_xpm()

Returns a symbol for a cut symbol (normal).

paste_disabled_xpm()

Returns a symbol for a paste symbol (disabled).

paste_normal_xpm()

Returns a symbol for a paste symbol (normal).

search_xpm()

Returns a symbol for a big lense.

filter_xpm()

Returns a symbol for eyeglasses.

filter_switch_xpm()

Returns a symbol for crossed out eyeglasses.

thumbs_xpm()

Returns a symbol for "Thumbnail" Dialog.

dias_xpm()

Returns a symbol for "Diashow" Dialog.

rotate_left_xpm( $color )

Returns a symbol for a "rotate left" arrow. The $color parameter is optional. Default color is "#FCFCFC".

rotate_right_xpm( $color )

Returns a symbol for a "rotate right" arrow. The $color parameter is optional. Default color is "#FCFCFC".

exit_xpm( $color )

Returns a symbol for an "Exit" button. The $color parameter for the text is optional. Default color is "#000000".

stop_xpm()

Returns a symbol for a "Stop" button.

eye_xpm()

Returns a symbol for an "Eye" button.

noeye_xpm()

Returns a symbol for an "Crossed out Eye" button.

lock_xpm()

Returns a symbol for a "Lock" button.

money_xpm()

Returns a 32 x 32 symbol for money.

box_nonsel_xpm( $color )

Returns a symbol for a not selected checkbox. The $color parameter is optional. Default color is "#FFFFFF".

box_yellow_xpm( $color )

Returns a symbol for a not selected yellow checkbox The $color parameter is optional. Default color is "yellow".

box_sel_xpm( $color )

Returns a symbol for a selected checkbox The $color parameter is optional. Default color is "yellow".

EXPORT

None by default. There are export tags :all and :arrows which can be used to import all methods or only the arrow methods.

AUTHOR

Lorenz Domke, <lorenz.domke@gmx.de>

COPYRIGHT AND LICENSE

Copyright 2005 by Lorenz Domke

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