mGEff API Reference  v1.2.0
An animation framework for MiniGUI apps
mgeff-common.h
Go to the documentation of this file.
1 
42 #ifndef _MGEFF_COMMON_H_
43 #define _MGEFF_COMMON_H_
44 
45 #if !defined(__NODLL__) && (defined (WIN32) || defined (__NUCLEUS_MNT__))
46 # if defined(__MGEFF_LIB__)
47 # define MGEFF_EXPORT __declspec(dllexport)
48 # else
49 # define MGEFF_EXPORT __declspec(dllimport)
50 # endif
51 #else
52 # define MGEFF_EXPORT
53 #endif
54 
55 #ifndef MGEFF_MAJOR_VERSION
56 # undef PACKAGE
57 # undef VERSION
58 # undef PACKAGE_BUGREPORT
59 # undef PACKAGE_NAME
60 # undef PACKAGE_STRING
61 # undef PACKAGE_TARNAME
62 # undef PACKAGE_VERSION
63 # include "mgeffconfig.h"
64 #endif
65 
67 typedef int MGEFF_BOOL;
68 
70 #define MGEFF_TRUE 1
71 
72 #define MGEFF_FALSE 0
73 
77 #ifdef MGEFF_FORWARD_COMPATIBLE
78 
80 typedef void *MGEFF_HANDLE;
82 #define MGEFF_DECLARE_HANDLE(name) typedef MGEFF_HANDLE name
83 
84 #else
85 
87 typedef void *MGEFF_HANDLE;
89 #define MGEFF_DECLARE_HANDLE(name) struct _mgeff_##name##___{int unused;}; \
90 typedef struct _mgeff_##name##___ * name
91 
92 #endif
93 
95 #define BITBLT(shdc, sx, sy, sw, sh, dhdc, dx, dy, rop) \
96  do { \
97  if (0 != sw && 0 != sh) BitBlt(shdc, sx, sy, sw, sh, dhdc, dx, dy, rop); \
98  } while(0)
99 
101 #define STRETCHBLT(shdc, sx, sy, sw, sh, dhdc, dx, dy, dw, dh, rop) \
102  do { \
103  if (0 != sw && 0 != sh && 0 != dw && 0 != dh) \
104  StretchBlt(shdc, sx, sy, sw, sh, dhdc, dx, dy, dw, dh, rop); \
105  } while(0)
106 
108 typedef struct _EffPoint {
109  int x;
110  int y;
111 } EffPoint;
112 
114 typedef struct _EffPointF {
115  float x;
116  float y;
117 } EffPointF;
118 
120 typedef struct _EffPoint3D {
121  int x;
122  int y;
123  int z;
124 } EffPoint3D;
125 
127 typedef struct _EffPointF3D {
128  float x;
129  float y;
130  float z;
131 } EffPointF3D;
132 
134 typedef struct _EffRect {
135  int left;
136  int top;
137  int right;
138  int bottom;
139 } EffRect;
140 
142 typedef unsigned int EffColor;
143 
154 MGEFF_EXPORT int mGEffInit (void);
155 
164 MGEFF_EXPORT void mGEffDeinit (void);
165 
166 #endif
167 
int bottom
Definition: mgeff-common.h:138
struct _EffPoint EffPoint
Structure defines a int point.
float x
Definition: mgeff-common.h:128
struct _EffPointF EffPointF
Structure defines a float point.
MGEFF_EXPORT int mGEffInit(void)
void * MGEFF_HANDLE
type of MGEFF_HANDLE
Definition: mgeff-common.h:87
Structure defines a float point.
Definition: mgeff-common.h:114
int z
Definition: mgeff-common.h:123
float y
Definition: mgeff-common.h:129
float z
Definition: mgeff-common.h:130
int x
Definition: mgeff-common.h:109
int left
Definition: mgeff-common.h:135
MGEFF_EXPORT void mGEffDeinit(void)
#define MGEFF_EXPORT
Definition: mgeff-common.h:52
float y
Definition: mgeff-common.h:116
int MGEFF_BOOL
type of MGEFF_BOOL
Definition: mgeff-common.h:67
int x
Definition: mgeff-common.h:121
Structure defines a rectangle.
Definition: mgeff-common.h:134
struct _EffRect EffRect
Structure defines a rectangle.
float x
Definition: mgeff-common.h:115
struct _EffPoint3D EffPoint3D
Structure defines a int 3D point.
int top
Definition: mgeff-common.h:136
int y
Definition: mgeff-common.h:110
Structure defines a float 3D point.
Definition: mgeff-common.h:127
unsigned int EffColor
type defines a color
Definition: mgeff-common.h:142
Structure defines a int point.
Definition: mgeff-common.h:108
Structure defines a int 3D point.
Definition: mgeff-common.h:120
struct _EffPointF3D EffPointF3D
Structure defines a float 3D point.
int y
Definition: mgeff-common.h:122
int right
Definition: mgeff-common.h:137