diff dw.h @ 633:87db549e79bc

Add dw_polygon_draw() to draw closed polygons. Fix bug in date items in container; date structure not initialised to zero. Add button_release as valid event in render box. Add support for transparency when bitblt'ing bitmaps from source bitmaps that have transparency. Fix off-by-one in dw_listbox_clear()
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 06 Jan 2009 11:00:15 +0000
parents 7bdb2a58c51d
children c6a216c8174f
line wrap: on
line diff
--- a/dw.h	Thu Oct 30 10:46:03 2008 +0000
+++ b/dw.h	Tue Jan 06 11:00:15 2009 +0000
@@ -856,9 +856,10 @@
 };
 
 typedef struct _hpixmap {
-	unsigned long width, height;
-	GdkPixmap *pixmap;
-	HWND handle;
+   unsigned long width, height;
+   GdkPixmap *pixmap;  /* the actual image */
+   GdkBitmap *bitmap;  /* if not null, the image mask representing the transparency mask */
+   HWND handle;
 } *HPIXMAP;
 
 typedef GtkWidget *HMENUI;
@@ -1199,6 +1200,7 @@
 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y);
 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2);
 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height);
+void API dw_draw_polygon(HWND handle, HPIXMAP pixmap, int fill, int npoints, int *x, int *y);
 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text);
 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height);
 void API dw_flush(void);