home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Table / Sources / Constant.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.2 KB  |  43 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Constant.h
  4. //    Release Version:    $ ODF 1 $ 
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef CONSTANT_H
  11. #define CONSTANT_H
  12.  
  13. #ifndef FWFXMATH_H
  14. #include "FWFxMath.h"
  15. #endif
  16.  
  17. // ----- Default number of cells -----
  18. const ODULong kMaxCols = 32;
  19. const ODULong kMaxRows = 32;
  20.  
  21. // ----- Default size of cell -----
  22. const FW_Fixed kDefaultCellWidth  = FW_IntToFixed(80);
  23. const FW_Fixed kDefaultCellHeight = FW_IntToFixed(80);
  24.  
  25. typedef short ETableLoc;
  26. const ETableLoc kTLNone = -1;
  27. const ETableLoc kTLCell = 0;
  28. const ETableLoc kTLLeftBorder = 1;
  29. const ETableLoc kTLRightBorder = 2;
  30. const ETableLoc kTLTopBorder = 4;
  31. const ETableLoc kTLBottomBorder = 8;
  32.  
  33. // ----- Hit-test constants -----
  34. const FW_Fixed kPenWidth  = FW_IntToFixed(1);
  35. const FW_Fixed kPenHeight = FW_IntToFixed(1);
  36.  
  37. const FW_Fixed kVMargin = FW_IntToFixed(4); // width of vertical line margin
  38. const FW_Fixed kHMargin = FW_IntToFixed(4); // height of horz. line margin
  39.  
  40. const FW_Fixed kBorderWidth  = kPenWidth;
  41. const FW_Fixed kBorderHeight = kPenHeight;
  42.  
  43. #endif