home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / code / wxwin140 / include / common.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-19  |  3.7 KB  |  151 lines

  1. /*
  2.  * File:     common.h
  3.  * Purpose:  Declarations/definitions common to all wx source files
  4.  *
  5.  *                       wxWindows 1.40
  6.  * Copyright (c) 1993 Artificial Intelligence Applications Institute,
  7.  *                   The University of Edinburgh
  8.  *
  9.  *                     Author: Julian Smart
  10.  *                       Date: 14-4-93
  11.  *
  12.  * Permission to use, copy, modify, and distribute this software and its
  13.  * documentation for any purpose is hereby granted without fee, provided
  14.  * that the above copyright notice, author statement and this permission
  15.  * notice appear in all copies of this software and related documentation.
  16.  *
  17.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS,
  18.  * IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
  19.  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  * IN NO EVENT SHALL THE ARTIFICIAL INTELLIGENCE APPLICATIONS INSTITUTE OR THE
  22.  * UNIVERSITY OF EDINBURGH BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR
  23.  * CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM
  24.  * LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF
  25.  * DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
  26.  * THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27.  */
  28.  
  29. #ifndef wx_commonh
  30. #define wx_commonh
  31.  
  32. #include <stddef.h>
  33. #include <string.h>
  34.  
  35. #ifdef wx_xview
  36. #define wx_x
  37. #endif
  38.  
  39. #ifdef wx_motif
  40. #define wx_x
  41. #endif
  42.  
  43. #ifdef wx_motif
  44. typedef int Bool;
  45. #define TRUE 1
  46. #define FALSE 0
  47. #endif
  48.  
  49. #ifdef wx_xview
  50. #define Bool int
  51. #define True 1
  52. #define False 0
  53. #define TRUE 1
  54. #define FALSE 0
  55. #define Bool_DEFINED
  56. #endif
  57.  
  58. #ifdef wx_msw
  59. #ifndef Bool
  60. typedef int Bool;
  61. #endif
  62. #ifndef TRUE
  63. #define TRUE  1
  64. #define FALSE 0
  65. #endif
  66. #endif
  67.  
  68. #define wxSINGLE           0
  69. #define wxMULTIPLE         1
  70.  
  71. // Window status flags
  72. #define wxBORDER           1
  73. #define wxRETAINED         2
  74. #define wxDLG              4
  75.  
  76. // Mouse button codes
  77. #define wxLEFTDOWN         40
  78. #define wxLEFTUP           41
  79. #define wxRIGHTDOWN        42
  80. #define wxRIGHTUP          43
  81. #define wxMIDDLEDOWN       44
  82. #define wxMIDDLEUP         45
  83.  
  84. // Event actions
  85. #define wxSELECT           50
  86. #define wxDESELECT         51
  87. #define wxCLICK            52
  88. #define wxDRAG             53
  89. #define wxMOVE             54
  90. #define wxDOUBLECLICK      55
  91. #define wxREPAINT          56
  92. #define wxRESIZE           57
  93. #define wxASCII            58
  94.  
  95. #define wxDEFAULT          70
  96. #define wxDECORATIVE       71
  97. #define wxROMAN            72
  98. #define wxSCRIPT           73
  99. #define wxSWISS            74
  100. #define wxMODERN           75
  101.  
  102. #define wxVARIABLE         80
  103. #define wxFIXED            81
  104.  
  105. #define wxNORMAL           90
  106. #define wxLIGHT            91
  107. #define wxBOLD             92
  108.  
  109. // Also wxNORMAL for normal (non-italic text)
  110. #define wxITALIC           93
  111. #define wxSLANT            94
  112.  
  113. // Pen styles
  114. #define wxSOLID            100
  115. #define wxDOT              101
  116. #define wxLONG_DASH        102
  117. #define wxSHORT_DASH       103
  118. #define wxDOT_DASH         104
  119.  
  120. #define wxTRANSPARENT      105
  121.  
  122. // Brush styles - not implemented
  123. #define wxSTIPPLE          110
  124.  
  125. // Logical ops
  126. #define wxXOR              1
  127. #define wxINVERT           2
  128. #define wxOR_REVERSE       3
  129. #define wxAND_REVERSE      4
  130. #define wxCOPY             5
  131.  
  132. // Directions
  133. #define wxHORIZONTAL      1
  134. #define wxVERTICAL        2
  135. #define wxBOTH            3
  136.  
  137. // Dialog specifiers/return values
  138. #define wxOK                     1
  139. #define wxYES_NO                 2
  140. #define wxCANCEL                 4
  141. #define wxYES                    8
  142. #define wxNO                    16
  143.  
  144. #define wxICON_EXCLAMATION      32
  145. #define wxICON_HAND             64
  146. #define wxICON_QUESTION        128
  147.  
  148. // Colours - see wx_gdi.cc for database
  149.  
  150. #endif // wx_commonh
  151.