Re: Missing pango constants
- From: "Ross McFarland" <rwmcfa1 neces com>
- To: "Torsten Schoenfeld" <kaffeetisch web de>
- Cc: gtk-perl-list gnome org
- Subject: Re: Missing pango constants
- Date: Tue, 29 Jul 2003 10:26:58 -0400 (EDT)
the patch you sent adds things that are enums whereas the constants defined in
the Pango.pm file are #defines. that file had to be added just for those
#defines b/c they can't be implemented in the special way that that enums are.
those #defines, that we put as constants in Pango.pm, are predefined points
along a continuous space and thus can't be used with the enum stuff.
enums have some special typemap magic that allows perl to deal with them as
strings based off of their names, for instance:
'PANGO_STRETCH_ULTRA_CONDENSED'
'ultra-condensed' (the preferred)
'ultra_condensed'
all mean the same thing when used in function calls that expect a
PangoStretch. if you go to use a function that takes a PagnoStretch, (or any
enum) and pass something for a that it doesn't know how to translate into an
enum value the wrappers will complain and tell you what the legal values are.
in short those aren't in there b/c they shouldn't be, they are already there,
just done in a different way.
-rm
Torsten Schoenfeld said:
On Tue, 29 Jul 2003 15:12:59 +0200, Torsten Schoenfeld wrote:
I recently stumbled across some missing pango constants. I'm not quite
sure if Pango.pm is the right place to add these, but anyways - the
patch is attached.
I just noticed that PangoUnderline was missing, too. The adjusted patch
is attached.
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]