home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / DEMO / RIM22 / MACROS / EVENT.H < prev    next >
Text File  |  1994-01-25  |  3KB  |  84 lines

  1. /*
  2. ** Macro header: event.h
  3. **
  4. ** Copyright (C) 1993 Brian L. Smith
  5. ** Copyright (C) 1993 RimStar Technology, Inc.
  6. ** All rights reserved internationally.
  7. ** Unlicensed use is a violation of applicable laws.
  8. **
  9. ** This source code is provided to licensed users of RimStar's products
  10. ** for the purpose of allowing the user to customize and/or enhance RimStar's
  11. ** products. The source code remains the property of the copyright holders
  12. ** with all rights reserved internationally.
  13. ** Any modifications to the source code are considered derivative works and
  14. ** all rights thereto are reserved to the copyright holders except
  15. ** that the purchaser may use the derivitive work in the same manner
  16. ** as permitted by the license governing the unmodified product.
  17. ** Distribution in any manner of any part of the original source code,
  18. ** whether in source or object form, is expressly prohibited without the
  19. ** express written permission of the copyright holders.
  20. **
  21. */
  22.  
  23.  
  24. #ifndef EVENT_H_INCL
  25.     #define EVENT_H_INCL 1
  26.  
  27.     #define EVENT_ABOUT_TO_READ        0x0001
  28.     #define EVENT_ABOUT_TO_WRITE        0x0002
  29.     #define EVENT_BUFFER_CREATED        0x0003
  30.     #define EVENT_BUFFER_CHANGE        0x0004
  31.     #define EVENT_BUFFER_CURRENT        0x0005
  32.     #define EVENT_BUFFER_DELETE        0x0006
  33.     #define EVENT_BUFFER_RELOADED        0x0007
  34.     #define EVENT_BUFFER_SAVED            0x0008
  35.     #define EVENT_BUFFER_ZAPPED        0x0009
  36.     #define EVENT_CHAR_INSERTED        0x000a
  37.     #define EVENT_EDIT_READ_ONLY        0x000b
  38.     #define EVENT_FILE_READ                0x000c
  39.     #define EVENT_FILENAME_CHANGED    0x000d
  40.     #define EVENT_FONT_CHANGED            0x000e
  41.     #define EVENT_INSERT_CHAR            0x000f
  42.     #define EVENT_INSERT_NL                0x0010
  43.     #define EVENT_KEY_PRESSED            0x0011
  44.     #define EVENT_LINES_DELETED        0x0012
  45.     #define EVENT_LINES_INSERTED        0x0013
  46.     #define EVENT_MOUSE                    0x0014
  47.     #define EVENT_NEW_FILE                0x0015
  48.     #define EVENT_NL_INSERTED            0x0016
  49.     #define EVENT_NO_MEMORY                0x0017
  50.     #define EVENT_ONE_SECOND            0x0018
  51.     #define EVENT_SHUTDOWN                0x0019
  52.     #define EVENT_UNASSIGNED_KEY        0x001a
  53.     #define EVENT_WINDOW_CHANGE        0x001b
  54.     #define EVENT_WINDOW_CURRENT        0x001c
  55.   #ifdef WINDOWS
  56.     #define EVENT_ONIDLE                    0x001d
  57.     #define EVENT_PROMPT_KEY            0x001f
  58.     #define EVENT_PROMPT_CHANGE        0x0020
  59.   #endif
  60.     #define EVENT_PROCESS_COMPLETE    0x001e
  61.     #define EVENT_USER                    0x8000  /* 1st user defined event */
  62.  
  63.     /* Event flags */
  64.     #define EVENT_NORMAL        0x0000
  65.     #define EVENT_ONLY        0x0001
  66.     #define EVENT_FIRST        0x0002
  67.     #define EVENT_LAST        0x0004
  68.     #define EVENT_PERMANENT    0x0008
  69.     #define EVENT_DISABLED    0x8000
  70.  
  71.     /* Pointer to this structure passed with EVENT_FONT_CHANGED */
  72.     struct _sys_fontsize {    /* sizes in pixels */
  73.         SHORT    cxChar;    /* width of a character  */
  74.         SHORT    cyChar;    /* height of a character */
  75.         SHORT    cyDesc;    /* height of descender    */
  76.     };
  77.  
  78. #endif /* ifndef EVENT_H_INCL */
  79.  
  80.  
  81. /*
  82. ** End header: event.h
  83. */
  84.