summaryrefslogtreecommitdiff
path: root/wingdi_common.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-03-26 09:07:44 -0400
committermidipix <writeonce@midipix.org>2015-03-26 09:07:44 -0400
commit251f26064f0ce721a635dd6e9358fd867181fcd5 (patch)
tree0ca540d899897b32e549c0b30e30de47518d87d5 /wingdi_common.h
downloadscrap-251f26064f0ce721a635dd6e9358fd867181fcd5.tar.bz2
scrap-251f26064f0ce721a635dd6e9358fd867181fcd5.tar.xz
headers for gdi bitmaps, reflecting an idea about one possible
principle/system that the winapi could follow: * if a header traditionally provided information about multiple implementation areas (i.e. bitmaps, brushes, clipping, etc.), provide the definitions for each of these areas in a designated header, and have the canonical header include them. * within each header, ideally begin by providing all of the enums, and then similarly all #defines, typedefs, and function signatures and/or forward declarations.
Diffstat (limited to 'wingdi_common.h')
-rw-r--r--wingdi_common.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/wingdi_common.h b/wingdi_common.h
new file mode 100644
index 0000000..0d2cd56
--- /dev/null
+++ b/wingdi_common.h
@@ -0,0 +1,44 @@
+#ifndef _GDI_COMMON_H_
+#define _GDI_COMMON_H_
+
+#include <winapi/wintypes.h>
+
+typedef uint COLORREF;
+typedef unsigned short COLOR16;
+typedef int FXPT16DOT16;
+typedef int FXPT2DOT30;
+
+
+typedef struct tagPOINT {
+ int x;
+ int y;
+} POINT, *PPOINT, *NPPOINT, *LPPOINT;
+
+typedef struct _POINTL {
+ int x;
+ int y;
+} POINTL, *PPOINTL, *NPPOINTL, *LPPOINTL;
+
+typedef struct tagPOINTS {
+ int x;
+ int y;
+} POINTS, *PPOINTS, *NPPOINTS, *LPPOINTS;
+
+typedef struct tagSIZE {
+ int cx;
+ int cy;
+} SIZE, *PSIZE, *LPSIZE;
+
+typedef struct _SIZEL {
+ int cx;
+ int cy;
+} SIZEL, *PSIZEL, *LPSIZEL;
+
+typedef struct tagRECT {
+ int left;
+ int top;
+ int right;
+ int bottom;
+} RECT, *PRECT, *NPRECT, *LPRECT;
+
+#endif /* _GDI_COMMON_H_ */