home *** CD-ROM | disk | FTP | other *** search
/ cyber.net 2 / cybernet2.ISO / qtw111 / inc / qtw.h < prev    next >
C/C++ Source or Header  |  1993-03-12  |  22KB  |  504 lines

  1.  
  2.  
  3. // ---------------------------------------------------------------------
  4. //
  5. // QTW.H - QuickTime for Windows C and C++ Bindings
  6. //
  7. //         Version 1.0
  8. //
  9. //         (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
  10. //
  11. // ---------------------------------------------------------------------
  12.  
  13.  
  14. // Prevent multiple inclusion
  15. // --------------------------
  16. #ifndef __QTW_H__
  17. #define __QTW_H__
  18.  
  19.  
  20. // Movie Controller MCDoAction action constants
  21. // --------------------------------------------
  22. typedef enum
  23.   {mcActionIdle                   =  1, // No Param
  24.    mcActionDraw                   =  2, // No Param
  25.    mcActionActivate               =  3, // No param
  26.    mcActionDeactivate             =  4, // No param
  27.    mcActionKey                    =  6, // Param is pointer to MSG
  28.    mcActionPlay                   =  8, // Param is LFIXED play rate
  29.    mcActionGoToTime               = 12, // Param is pointer to TimeRecord
  30.    mcActionSetVolume              = 14, // Param is SFIXED volume
  31.    mcActionGetVolume              = 15, // Param is pointer to SFIXED volume
  32.    mcActionStep                   = 18, // Param is LONG number of steps
  33.    mcActionSetLooping             = 21, // Param is a BOOL
  34.    mcActionGetLooping             = 22, // Param is pointer to a BOOL
  35.    mcActionSetLoopIsPalindrome    = 23, // Param is BOOL
  36.    mcActionGetLoopIsPalindrome    = 24, // Param is pointer to a BOOL
  37.    mcActionSetGrowBoxBounds       = 25, // Param is pointer to a Rect
  38.    mcActionControllerSizeChanged  = 26, // No param
  39.    mcActionSetSelectionBegin      = 29, // Param is pointer to TimeRecord
  40.    mcActionSetSelectionDuration   = 30, // Param is pointer to TimeRecord
  41.    mcActionSetKeysEnabled         = 32, // Param is BOOL
  42.    mcActionGetKeysEnabled         = 33, // Param is pointer to BOOL
  43.    mcActionSetPlaySelection       = 34, // Param is BOOL
  44.    mcActionGetPlaySelection       = 35, // Param is pointer to BOOL
  45.    mcActionSetUseBadge            = 36, // Param is BOOL
  46.    mcActionGetUseBadge            = 37, // Param is pointer to BOOL
  47.    mcActionSetFlags               = 38, // Param is LONG flags
  48.    mcActionGetFlags               = 39, // Param is pointer to LONG flags
  49.    mcActionSetPlayEveryFrame      = 40, // Param is BOOL
  50.    mcActionGetPlayEveryFrame      = 41, // Param is pointer to BOOL
  51.    mcActionGetPlayRate            = 42, // Param is pointer to LFIXED
  52.    mcActionBadgeClick             = 44  // No param
  53.   } mcActionType;
  54.  
  55.  
  56. // Movie Controller MCDoAction, action McActionSetFlags parameter, movie
  57. // controller structure parameter, lfActionFlags
  58. // ---------------------------------------------------------------------
  59. typedef enum
  60.   {mcFlagSuppressStepButtons      = 1<<1,
  61.    mcFlagSuppressSpeakerButton    = 1<<2,
  62.    mcFlagsUseWindowPalette        = 1<<3
  63.   } mcActionFlags;
  64.  
  65.  
  66. // Toolbox function NewMovieController and Movie Controller function
  67. // MCPositionController parameter controllerCreationFlags values,
  68. // movie controller structure parameter, lfControllerStateFlags
  69. // -----------------------------------------------------------------
  70. typedef enum
  71.   {mcTopLeftMovie                 = 1<<0,
  72.    mcScaleMovieToFit              = 1<<1,
  73.    mcWithBadge                    = 1<<2,
  74.    mcNotVisible                   = 1<<3
  75.   } mcControllerStateFlags;
  76.  
  77.  
  78. // Movie Controller function MCGetControllerInfo parameter mcInfoFlags
  79. // parameter, movie controller structure parameter, lfControllerInfoFlags
  80. // ----------------------------------------------------------------------
  81. typedef enum
  82.   {mcInfoHasSound                 = 1<<5,
  83.    mcInfoIsPlaying                = 1<<6,
  84.    mcInfoIsLooping                = 1<<7,
  85.    mcInfoIsInPalindrome           = 1<<8
  86.   } mcControllerInfoFlags;
  87.  
  88.  
  89. // NewMovieFromFile flags
  90. // ----------------------
  91. typedef enum
  92.   {newMovieActive                 = 1<<0,
  93.    newMovieDontResolveDataRefs    = 1<<1,
  94.    newMovieDontAskUnresolvedDataRefs = 1<<2,
  95.    newMovieDontAutoAlternates     = 1<<3
  96.   } newMovieFlags;
  97.  
  98.  
  99. // Flags for SetMoviePlayHints
  100. // ---------------------------
  101. typedef enum
  102.   {hintsScrubMode                 = 1<<1,
  103.    hintsInterpolateSound          = 1<<7
  104.   } moviePlayHints;
  105.  
  106.  
  107. // Manifest constants for ostypes as flags for Component Manager calls
  108. // -------------------------------------------------------------------
  109. #define kAnyComponentType           0
  110. #define kAnyComponentSubType        0
  111. #define kAnyComponentManufacturer   0
  112. #define kAnyComponentFlagsMask      0
  113.  
  114.  
  115. // SetDefaultComponent Flags
  116. // -------------------------
  117. typedef enum
  118.   {defaultComponentIdentical        = 0,
  119.    defaultComponentAnyFlags         = 1,
  120.    defaultComponentAnyManufacturer  = 2,
  121.    defaultComponentAnySubType       = 4
  122.   } defaultComponentFlags;
  123.  
  124.  
  125. // RegisterComponent Flags
  126. // -----------------------
  127. typedef enum
  128.   {registerComponentGlobal          = 1,
  129.    registerComponentNoDuplicates    = 2,
  130.    registerComponentAfterExisting   = 4
  131.   } registerComponentFlags;
  132.  
  133.  
  134. // Error codes
  135. // -------------
  136. enum
  137.   {
  138.    paramErr                       = -50,
  139.    couldNotResolveDataRef         = -2000,
  140.    badImageDescription            = -2001,
  141.    badPublicMovieAtom             = -2002,
  142.    cantFindHandler                = -2003,
  143.    cantOpenHandler                = -2004,
  144.    badComponentType               = -2005,
  145.    noMediaHandler                 = -2006,
  146.    noDataHandler                  = -2007,
  147.    invalidMedia                   = -2008,
  148.    invalidTrack                   = -2009,
  149.    invalidMovie                   = -2010,
  150.    invalidSampleTable             = -2011,
  151.    invalidDataRef                 = -2012,
  152.    invalidHandler                 = -2013,
  153.    invalidDuration                = -2014,
  154.    invalidTime                    = -2015,
  155.    cantPutPublicMovieAtom         = -2016,
  156.    badEditList                    = -2017,
  157.    mediaTypesDontMatch            = -2018,
  158.    progressProcAborted            = -2019,
  159.    movieToolboxUninitialized      = -2020,
  160.    wffileNotFound                 = -2021,
  161.    cantCreateSingleForkFile       = -2022,
  162.    invalidEditState               = -2023,
  163.    nonMatchingEditState           = -2024,
  164.    staleEditState                 = -2025,
  165.    userDataItemNotFound           = -2026,
  166.    maxSizeToGrowTooSmall          = -2027,
  167.    badTrackIndex                  = -2028,
  168.    trackIDNotFound                = -2029,
  169.    trackNotInMovie                = -2030,
  170.    timeNotInTrack                 = -2031,
  171.    timeNotInMedia                 = -2032,
  172.    badEditIndex                   = -2033,
  173.    internalQuickTimeError         = -2034,
  174.    cantEnableTrack                = -2035,
  175.    invalidRect                    = -2036,
  176.    invalidSampleNum               = -2037,
  177.    invalidChunkNum                = -2038,
  178.    invalidSampleDescIndex         = -2039,
  179.    invalidChunkCache              = -2040,
  180.    invalidSampleDescription       = -2041,
  181.    dataNotOpenForRead             = -2042,
  182.    dataNotOpenForWrite            = -2043,
  183.    dataAlreadyOpenForWrite        = -2044,
  184.    dataAlreadyClosed              = -2045,
  185.    endOfDataReached               = -2046,
  186.    dataNoDataRef                  = -2047,
  187.    noMovieInDataFork              = -2048,
  188.    invalidDataRefContainer        = -2049,
  189.    badDataRefIndex                = -2050,
  190.    noDefaultDataRef               = -2051,
  191.    couldNotUseAnExistingSample    = -2052,
  192.    featureUnsupported             = -2053,
  193.    noVideoTrackInMovie            = -2054,
  194.    noSoundTrackInMovie            = -2055,
  195.    soundSupportNotAvailable       = -2056,
  196.    maxControllersExceeded         = -2057,
  197.    unableToCreateMCWindow         = -2058,
  198.    insufficientMemory             = -2059,
  199.    invalidUserDataHandle          = -2060,
  200.    noPictureInFile                = -2061,
  201.    invalidPictureFileHandle       = -2062,
  202.    invalidPictureHandle           = -2063,
  203.    badDisplayContext              = -2064,
  204.    invalidComponentID             = -3000,
  205.    validInstancesExist            = -3001,
  206.    componentNotCaptured           = -3002,
  207.    componentDontRegister          = -3003,
  208.    noErr