home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 November / VPR9611B.ISO / vabasic / ntclnt.exe / DISK8 / data.8 / datab / INCLUDE / VWGLOBAL.H < prev    next >
C/C++ Source or Header  |  1996-07-29  |  3KB  |  97 lines

  1. /*--------------------------------------------------------------
  2.  * $Source: /rcs/vwrcs/components/vwglobal.h,v $
  3.  * Checked in by: $Author: clement $
  4.  * $Date: 1996/07/05 13:59:54 $              $Revision: 1.14 $
  5.  *--------------------------------------------------------------
  6.  *         Copyright(c) 1992, Visual Edge Software Ltd.
  7.  *
  8.  * ALL RIGHTS RESERVED. This notice is intended as a precaution
  9.  * against inadvertent publication, and shall not be deemed to
  10.  * consitute an acknowledgment that publication has occurred
  11.  * nor to imply any waiver of confidentiality. The year included
  12.  * in the notice is the year of the creation of the work.
  13.  *--------------------------------------------------------------
  14.  * DESCRIPTION:
  15.  *            This file contains global definitions & includes.
  16.  * NOTE: Includes are dependent on typedefs so must be last.
  17.  *       THIS FILE IS A C FILE. ALL C++ DECLARATIONS SHOULD
  18.  *       BE PLACED IN vwglobal.hh
  19.  *--------------------------------------------------------------
  20.  */
  21.  
  22. #ifndef VWGLOBAL_H
  23. #define VWGLOBAL_H
  24.  
  25. #include <os.h>
  26. #include <visedge.h>
  27. #include <math.h>
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. /*
  32.  * Temporary fix. We will change the typedef's below to:
  33.  */
  34. typedef char *  VwString;
  35. typedef VwString *      VwStringTable;
  36.  
  37. /* these two should no longer be used, VwString and VwStringTable should
  38.  * be used instead.
  39.  */
  40. typedef char*   String;
  41. typedef String* StringTable;
  42.  
  43. #endif
  44.  
  45. typedef status_t        VwStatus;
  46. typedef float           VwSingle;
  47. typedef long            VwLong;
  48. #ifndef _OS2
  49. typedef OsWord          VwInt;
  50. #else
  51. typedef int             VwInt;
  52. #endif
  53. typedef OsWord          VwBool;
  54. typedef OsWord          VwEnum;
  55.  
  56. #ifndef VwTrue
  57. #define VwTrue          -1
  58. #endif
  59.  
  60. #ifndef VwFalse
  61. #define VwFalse          0
  62. #endif
  63.  
  64. #define VW_BORDER_WIDTH 2       /* Fixed single border width in pixels */
  65.  
  66. #define VW_USEABLE_DEF_X        0
  67. #define VW_USEABLE_DEF_Y        0
  68. #define VW_USEABLE_DEF_HEIGHT   492
  69. #define VW_USEABLE_DEF_WIDTH    1142
  70.  
  71. #define VW_DEF_X        ((-MAXFLOAT) / 10.0)
  72. #define VW_DEF_Y        VW_DEF_X
  73. #define VW_DEF_WIDTH    VW_DEF_X
  74. #define VW_DEF_HEIGHT   VW_DEF_X
  75.  
  76. #define VW_IS_ARG_SMALLER(x)    ((VW_DEF_X-(MAXFLOAT / 100000))< (x))
  77. #define VW_IS_ARG_BIGGER(x)     ((VW_DEF_X+(MAXFLOAT / 100000))> (x))
  78. #define VW_IS_ARG_DEFAULT(x)    (((x)<0) && VW_IS_ARG_SMALLER(x) && VW_IS_ARG_BIGGER(x))
  79.  
  80. #define VW_SYS_COLOR(y)         (0x80000000L|y)
  81.  
  82. #define TwipsPerInch    1440.0F
  83. #define MmPerInch       25.4F
  84.  
  85. #define VW_RETURN_IN_ASCII 0x0D
  86. #define VW_ESCAPE_IN_ASCII 0x1B
  87.  
  88. #define VW_USERMODE_RUN        0x00
  89. #define VW_USERMODE_BREAK    0x01
  90. #define VW_USERMODE_DESIGN    0x02
  91.  
  92. #ifdef __cplusplus
  93. }
  94. #endif
  95.  
  96. #endif
  97.