home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / c / skew.lha / Skew / example_output.c next >
Text File  |  1992-10-12  |  2KB  |  104 lines

  1.  
  2. /*
  3.  *      Code generated by SKEleton Writer v1.20
  4.  */
  5.  
  6.  
  7. ULONG  Class;
  8. SHORT  MouseX, MouseY;
  9. ULONG  Seconds, Micros;
  10.  
  11. VOID GetIDCMP( struct Window * );
  12.  
  13. VOID handleNewPrefs( VOID );
  14. VOID handleIntuiTicks( VOID );
  15. VOID handleIDCMPUpdate( VOID );
  16.  
  17.  
  18. VOID GetIDCMP( struct Window *wnd )
  19. {
  20.     struct IntuiMessage *msg;
  21.  
  22.     BOOL   DoneOK = FALSE;
  23.  
  24.     while ( ! DoneOK ) {
  25.         WaitPort( wnd->UserPort );
  26.         while ( msg = (struct IntuiMessage *)GT_GetIMsg( wnd->UserPort ) ) {
  27.  
  28.             Class     =  msg->Class;
  29.             MouseX    =  msg->MouseX;
  30.             MouseY    =  msg->MouseY;
  31.             Seconds   =  msg->Seconds;
  32.             Micros    =  msg->Micros;
  33.  
  34.             GT_ReplyIMsg( msg );
  35.  
  36.             switch ( Class ) {
  37.                 case IDCMP_MOUSEBUTTONS:
  38.                     
  39.                     break;
  40.                 case IDCMP_MOUSEMOVE:
  41.                     
  42.                     break;
  43.                 case IDCMP_GADGETDOWN:
  44.                     
  45.                     break;
  46.                 case IDCMP_GADGETUP:
  47.                     
  48.                     break;
  49.                 case IDCMP_CLOSEWINDOW:
  50.                     
  51.                     break;
  52.                 case IDCMP_REFRESHWINDOW:
  53.                     GT_BeginRefresh( wnd );    /* NECESSARY with gadtools! */
  54.                     GT_EndRefresh( wnd, TRUE );
  55.                     break;
  56.                 case IDCMP_DISKINSERTED:
  57.                     
  58.                     break;
  59.                 case IDCMP_DISKREMOVED:
  60.                     
  61.                     break;
  62.                 case IDCMP_NEWPREFS:
  63.                     handleNewPrefs();
  64.                     break;
  65.                 case IDCMP_INTUITICKS:
  66.                     handleIntuiTicks();
  67.                     break;
  68.                 case IDCMP_IDCMPUPDATE:
  69.                     handleIDCMPUpdate();
  70.                     break;
  71.                 case IDCMP_LONELYMESSAGE:
  72.                     
  73.                     break;
  74.                 default:
  75.                     
  76.                     break;
  77.             }
  78.         }
  79.     }
  80.  
  81.     while ( msg = (struct IntuiMessage *)GT_GetIMsg( wnd->UserPort ) )
  82.         GT_ReplyIMsg( msg );
  83. }
  84.  
  85.  
  86.  
  87. VOID handleNewPrefs() 
  88. {
  89.     
  90. }
  91.  
  92.  
  93. VOID handleIntuiTicks() 
  94. {
  95.     
  96. }
  97.  
  98.  
  99. VOID handleIDCMPUpdate() 
  100. {
  101.     
  102. }
  103.  
  104.