aboutsummaryrefslogtreecommitdiff
path: root/generic/Types.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Types.h')
-rw-r--r--generic/Types.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/generic/Types.h b/generic/Types.h
index e02b75b..773f12b 100644
--- a/generic/Types.h
+++ b/generic/Types.h
@@ -1,8 +1,8 @@
/*
* Types.h -- Some types and macros used by the Zinc widget.
*
- * Authors : Patrick Lecoanet.
- * Creation date : Mon Feb 1 12:13:24 1999
+ * Authors : Patrick Lecoanet.
+ * Creation date : Mon Feb 1 12:13:24 1999
*
* $Id$
*/
@@ -88,24 +88,24 @@ extern "C" {
#endif
-typedef double ZnReal; /* Keep it a double for GL and Tcl. */
-typedef int ZnBool; /* Keep it an int to keep Tk happy */
-typedef ZnReal ZnPos;
-typedef ZnReal ZnDim;
-typedef void *ZnPtr;
+typedef double ZnReal; /* Keep it a double for GL and Tcl. */
+typedef int ZnBool; /* Keep it an int to keep Tk happy */
+typedef ZnReal ZnPos;
+typedef ZnReal ZnDim;
+typedef void *ZnPtr;
-#define ZnPixel(color) ((color)->pixel)
-#define ZnMalloc(size) ((void *)ckalloc(size))
-#define ZnFree(ptr) (ckfree((char *)(ptr)))
-#define ZnRealloc(ptr, size) ((void *)ckrealloc((void *)(ptr), size))
-#define ZnWarning(msg) (fprintf(stderr, "%s", (msg)))
+#define ZnPixel(color) ((color)->pixel)
+#define ZnMalloc(size) ((void *)ckalloc(size))
+#define ZnFree(ptr) (ckfree((char *)(ptr)))
+#define ZnRealloc(ptr, size) ((void *)ckrealloc((void *)(ptr), size))
+#define ZnWarning(msg) (fprintf(stderr, "%s", (msg)))
-#define ZnUnspecifiedImage None
-#define ZnUnspecifiedColor NULL
+#define ZnUnspecifiedImage None
+#define ZnUnspecifiedColor NULL
#ifndef TCL_INTEGER_SPACE
-# define TCL_INTEGER_SPACE 24
+# define TCL_INTEGER_SPACE 24
#endif
#ifdef PTK_800
@@ -146,34 +146,34 @@ Tk_GetScrollInfo(interp, argc, (Tcl_Obj **) args, fract, count)
# endif
#undef XFillRectangle
void XFillRectangle(Display *display, Drawable d, GC gc, int x, int y,
- unsigned int width, unsigned int height);
+ unsigned int width, unsigned int height);
# undef XFillRectangles
void XFillRectangles(Display *display, Drawable d, GC gc,
- XRectangle* rectangles, int nrectangles);
+ XRectangle* rectangles, int nrectangles);
# undef XFillArc
void XFillArc(Display *display, Drawable d, GC gc, int x, int y, unsigned int width,
- unsigned int height, int start, int extent);
+ unsigned int height, int start, int extent);
# undef XFillPolygon
void XFillPolygon(Display *display, Drawable d, GC gc, XPoint *points, int npoints,
- int shape, int mode);
+ int shape, int mode);
# undef XDrawRectangle
void XDrawRectangle(Display *display, Drawable d, GC gc, int x, int y,
- unsigned int width, unsigned int height);
+ unsigned int width, unsigned int height);
# undef XDrawArc
void XDrawArc(Display *display, Drawable d, GC gc, int x, int y,
- unsigned int width, unsigned int height, int start, int extent);
+ unsigned int width, unsigned int height, int start, int extent);
# undef XDrawLine
void XDrawLine(Display *display, Drawable d, GC gc, int x1, int y1, int x2, int y2);
# undef XDrawLines
void XDrawLines(Display *display, Drawable d, GC gc, XPoint* points,
- int npoints, int mode);
+ int npoints, int mode);
ZnBool ZnPointInRegion(TkRegion reg, int x, int y);
void ZnUnionRegion(TkRegion sra, TkRegion srb,
- TkRegion dr_return);
+ TkRegion dr_return);
void ZnOffsetRegion(TkRegion reg, int dx, int dy);
TkRegion ZnPolygonRegion(XPoint *points, int n,
- int fill_rule);
+ int fill_rule);
# ifdef GL
# define ZnGLContext HGLRC
# define ZnGLWaitX()