home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / Sources / FWGConst.cpp < prev    next >
Encoding:
Text File  |  1995-11-08  |  4.2 KB  |  122 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWGConst.cpp
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWOS.hpp"
  11.  
  12. #ifndef FWGCONST_H
  13. #include "FWGConst.h"
  14. #endif
  15.  
  16. #ifndef FWSTRING_H
  17. #include "FWString.h"
  18. #endif
  19.  
  20. #ifndef FWCOLOR_H
  21. #include "FWColor.h"
  22. #endif
  23.  
  24. #ifndef FWINK_H
  25. #include "FWInk.h"
  26. #endif
  27.  
  28. #ifndef FWSTYLE_H
  29. #include "FWStyle.h"
  30. #endif
  31.  
  32. #ifndef FWFONT_H
  33. #include "FWFont.h"
  34. #endif
  35.  
  36. //========================================================================================
  37. //    RunTime Info
  38. //========================================================================================
  39.  
  40. #if FW_LIB_EXPORT_PRAGMAS
  41. #pragma lib_export on
  42. #endif
  43.  
  44. #ifdef FW_BUILD_MAC
  45. #pragma segment FWGraphics_Constants
  46. #endif
  47.  
  48. //========================================================================================
  49. //    Constants
  50. //========================================================================================
  51.  
  52. // ----- Standard Colors -----
  53.  
  54. // I only define colors that are common
  55.  
  56. #ifdef FW_BUILD_WIN 
  57. const FW_CColor    FW_kRGBBlack(0, 0, 0);
  58. const FW_CColor    FW_kRGBWhite(255, 255, 255);
  59. const FW_CColor    FW_kRGBRed(255, 0, 0);
  60. const FW_CColor    FW_kRGBYellow(255, 255, 0);
  61. const FW_CColor    FW_kRGBBlue(0, 0, 192);
  62. const FW_CColor    FW_kRGBGreen(0, 255, 0);
  63. const FW_CColor    FW_kRGBBrown(128, 128, 0);
  64. const FW_CColor    FW_kRGBPurple(255, 0, 255);
  65. const FW_CColor    FW_kRGBLightBlue(0, 0, 255);
  66. const FW_CColor    FW_kRGBGray(128, 128, 128);
  67. const FW_CColor    FW_kRGBLightGray(192, 192, 192);
  68. const FW_CColor    FW_kRGBDarkGray(64, 64, 64);
  69. #endif
  70.  
  71. #ifdef FW_BUILD_MAC
  72. const FW_CColor FW_kRGBBlack(0x0000, 0x0000, 0x0000);
  73. const FW_CColor FW_kRGBWhite(0xFFFF, 0xFFFF, 0xFFFF);
  74. const FW_CColor FW_kRGBRed(0xDDDD, 0x0000, 0x0000);
  75. const FW_CColor FW_kRGBYellow(0xFFFF, 0xFFFF, 0x0000);
  76. const FW_CColor FW_kRGBBlue(0x0000, 0x0000, 0xDDDD);
  77. const FW_CColor FW_kRGBGreen(0x0000, 0xEEEE, 0x0000);
  78. const FW_CColor FW_kRGBBrown(0x9999, 0x6666, 0x0000);
  79. const FW_CColor FW_kRGBPurple(0x6666, 0x0000, 0x9999);
  80. const FW_CColor FW_kRGBLightBlue(0x0000, 0x9999, 0xFFFF);
  81. const FW_CColor FW_kRGBGray(0x8080, 0x8080, 0x8080);
  82. const FW_CColor FW_kRGBLightGray(0xC0C0, 0xC0C0, 0xC0C0);
  83. const FW_CColor FW_kRGBDarkGray    (0x4040, 0x4040, 0x4040);
  84. #endif
  85.  
  86. // ----- Standard patterns -----
  87.  
  88. // [HLX] should be moved to resource
  89.  
  90. const FW_BitPattern FW_kBlackPat = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};            // black
  91. const FW_BitPattern FW_kWhitePat = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};            // White
  92. const FW_BitPattern FW_kGrayPat = {0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55};                // Gray
  93. const FW_BitPattern FW_kLightGrayPat = {0x88, 0x22, 0x88, 0x22, 0x88, 0x22, 0x88, 0x22};        // LightGray
  94. const FW_BitPattern FW_kDarkGrayPat = {0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD};            // DarkGray
  95. const FW_BitPattern FW_kHorizontalPat = {0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00};        // Horizontal
  96. const FW_BitPattern FW_kVerticalPat = {0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11};            // Vertical
  97. const FW_BitPattern FW_kFDiagonalPat = {0x88, 0x44, 0x22, 0x11, 0x88, 0x44, 0x22, 0x11};        // FDiagonal
  98. const FW_BitPattern FW_kBDiagonalPat = {0x11, 0x22, 0x44, 0x88, 0x11, 0x22, 0x44, 0x88};        // DDiagonal
  99. const FW_BitPattern FW_kCrossPat = {0x88, 0x88, 0x88, 0xFF, 0x88, 0x88, 0x88, 0xFF};            // Cross
  100. const FW_BitPattern FW_kDiagCrossPat = {0x88, 0x55, 0x22, 0x55, 0x88, 0x55, 0x22, 0x55};        // DiagCross
  101. const FW_BitPattern FW_kAntPat = {0xEE, 0x77, 0xBB, 0xDD, 0xEE, 0x77, 0xBB, 0xDD};                // Ant
  102.  
  103. // ----- Font Names -----
  104.  
  105. #ifdef FW_BUILD_MAC
  106. const FW_CString32    FW_kSystemFont("systemFont");
  107. const FW_CString32    FW_kDefaultFont("applFont");
  108. const FW_CString32    FW_kHelvetica("Helvetica");
  109. const FW_CString32    FW_kTimes("Times");
  110. const FW_CString32    FW_kCourier("Courier");
  111. const FW_CString32    FW_kPalatino("Palatino");
  112. #endif
  113.  
  114. #ifdef FW_BUILD_WIN
  115. const FW_CString32    FW_kSystemFont("System");
  116. const FW_CString32    FW_kDefaultFont("System");
  117. const FW_CString32    FW_kHelvetica("Arial");
  118. const FW_CString32    FW_kTimes("Times New Roman");
  119. const FW_CString32    FW_kCourier("Courier New");
  120. const FW_CString32    FW_kPalatino("Palatino");
  121. #endif
  122.