1999-03-18 07:08:08 +08:00
|
|
|
# The GIMP -- an image manipulation program
|
1999-03-20 07:04:16 +08:00
|
|
|
# Copyright (C) 1999 Manish Singh <yosh@gimp.org>
|
1999-03-18 07:08:08 +08:00
|
|
|
|
|
|
|
# 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,
|
1999-03-20 07:04:16 +08:00
|
|
|
# but WITHOUTFILE ANY WARRANTY; without even the implied warranty of
|
1999-03-18 07:08:08 +08:00
|
|
|
# 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.
|
|
|
|
|
1999-03-20 07:04:16 +08:00
|
|
|
# autogenerated by enumgen.pl
|
|
|
|
|
1999-03-18 07:08:08 +08:00
|
|
|
package Gimp::CodeGen::enums;
|
|
|
|
|
|
|
|
%enums = (
|
|
|
|
ConvertPaletteType =>
|
1999-03-20 07:04:16 +08:00
|
|
|
{ contig => 1,
|
1999-03-18 07:08:08 +08:00
|
|
|
symbols => [ qw(MAKE_PALETTE REUSE_PALETTE WEB_PALETTE MONO_PALETTE
|
1999-03-20 07:04:16 +08:00
|
|
|
CUSTOM_PALETTE) ],
|
|
|
|
mapping => { MAKE_PALETTE => '0',
|
|
|
|
REUSE_PALETTE => '1',
|
|
|
|
WEB_PALETTE => '2',
|
|
|
|
MONO_PALETTE => '3',
|
|
|
|
CUSTOM_PALETTE => '4' }
|
1999-03-21 10:14:08 +08:00
|
|
|
},
|
|
|
|
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' }
|
1999-03-20 07:04:16 +08:00
|
|
|
}
|
1999-03-18 07:08:08 +08:00
|
|
|
);
|
|
|
|
|
1999-03-20 07:04:16 +08:00
|
|
|
foreach $e (values %enums) {
|
|
|
|
$e->{info} = "";
|
|
|
|
foreach (@{$e->{symbols}}) { $e->{info} .= "$_ ($e->{mapping}->{$_}), " }
|
|
|
|
$e->{info} =~ s/, $//;
|
1999-03-18 07:08:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|