home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / guienv376.lha / GUIEnvironment / SASC / Include / geclass.h next >
Encoding:
C/C++ Source or Header  |  1994-12-16  |  5.1 KB  |  150 lines

  1. #ifndef LIBRARIES_GECLASS_H
  2. #define LIBRARIES_GECLASS_H TRUE
  3.  
  4. /* ***************************************************************************
  5.  
  6. $RCSfile: geclass.h $
  7.  
  8. $Revision: 1.2 $
  9.     $Date: 1994/12/16 17:12:55 $
  10.  
  11.     Interface module for the GUIEnvironment Class Library
  12.  
  13.     SAS/C V6.51
  14.  
  15.   Copyright © 1994, Carsten Ziegeler
  16.                     Augustin-Wibbelt-Str.7, 33106 Paderborn, Germany
  17.  
  18. ************************************************************************** */
  19.  
  20. #ifndef EXEC_TYPES_H
  21. #include <exec/types.h>
  22. #endif
  23. #include <utility/tagitem.h>
  24.  
  25. #define GEClassName "geclass.library"
  26. #define GEClassMinVersion 37           /* Revision 5 */
  27.  
  28.  
  29. /* ======================================================================= */
  30. /*                       The Get File Image Class                          */
  31. /* ======================================================================= */
  32.  
  33. #define GETFILEICLASS "getfileiclass"
  34.  
  35. /* Default dimension: */
  36.  
  37. #define GFI_Width  20
  38. #define GFI_Height 14
  39.  
  40.  
  41. /* ======================================================================= */
  42. /*                       The TextField Gadget Class                        */
  43. /* ======================================================================= */
  44.  
  45. /*
  46.  * TextFieldGadget V2.0
  47.  *
  48.  * Copyright © 1994 Mark Thomas
  49.  *
  50.  */
  51.  
  52. #define TEXTFIELDGCLASS  "textfieldgclass"
  53.  
  54. #ifndef TEXTFIELD_GADGET_H
  55. #define TEXTFIELD_GADGET_H
  56.  
  57. #define TEXTFIELD_TAG_BASE (TAG_USER + 0x04000000)
  58.  
  59. /* V1 attributes */
  60.  
  61. #define TEXTFIELD_Text           (TEXTFIELD_TAG_BASE + 1)
  62. #define TEXTFIELD_InsertText     (TEXTFIELD_TAG_BASE + 2)
  63. #define TEXTFIELD_TextFont       (TEXTFIELD_TAG_BASE + 3)
  64. #define TEXTFIELD_Delimiters     (TEXTFIELD_TAG_BASE + 4)
  65. #define TEXTFIELD_Top            (TEXTFIELD_TAG_BASE + 5)
  66. #define TEXTFIELD_BlockCursor    (TEXTFIELD_TAG_BASE + 6)
  67. #define TEXTFIELD_Size           (TEXTFIELD_TAG_BASE + 7)
  68. #define TEXTFIELD_Visible        (TEXTFIELD_TAG_BASE + 8)
  69. #define TEXTFIELD_Lines          (TEXTFIELD_TAG_BASE + 9)
  70. #define TEXTFIELD_NoGhost        (TEXTFIELD_TAG_BASE + 10)
  71. #define TEXTFIELD_MaxSize        (TEXTFIELD_TAG_BASE + 11)
  72. #define TEXTFIELD_Border         (TEXTFIELD_TAG_BASE + 12)
  73. #define TEXTFIELD_TextAttr       (TEXTFIELD_TAG_BASE + 13)
  74. #define TEXTFIELD_FontStyle      (TEXTFIELD_TAG_BASE + 14)
  75. #define TEXTFIELD_Up             (TEXTFIELD_TAG_BASE + 15)
  76. #define TEXTFIELD_Down           (TEXTFIELD_TAG_BASE + 16)
  77. #define TEXTFIELD_Alignment      (TEXTFIELD_TAG_BASE + 17)
  78. #define TEXTFIELD_VCenter        (TEXTFIELD_TAG_BASE + 18)
  79. #define TEXTFIELD_RuledPaper     (TEXTFIELD_TAG_BASE + 19)
  80. #define TEXTFIELD_PaperPen       (TEXTFIELD_TAG_BASE + 20)
  81. #define TEXTFIELD_InkPen         (TEXTFIELD_TAG_BASE + 21)
  82. #define TEXTFIELD_LinePen        (TEXTFIELD_TAG_BASE + 22)
  83. #define TEXTFIELD_UserAlign      (TEXTFIELD_TAG_BASE + 23)
  84. #define TEXTFIELD_Spacing        (TEXTFIELD_TAG_BASE + 24)
  85. #define TEXTFIELD_ClipStream     (TEXTFIELD_TAG_BASE + 25)
  86. #define TEXTFIELD_ClipStream2    (TEXTFIELD_TAG_BASE + 26)
  87. #define TEXTFIELD_UndoStream     (TEXTFIELD_TAG_BASE + 26)
  88. #define TEXTFIELD_BlinkRate      (TEXTFIELD_TAG_BASE + 27)
  89. #define TEXTFIELD_Inverted       (TEXTFIELD_TAG_BASE + 28)
  90. #define TEXTFIELD_Partial        (TEXTFIELD_TAG_BASE + 29)
  91. #define TEXTFIELD_CursorPos      (TEXTFIELD_TAG_BASE + 30)
  92.  
  93. /* V2 attributes */
  94.  
  95. #define TEXTFIELD_ReadOnly       (TEXTFIELD_TAG_BASE + 31)
  96. #define TEXTFIELD_Modified       (TEXTFIELD_TAG_BASE + 32)
  97. #define TEXTFIELD_AcceptChars    (TEXTFIELD_TAG_BASE + 33)
  98. #define TEXTFIELD_RejectChars    (TEXTFIELD_TAG_BASE + 34)
  99. #define TEXTFIELD_PassCommand    (TEXTFIELD_TAG_BASE + 35)
  100. #define TEXTFIELD_LineLength     (TEXTFIELD_TAG_BASE + 36)
  101. #define TEXTFIELD_MaxSizeBeep    (TEXTFIELD_TAG_BASE + 37)
  102. #define TEXTFIELD_DeleteText     (TEXTFIELD_TAG_BASE + 38)
  103. #define TEXTFIELD_SelectSize     (TEXTFIELD_TAG_BASE + 39)
  104. #define TEXTFIELD_Copy           (TEXTFIELD_TAG_BASE + 40)
  105. #define TEXTFIELD_CopyAll        (TEXTFIELD_TAG_BASE + 41)
  106. #define TEXTFIELD_Cut            (TEXTFIELD_TAG_BASE + 42)
  107. #define TEXTFIELD_Paste          (TEXTFIELD_TAG_BASE + 43)
  108. #define TEXTFIELD_Erase          (TEXTFIELD_TAG_BASE + 44)
  109. #define TEXTFIELD_Undo           (TEXTFIELD_TAG_BASE + 45)
  110.  
  111. /*
  112.  * TEXTFIELD_Border
  113.  *
  114.  * See docs for width and height sizes for these borders
  115.  */
  116.  
  117. #define TEXTFIELD_BORDER_NONE              0
  118. #define TEXTFIELD_BORDER_BEVEL             1
  119. #define TEXTFIELD_BORDER_DOUBLEBEVEL       2
  120.  
  121. /*
  122.  * TEXTFIELD_Alignment
  123.  */
  124.  
  125. #define TEXTFIELD_ALIGN_LEFT             0
  126. #define TEXTFIELD_ALIGN_CENTER           1
  127. #define TEXTFIELD_ALIGN_RIGHT            2
  128.  
  129. #endif
  130.  
  131. /* ======================================================================= */
  132. /*                            Library functions                            */
  133. /* ======================================================================= */
  134.  
  135. /* --------- protos ------------- */
  136.  
  137. APTR GetObjectA( APTR, APTR, struct TagItem * );
  138. APTR GetObject( APTR, APTR, ULONG, ... );
  139. VOID FreeObject( APTR);
  140.  
  141. /* --------- pragmas ------------ */
  142.  
  143. extern struct Library *GEClassBase;
  144.  
  145. #pragma libcall GEClassBase GetObjectA 1e A9803
  146. #pragma tagcall GEClassBase GetObject  1e A9803
  147. #pragma libcall GEClassBase FreeObject 24 801
  148.  
  149. #endif /* LIBRARIES_GECLASS_H */
  150.