added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / intuition / sghooks.h
blobef1c0d4a6e148a244b66c254178bdd36e737ce90
1 #ifndef INTUITION_SGHOOKS_H
2 #define INTUITION_SGHOOKS_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Include file for GTYP_STRGADGET gadgets.
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
16 struct StringExtend
18 struct TextFont *Font;
19 UBYTE Pens[2];
20 UBYTE ActivePens[2];
21 ULONG InitialModes;
22 struct Hook *EditHook;
23 STRPTR WorkBuffer;
24 ULONG Reserved[4];
27 struct SGWork
29 struct Gadget *Gadget;
30 struct StringInfo *StringInfo;
31 STRPTR WorkBuffer;
32 STRPTR PrevBuffer;
33 ULONG Modes;
34 struct InputEvent *IEvent;
35 UWORD Code;
36 WORD BufferPos;
37 WORD NumChars;
38 ULONG Actions;
39 LONG LongInt;
40 struct GadgetInfo *GadgetInfo;
41 UWORD EditOp;
44 #define EO_NOOP (0x0001)
45 #define EO_DELBACKWARD (0x0002)
46 #define EO_DELFORWARD (0x0003)
47 #define EO_MOVECURSOR (0x0004)
48 #define EO_ENTER (0x0005)
49 #define EO_RESET (0x0006)
50 #define EO_REPLACECHAR (0x0007)
51 #define EO_INSERTCHAR (0x0008)
52 #define EO_BADFORMAT (0x0009)
53 #define EO_BIGCHANGE (0x000A)
54 #define EO_UNDO (0x000B)
55 #define EO_CLEAR (0x000C)
56 #define EO_SPECIAL (0x000D)
58 #define SGM_REPLACE (1L << 0)
59 #define SGM_FIXEDFIELD (1L << 1)
60 #define SGM_NOFILTER (1L << 2)
61 #define SGM_EXITHELP (1L << 7)
63 /* For internal use */
64 #define SGM_NOCHANGE (1L << 3)
65 #define SGM_NOWORKB (1L << 4)
66 #define SGM_CONTROL (1L << 5)
67 #define SGM_LONGINT (1L << 6)
69 #define SGA_USE (0x1L)
70 #define SGA_END (0x2L)
71 #define SGA_BEEP (0x4L)
72 #define SGA_REUSE (0x8L)
73 #define SGA_REDISPLAY (0x10L)
74 #define SGA_NEXTACTIVE (0x20L)
75 #define SGA_PREVACTIVE (0x40L)
77 #define SGH_KEY (1L)
78 #define SGH_CLICK (2L)
80 #endif /* INTUITION_SGHOOKS_H */