[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] give to the PANGO_PIXELS conversion macro



this patch give to the PANGO_PIXELS conversion macro:

--- ./xs/PangoFont.xs.tv2	2003-07-05 00:58:34.000000000 +0200
+++ ./xs/PangoFont.xs	2003-07-05 02:24:39.000000000 +0200
@@ -20,6 +20,7 @@
  */
 
 #include "gtk2perl.h"
+#include "pango/pango-types.h"
 
 MODULE = Gtk2::Pango::Font	PACKAGE = Gtk2::Pango
 
@@ -266,3 +267,8 @@
 #	PangoRectangle *ink_rect
 #	PangoRectangle *logical_rect
 #
+
+int get_PANGO_PIXELS (char* class, int value)
+    PPCODE:
+	RETVAL = PANGO_PIXELS(value);
+
you may want put it somewhere else.
btw, using "use constant NAME => VALUE" in examples is horrible.
what do you expect if someone change the values in C ?
and yes, that do sometimes happen even if it shall not (eg: drm team
once reorder some ioctl enums, thus breaking compatibility).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]