Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
632:bf3a6d596cd4 | 633:87db549e79bc |
---|---|
854 int sid; | 854 int sid; |
855 int size; | 855 int size; |
856 }; | 856 }; |
857 | 857 |
858 typedef struct _hpixmap { | 858 typedef struct _hpixmap { |
859 unsigned long width, height; | 859 unsigned long width, height; |
860 GdkPixmap *pixmap; | 860 GdkPixmap *pixmap; /* the actual image */ |
861 HWND handle; | 861 GdkBitmap *bitmap; /* if not null, the image mask representing the transparency mask */ |
862 HWND handle; | |
862 } *HPIXMAP; | 863 } *HPIXMAP; |
863 | 864 |
864 typedef GtkWidget *HMENUI; | 865 typedef GtkWidget *HMENUI; |
865 typedef void *HTREEITEM; | 866 typedef void *HTREEITEM; |
866 typedef void *HSHM; | 867 typedef void *HSHM; |
1197 void API dw_color_background_set(unsigned long value); | 1198 void API dw_color_background_set(unsigned long value); |
1198 unsigned long API dw_color_choose(unsigned long value); | 1199 unsigned long API dw_color_choose(unsigned long value); |
1199 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y); | 1200 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y); |
1200 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2); | 1201 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2); |
1201 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height); | 1202 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height); |
1203 void API dw_draw_polygon(HWND handle, HPIXMAP pixmap, int fill, int npoints, int *x, int *y); | |
1202 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text); | 1204 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text); |
1203 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height); | 1205 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height); |
1204 void API dw_flush(void); | 1206 void API dw_flush(void); |
1205 void API dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc); | 1207 void API dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc); |
1206 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth); | 1208 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth); |