home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / intuition / sghooks.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.7 KB  |  120 lines

  1. #ifndef INTUITION_SGHOOKS_H
  2. #define INTUITION_SGHOOKS_H TRUE
  3. /*
  4. ** $Filename: intuition/sghooks.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.5 $
  7. ** $Date: 91/11/08 $
  8. **
  9. ** string gadget extensions and hooks
  10. **
  11. ** (C) Copyright 1988-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. struct StringExtend {
  20.  
  21.  struct TextFont *Font; 
  22.  UBYTE Pens[2]; 
  23.  UBYTE ActivePens[2]; 
  24.  
  25.  
  26.  ULONG InitialModes; 
  27.  struct Hook *EditHook; 
  28.  UBYTE *WorkBuffer; 
  29.  
  30.  ULONG Reserved[4]; 
  31. };
  32.  
  33. struct SGWork {
  34.  
  35.  struct Gadget *Gadget; 
  36.  struct StringInfo *StringInfo; 
  37.  UBYTE *WorkBuffer; 
  38.  UBYTE *PrevBuffer; 
  39.  ULONG Modes; 
  40.  
  41.  
  42.  struct InputEvent *IEvent; 
  43.  UWORD Code; 
  44.  WORD BufferPos; 
  45.  WORD NumChars;
  46.  ULONG Actions; 
  47.  LONG LongInt; 
  48.  
  49.  struct GadgetInfo *GadgetInfo; 
  50.  UWORD EditOp; 
  51. };
  52.  
  53.  
  54.  
  55. #define EO_NOOP (0x0001)
  56.  
  57. #define EO_DELBACKWARD (0x0002)
  58.  
  59. #define EO_DELFORWARD (0x0003)
  60.  
  61. #define EO_MOVECURSOR (0x0004)
  62.  
  63. #define EO_ENTER (0x0005)
  64.  
  65. #define EO_RESET (0x0006)
  66.  
  67. #define EO_REPLACECHAR (0x0007)
  68.  
  69. #define EO_INSERTCHAR (0x0008)
  70.  
  71. #define EO_BADFORMAT (0x0009)
  72.  
  73. #define EO_BIGCHANGE (0x000A) 
  74.  
  75. #define EO_UNDO (0x000B) 
  76.  
  77. #define EO_CLEAR (0x000C)
  78.  
  79. #define EO_SPECIAL (0x000D) 
  80.  
  81.  
  82.  
  83.  
  84. #define SGM_REPLACE (1L << 0) 
  85.  
  86.  
  87. #define SGM_FIXEDFIELD (1L << 1) 
  88.  
  89. #define SGM_NOFILTER (1L << 2) 
  90.  
  91.  
  92. #define SGM_EXITHELP (1L << 7) 
  93.  
  94.  
  95.  
  96. #define SGM_NOCHANGE (1L << 3) 
  97. #define SGM_NOWORKB (1L << 4) 
  98. #define SGM_CONTROL (1L << 5) 
  99. #define SGM_LONGINT (1L << 6) 
  100.  
  101.  
  102. #define SGA_USE (0x1L) 
  103. #define SGA_END (0x2L) 
  104. #define SGA_BEEP (0x4L) 
  105. #define SGA_REUSE (0x8L) 
  106. #define SGA_REDISPLAY (0x10L) 
  107.  
  108.  
  109. #define SGA_NEXTACTIVE (0x20L) 
  110. #define SGA_PREVACTIVE (0x40L) 
  111.  
  112.  
  113.  
  114. #define SGH_KEY (1L) 
  115. #define SGH_CLICK (2L) 
  116.  
  117.  
  118.  
  119. #endif
  120.