home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / libraries / gadtools.e < prev    next >
Text File  |  1995-07-05  |  5KB  |  199 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'graphics/gfx',
  7.        'graphics/rastport',
  8.        'graphics/text',
  9.        'intuition/screens'
  10.  
  11. CONST GENERIC_KIND=0,
  12.       BUTTON_KIND=1,
  13.       CHECKBOX_KIND=2,
  14.       INTEGER_KIND=3,
  15.       LISTVIEW_KIND=4,
  16.       MX_KIND=5,
  17.       NUMBER_KIND=6,
  18.       CYCLE_KIND=7,
  19.       PALETTE_KIND=8,
  20.       SCROLLER_KIND=9,
  21.       SLIDER_KIND=11,
  22.       STRING_KIND=12,
  23.       TEXT_KIND=13,
  24.       NUM_KINDS=14,
  25.       ARROWIDCMP=$400068,
  26.       BUTTONIDCMP=$40,
  27.       CHECKBOXIDCMP=$40,
  28.       INTEGERIDCMP=$40,
  29.       LISTVIEWIDCMP=$400078,
  30.       MXIDCMP=$20,
  31.       NUMBERIDCMP=0,
  32.       CYCLEIDCMP=$40,
  33.       PALETTEIDCMP=$40,
  34.       SCROLLERIDCMP=$70,
  35.       SLIDERIDCMP=$70,
  36.       STRINGIDCMP=$40,
  37.       TEXTIDCMP=0
  38.  
  39. OBJECT newgadget
  40.   leftedge:INT
  41.   topedge:INT
  42.   width:INT
  43.   height:INT
  44.   gadgettext:PTR TO CHAR
  45.   textattr:PTR TO textattr
  46.   gadgetid:INT  -> This is unsigned
  47.   flags:LONG
  48.   visualinfo:LONG
  49.   userdata:LONG
  50. ENDOBJECT     /* SIZEOF=30 */
  51.  
  52. CONST PLACETEXT_LEFT=1,
  53.       PLACETEXT_RIGHT=2,
  54.       PLACETEXT_ABOVE=4,
  55.       PLACETEXT_BELOW=8,
  56.       PLACETEXT_IN=16,
  57.       NG_HIGHLABEL=$20
  58.  
  59. OBJECT newmenu
  60.   type:CHAR
  61.   pad:CHAR
  62.   label:PTR TO CHAR
  63.   commkey:PTR TO CHAR
  64.   flags:INT  -> This is unsigned
  65.   mutualexclude:LONG
  66.   userdata:LONG
  67. ENDOBJECT     /* SIZEOF=20 */
  68.  
  69. #define GTMENU_USERDATA(m)      ((m)+SIZEOF menu)
  70. #define GTMENUITEM_USERDATA(mi) ((mi)+SIZEOF menuitem)
  71. #define MENU_USERDATA(mi)       ((mi)+SIZEOF menuitem)
  72.  
  73. CONST MENU_IMAGE=$80,
  74.       NM_TITLE=1,
  75.       NM_ITEM=2,
  76.       NM_SUB=3,
  77.       IM_ITEM=$82,
  78.       IM_SUB=$83,
  79.       NM_END=0,
  80.       NM_IGNORE=$40,
  81.       NM_BARLABEL=-1,
  82.       NM_MENUDISABLED=1,
  83.       NM_ITEMDISABLED=16,
  84.       NM_COMMANDSTRING=4,
  85.       NM_FLAGMASK=$FFFFFF39,
  86.       NM_FLAGMASK_V39=$FFFFFF3D,
  87.       GTMENU_TRIMMED=1,
  88.       GTMENU_INVALID=2,
  89.       GTMENU_NOMEM=3,
  90.       MX_WIDTH=17,
  91.       MX_HEIGHT=9,
  92.       CHECKBOX_WIDTH=26,
  93.       CHECKBOX_HEIGHT=11,
  94.       GT_TAGBASE=$80080000,
  95.       GTVI_NEWWINDOW=$80080001,
  96.       GTVI_NWTAGS=$80080002,
  97.       GT_PRIVATE0=$80080003,
  98.       GTCB_CHECKED=$80080004,
  99.       GTLV_TOP=$80080005,
  100.       GTLV_LABELS=$80080006,
  101.       GTLV_READONLY=$80080007,
  102.       GTLV_SCROLLWIDTH=$80080008,
  103.       GTMX_LABELS=$80080009,
  104.       GTMX_ACTIVE=$8008000A,
  105.       GTTX_TEXT=$8008000B,
  106.       GTTX_COPYTEXT=$8008000C,
  107.       GTNM_NUMBER=$8008000D,
  108.       GTCY_LABELS=$8008000E,
  109.       GTCY_ACTIVE=$8008000F,
  110.       GTPA_DEPTH=$80080010,
  111.       GTPA_COLOR=$80080011,
  112.       GTPA_COLOROFFSET=$80080012,
  113.       GTPA_INDICATORWIDTH=$80080013,
  114.       GTPA_INDICATORHEIGHT=$80080014,
  115.       GTSC_TOP=$80080015,
  116.       GTSC_TOTAL=$80080016,
  117.       GTSC_VISIBLE=$80080017,
  118.       GTSC_OVERLAP=$80080018,
  119.       GTSL_MIN=$80080026,
  120.       GTSL_MAX=$80080027,
  121.       GTSL_LEVEL=$80080028,
  122.       GTSL_MAXLEVELLEN=$80080029,
  123.       GTSL_LEVELFORMAT=$8008002A,
  124.       GTSL_LEVELPLACE=$8008002B,
  125.       GTSL_DISPFUNC=$8008002C,
  126.       GTST_STRING=$8008002D,
  127.       GTST_MAXCHARS=$8008002E,
  128.       GTIN_NUMBER=$8008002F,
  129.       GTIN_MAXCHARS=$80080030,
  130.       GTMN_TEXTATTR=$80080031,
  131.       GTMN_FRONTPEN=$80080032,
  132.       GTBB_RECESSED=$80080033,
  133.       GT_VISUALINFO=$80080034,
  134.       GTLV_SHOWSELECTED=$80080035,
  135.       GTLV_SELECTED=$80080036,
  136.       GT_RESERVED1=$80080038,
  137.       GTTX_BORDER=$80080039,
  138.       GTNM_BORDER=$8008003A,
  139.       GTSC_ARROWS=$8008003B,
  140.       GTMN_MENU=$8008003C,
  141.       GTMX_SPACING=$8008003D,
  142.       GTMN_FULLMENU=$8008003E,
  143.       GTMN_SECONDARYERROR=$8008003F,
  144.       GT_UNDERSCORE=$80080040,
  145.       GTST_EDITHOOK=$80080037,
  146.       GTIN_EDITHOOK=$80080037,
  147.       GTMN_CHECKMARK=$80080041,
  148.       GTMN_AMIGAKEY=$80080042,
  149.       GTMN_NEWLOOKMENUS=$80080043,
  150.       GTCB_SCALED=$80080044,
  151.       GTMX_SCALED=$80080045,
  152.       GTPA_NUMCOLORS=$80080046,
  153.       GTMX_TITLEPLACE=$80080047,
  154.       GTTX_FRONTPEN=$80080048,
  155.       GTTX_BACKPEN=$80080049,
  156.       GTTX_JUSTIFICATION=$8008004A,
  157.       GTNM_FRONTPEN=$80080048,
  158.       GTNM_BACKPEN=$80080049,
  159.       GTNM_JUSTIFICATION=$8008004A,
  160.       GTNM_FORMAT=$8008004B,
  161.       GTNM_MAXNUMBERLEN=$8008004C,
  162.       GTBB_FRAMETYPE=$8008004D,
  163.       GTLV_MAKEVISIBLE=$8008004E,
  164.       GTSL_MAXPIXELLEN=$80080050,
  165.       GTSL_JUSTIFICATION=$80080051,
  166.       GTPA_COLORTABLE=$80080052,
  167.       GTTX_CLIPPED=$80080055,
  168.       GTNM_CLIPPED=$80080055,
  169.       GT_RESERVED0=$80080037,
  170.       GTJ_LEFT=0,
  171.       GTJ_RIGHT=1,
  172.       GTJ_CENTER=2,
  173.       BBFT_BUTTON=1,
  174.       BBFT_RIDGE=2,
  175.       BBFT_ICONDROPBOX=3,
  176.       INTERWIDTH=8,
  177.       INTERHEIGHT=4,
  178.       NWAY_KIND=7,
  179.       NWAYIDCMP=$40,
  180.       GTNW_LABELS=$8008000E,
  181.       GTNW_ACTIVE=$8008000F,
  182.       GADTOOLBIT=$8000,
  183.       GADTOOLMASK=$FFFF7FFF,
  184.       LV_DRAW=$202,
  185.       LVCB_OK=0,
  186.       LVCB_UNKNOWN=1,
  187.       LVR_NORMAL=0,
  188.       LVR_SELECTED=1,
  189.       LVR_NORMALDISABLED=2,
  190.       LVR_SELECTEDDISABLED=8
  191.  
  192. OBJECT lvdrawmsg
  193.   methodid:LONG
  194.   rastport:PTR TO rastport
  195.   drawinfo:PTR TO drawinfo
  196.   bounds:rectangle
  197.   state:LONG
  198. ENDOBJECT     /* SIZEOF=NONE !!! */
  199.