home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / CALIMG.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  2.0 KB  |  122 lines

  1. #define CALIMG_OPH
  2.  
  3. #ifndef OLIB_OPH
  4. #include <sdk\olib>
  5. #endif
  6.  
  7. #ifndef WLIB_OPH
  8. #include <sdk\wlib>
  9. #endif
  10.  
  11. /* Constants for calimg */
  12.  
  13. #define CI_MAX_MONTH 12
  14. #define CI_GRIDY TRUE
  15. #define CI_GRIDX FALSE
  16. #define CALIMG_CURSOR_NO_FLASH 0x01
  17. #define CALIMG_DOW_EVERY_ROW 0x02
  18. #define CALIMG_FONT_DATA_KNOWN 0x04
  19. #define CALIMG_LEFT 0x00
  20. #define CALIMG_HOME 0x01
  21. #define CALIMG_PREV_DAY 0x02
  22. #define CALIMG_PREV_MONTH 0x03
  23. #define CALIMG_RIGHT 0x04
  24. #define CALIMG_END 0x05
  25. #define CALIMG_NEXT_DAY 0x06
  26. #define CALIMG_NEXT_MONTH 0x07
  27. #define CALIMG_UP 0x08
  28. #define CALIMG_PAGEUP 0x09
  29. #define CALIMG_PREV_WEEK 0x0A
  30. #define CALIMG_PREV_YEAR 0x0B
  31. #define CALIMG_DOWN 0x0C
  32. #define CALIMG_PAGEDN 0x0D
  33. #define CALIMG_NEXT_WEEK 0x0E
  34. #define CALIMG_NEXT_YEAR 0x0F
  35. #define CALIMG_GOTO_TODAY 0x10
  36. #define CALIMG_WEST 0x01
  37. #define CALIMG_EAST 0x02
  38. #define CALIMG_NORTH 0x03
  39. #define CALIMG_SOUTH 0x04
  40. #define CALIMG_ADJ_DAY 0x01
  41. #define CALIMG_ADJ_MONTH 0x02
  42. #define CALIMG_ADJ_YEAR 0x04
  43.  
  44. /* Types for calimg */
  45.  
  46. STRUCT CI_EXT_FONT
  47.     title_ascent#
  48.     title_lht#
  49.     dow_ascent#
  50.     dow_lht#
  51.     mth_ascent#
  52.     mth_lht#
  53.     day_ascent#
  54.     day_lht#
  55.     daygapx#
  56.     daywidth#
  57. ENDS
  58.  
  59. STRUCT CI_FONT_DATA
  60.     fid%
  61.     style%
  62.     leading%
  63. ENDS
  64.  
  65. STRUCT IN_CALIMG
  66.     wid%
  67.     width%
  68.     tl#(SIZEOF(P_POINT))
  69.     mrow#
  70.     mcol#
  71.     flags%
  72.     title#(SIZEOF(CI_FONT_DATA))
  73.     month#(SIZEOF(CI_FONT_DATA))
  74.     dow#(SIZEOF(CI_FONT_DATA))
  75.     day#(SIZEOF(CI_FONT_DATA))
  76.     daygap%
  77.     mthgapx#
  78.     hscrlm#
  79.     startm%
  80.     days&
  81.     font#(SIZEOF(CI_EXT_FONT))
  82. ENDS
  83.  
  84. STRUCT CI_CURSOR
  85.     year#
  86.     month#
  87.     pos#(SIZEOF(P_POINT))
  88. ENDS
  89.  
  90. STRUCT I_DATE
  91.     year%
  92.     month%
  93.     day%
  94. ENDS
  95.  
  96. /* Property of calimg */
  97.  
  98. STRUCT PRS_CALIMG
  99.     rect#(OPPEVAL(SIZEOF(P_RECT)*12))
  100.     title_rect#(SIZEOF(P_RECT))
  101.     crs#(SIZEOF(CI_CURSOR))
  102.     day#
  103.     startOfWeek#
  104.     thisyear#
  105.     thismth#
  106.     thisday#
  107.     ystart#
  108.     bwidth#
  109.     filler#
  110.     dayNameAbbrev#(7)
  111.     deftitle#(3)
  112.     title%
  113.     emphasised%
  114.     img#(SIZEOF(IN_CALIMG))
  115.     bmid%
  116. ENDS
  117.  
  118. STRUCT PR_CALIMG
  119.     root#(SIZEOF(PRS_ROOT))
  120.     calimg#(SIZEOF(PRS_CALIMG))
  121. ENDS
  122.