home *** CD-ROM | disk | FTP | other *** search
/ Kyūkyoku!! X68000 Emulator / X68000Book.dat / mac / OLS / X68000 / Ko-Window / kow142s.lzh / wsrv / scroll.h < prev    next >
C/C++ Source or Header  |  1995-11-25  |  692b  |  32 lines

  1.  
  2. #define    ScrollType    3
  3.  
  4. #ifndef    DirectionX
  5.     #define    DirectionX    1
  6.     #define    DirectionY    2
  7. #endif
  8.  
  9. typedef    struct    {
  10.         int                id, (*event)();
  11.         int                dir ;
  12.         int                maxh, maxv ;
  13.         SliderClass        xslider, yslider ;
  14.         int                xstep, ystep ;
  15.     }
  16.         ScrollPart ;
  17.  
  18. typedef    struct    {
  19.         ClipPart    clip ;
  20.         WindowPart    window ;
  21.         ScrollPart    scroll ;
  22.     }
  23.         ScrollClass ;
  24.  
  25. /*
  26.     proto -e scroll.c > temp
  27. */
  28. extern    void    ScrollSet( ScrollClass*, int, int, int, int, WindowClass*, int, int, int, int, int, int, int(*)() );
  29. extern    void    ScrollResize( ScrollClass*, int, int, int, int );
  30. extern    void    ScrollScroll( ScrollClass*, int, int );
  31. extern    int        ScrollEvent( ScrollClass*, EventInfo* );
  32.