home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / pIntui / MClass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  3.3 KB  |  124 lines

  1. @DATABASE "pIntui/MClass.h"
  2. @MASTER   "Work2:AD/IInc/pIntui/MClass.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:35:09
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "pIntui/MClass.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"pIntui/MClass.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_MenuMethod" LINK "pIntui/MClass.h/File" 21}
  16.  
  17. @ENDNODE
  18. @NODE File "pIntui/MClass.h"
  19. #ifndef __INC_POS_PINTUI_MCLASS_H
  20. #define __INC_POS_PINTUI_MCLASS_H
  21. /*******************************************************************
  22.  Includes Release 24
  23.  (C) Copyright 1995-1997 proDAD
  24.      All Rights Reserved
  25.  
  26.  $AUT Holger Burkarth
  27.  $DAT >>MClass.h<<   03 Nov 1996    13:25:22 - (C) ProDAD
  28. *******************************************************************/
  29. #ifndef __INC_POS_PINTUI_ICLASS_H
  30. #include <@{"pIntui/IClass.h" LINK "pIntui/IClass.h/File"}>
  31. #endif
  32. #ifndef __INC_POS_PLAYER_RECT_H
  33. #include <@{"pLayer/Rect.h" LINK "pLayer/Rect.h/File"}>
  34. #endif
  35.  
  36.  
  37. /*----------------------------------
  38. -----------------------------------*/
  39. struct pOS_MenuMethod
  40. {
  41.   @{"ULONG" LINK "pExec/Types.h/File" 91}  imth_Method;
  42.  
  43.   union
  44.     struct /* ICLMTH_New */
  45.             @{"ULONG" LINK "pExec/Types.h/File" 91}               *imnw_Pad;
  46.       const @{"struct pOS_TagItem" LINK "pUtil/TagItem.h/File" 19}  *imnw_Tags;
  47.     } imth_New;
  48.  
  49.     /* ICLMTH_Dispose */
  50.  
  51.     struct /* ICLMTH_Set */
  52.       const @{"struct pOS_IClassInfo" LINK "pIntui/ICI.h/File" 18} *imst_Info;
  53.       const @{"struct pOS_TagItem" LINK "pUtil/TagItem.h/File" 19}    *imst_Tags;
  54.     } imth_Set;
  55.  
  56.     struct /* ICLMTH_Get */
  57.             @{"ULONG" LINK "pExec/Types.h/File" 91}    imgt_ID;
  58.             @{"ULONG" LINK "pExec/Types.h/File" 91}   *imgt_Variable;
  59.     } imth_Get;
  60.  
  61.  
  62. /********************************************/
  63.  
  64.     struct /* MCLMTH_Render */
  65.       const @{"struct pOS_IClassInfo" LINK "pIntui/ICI.h/File" 18} *imre_Info;
  66.             @{"ULONG" LINK "pExec/Types.h/File" 91}                  imre_Type;     /* (enum pOS_MenuClassRender) */
  67.             @{"ULONG" LINK "pExec/Types.h/File" 91}                  imre_NewTick;  /* wird bei GCLMTHRE_TickFrame verwendet */
  68.             @{"ULONG" LINK "pExec/Types.h/File" 91}                  imre_OldTick;  /* Anzahl der IntuiTicks*100 => 1/1000 sec. */
  69.     } imth_Render;
  70.  
  71.     struct /* MCLMTH_HandleInput */
  72.       const @{"struct pOS_IClassInfo" LINK "pIntui/ICI.h/File" 18} *imhi_Info;
  73.       const @{"struct pOS_InputEvent" LINK "Device/IEvent.h/File" 232} *imhi_IE;
  74.       const @{"struct pOS_Point" LINK "pLayer/Rect.h/File" 26}      *imhi_RMouse; /* relativ */
  75.     } imth_HandleInput;
  76.  
  77.   } imth_U;
  78. };
  79.  
  80.  
  81.  
  82.  
  83. enum pOS_MenuClassRender
  84. {
  85.   MCLMTHRE_Update=1,   /* incremental update */
  86.   MCLMTHRE_Redraw,     /* redraw */
  87.   MCLMTHRE_Toggle,     /* toggle highlight */
  88.   MCLMTHRE_TickFrame,  /* next Frame# */
  89.  
  90.   MCLMTHRE_DrawSub=16, /* draw SubMenu */
  91.   MCLMTHRE_ClearSub,   /* SubMenu-Hintergrund wiederherstellen */
  92. };
  93.  
  94.  
  95.  
  96. enum pOS_MenuClassResult
  97. {
  98.   MCLMTHR_None=0,
  99.  
  100.   MCLMTHR_Activate=   0x0001,
  101.   MCLMTHR_AbortIE=    0x0002, /* InputEvent wird nicht weitergereicht */
  102.   MCLMTHR_InputDone=  0x0004, /* InputHandle beenden */
  103. };
  104.  
  105.  
  106. enum pOS_MenuClassMethods
  107. {
  108.   MCLMTH_Dummy=1,
  109.  
  110.   MCLMTH_Pad1,
  111.   MCLMTH_Render,      /* draw yourself, in the appropriate state */
  112.   MCLMTH_Pad2,
  113.   MCLMTH_HandleInput, /* handle that input */
  114. };
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122. #endif
  123. @ENDNODE
  124.