home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / compactplayer / source / cdpanel.h < prev    next >
C/C++ Source or Header  |  1995-12-28  |  2KB  |  57 lines

  1. #ifndef CDPANEL_H
  2. #define CDPANEL_H
  3.  
  4. Class *CDPANEL_GetClass(void);
  5.  
  6. #pragma libcall CDPanelBase CDPANEL_GetClass 1e 00
  7.  
  8. #define CDPANEL_Dummy        (TAG_USER+0x04010000)
  9.  
  10. #define CDPANEL_TotalTime    (CDPANEL_Dummy+1)
  11. /*    (ULONG) The total playing time of this CD in seconds */
  12.  
  13. #define CDPANEL_Time        (CDPANEL_Dummy+2)
  14. /*    (ULONG) The current playing time offset into the CD */
  15.  
  16. #define CDPANEL_Tracks        (CDPANEL_Dummy+3)
  17. /*    (ULONG) Number of tracks on the CD */
  18.  
  19. #define CDPANEL_TrackTimes    (CDPANEL_Dummy+4)
  20. /*    (ULONG *) ~0 terminated array of track lenghts in seconds */
  21.  
  22. #define CDPANEL_Status        (CDPANEL_Dummy+5)
  23. /*    (ULONG) Current CD player status, see below for defines */
  24.  
  25. #define CDP_EMPTY    0    /* no CD in */
  26. #define CDP_PLAYING    1    /* playing */
  27. #define CDP_PAUSED    2    /* paused */
  28. #define CDP_STOPPED 3    /* CD in, not playing */
  29. #define CDP_SEEKING    4    /* seeking to a track */
  30. #define    CDP_EJECTED    5    /* tray out */
  31.  
  32. #define CDPANEL_Artist        (CDPANEL_Dummy+6)
  33. /*    (STRPTR) Artist name */
  34.  
  35. #define CDPANEL_Title        (CDPANEL_Dummy+7)
  36. /*    (STRPTR) CD title */
  37.  
  38. #define CDPANEL_TrackTitles    (CDPANEL_Dummy+8)
  39. /*    (STRPTR *) The titles in an array, at least CDPANEL_Tracks entries */
  40.  
  41. #define CDPANEL_BgPen        (CDPANEL_Dummy+9)
  42. /*    (WORD) Pen to use for background */
  43.  
  44. #define CDPANEL_FgPen        (CDPANEL_Dummy+10)
  45. /*    (WORD) Pen to use for foreground (text) */
  46.  
  47. #define CDPANEL_Track        (CDPANEL_Dummy+11)
  48. /*    (ULONG) Number of the current playing track */
  49.  
  50. #define CDPANEL_TrackTime    (CDPANEL_Dummy+12)
  51. /*    (ULONG) Current time for this track */
  52.  
  53. #define CDPANEL_NoBorder    (CDPANEL_Dummy+13)
  54. /*    (ULONG) Don't do a bevel border around the gadget */
  55.  
  56. #endif
  57.