mirror of https://github.com/GNOME/gimp.git
101 lines
2.9 KiB
Perl
101 lines
2.9 KiB
Perl
# The GIMP -- an image manipulation program
|
|
# Copyright (C) 1999 Manish Singh <yosh@gimp.org>
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUTFILE ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
# autogenerated by enumgen.pl
|
|
|
|
package Gimp::CodeGen::enums;
|
|
|
|
%enums = (
|
|
ConvertPaletteType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(MAKE_PALETTE REUSE_PALETTE WEB_PALETTE MONO_PALETTE
|
|
CUSTOM_PALETTE) ],
|
|
mapping => { MAKE_PALETTE => '0',
|
|
REUSE_PALETTE => '1',
|
|
WEB_PALETTE => '2',
|
|
MONO_PALETTE => '3',
|
|
CUSTOM_PALETTE => '4' }
|
|
},
|
|
ChannelOffsetType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(OFFSET_BACKGROUND OFFSET_TRANSPARENT) ],
|
|
mapping => { OFFSET_BACKGROUND => '0',
|
|
OFFSET_TRANSPARENT => '1' }
|
|
},
|
|
SizeType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(PIXELS POINTS) ],
|
|
mapping => { PIXELS => '0',
|
|
POINTS => '1' }
|
|
},
|
|
GimpFillType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(FOREGROUND_FILL BACKGROUND_FILL WHITE_FILL
|
|
TRANSPARENT_FILL NO_FILL) ],
|
|
mapping => { FOREGROUND_FILL => '0',
|
|
BACKGROUND_FILL => '1',
|
|
WHITE_FILL => '2',
|
|
TRANSPARENT_FILL => '3',
|
|
NO_FILL => '4' }
|
|
},
|
|
GimpImageType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(RGB_GIMAGE RGBA_GIMAGE GRAY_GIMAGE GRAYA_GIMAGE
|
|
INDEXED_GIMAGE INDEXEDA_GIMAGE) ],
|
|
mapping => { RGB_GIMAGE => '0',
|
|
RGBA_GIMAGE => '1',
|
|
GRAY_GIMAGE => '2',
|
|
GRAYA_GIMAGE => '3',
|
|
INDEXED_GIMAGE => '4',
|
|
INDEXEDA_GIMAGE => '5' }
|
|
},
|
|
GimpImageBaseType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(RGB GRAY INDEXED) ],
|
|
mapping => { RGB => '0',
|
|
GRAY => '1',
|
|
INDEXED => '2' }
|
|
},
|
|
ChannelType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(Red Green Blue Gray Indexed Auxillary) ],
|
|
mapping => { Red => '0',
|
|
Green => '1',
|
|
Blue => '2',
|
|
Gray => '3',
|
|
Indexed => '4',
|
|
Auxillary => '5' }
|
|
},
|
|
MergeType =>
|
|
{ contig => 1,
|
|
symbols => [ qw(ExpandAsNecessary ClipToImage ClipToBottomLayer
|
|
FlattenImage) ],
|
|
mapping => { ExpandAsNecessary => '0',
|
|
ClipToImage => '1',
|
|
ClipToBottomLayer => '2',
|
|
FlattenImage => '3' }
|
|
}
|
|
);
|
|
|
|
foreach $e (values %enums) {
|
|
$e->{info} = "";
|
|
foreach (@{$e->{symbols}}) { $e->{info} .= "$_ ($e->{mapping}->{$_}), " }
|
|
$e->{info} =~ s/, $//;
|
|
}
|
|
|
|
1;
|