home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WWTCLKit / WWSimpleMovieView.h < prev    next >
Encoding:
Text File  |  1995-03-22  |  3.2 KB  |  139 lines

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. @interface WWSimpleMovieView:View
  5. {
  6.    NXColor  backgroundColor;
  7.    float    alpha;
  8.    id        image;
  9.    id        movieImage;
  10.    float    aspectRatio;
  11.    int      aspectRatioType, borderType, horizontalLayoutType, verticalLayoutType;
  12.    BOOL     imageUnder;
  13.    BOOL     imageIsShared;
  14.    BOOL     movieIsShared;
  15.    BOOL     scaleToFit, clearTheView; 
  16.    float    fps, frameTimeIncr;
  17.    BOOL     loop;
  18.    int      stationaryBehavior;
  19.    BOOL     sink;
  20.    BOOL     source;
  21.    BOOL     archiveImageData;
  22.    BOOL     archiveMovieData;
  23.    BOOL     drawCorrectly;
  24.  
  25.    id        imageList;
  26.    int      frameCount;
  27.    int      currentFrameIndex;
  28.  
  29.    BOOL     goingForward;
  30.    DPSTimedEntry  stationaryFrameTE;
  31.  
  32.    int      trackingRect;
  33.  
  34.    // control panel stuff
  35.    id  controlPanel;
  36.    id  controlPanelView;
  37.    id  controlPanelSwitchView;  // optionally set by someone who wants to manage the controlPanel and View
  38.    id  theColor;
  39.    id  theImage;
  40.    id  theMovie;
  41.    id  alphaSlider;
  42.    id  fpsText;
  43.    id  aspectRatioMatrix;
  44.    id  horizontalLayoutMatrix;
  45.    id  customAspectRatioText;
  46.    id  scaleSwitch;
  47.    id  imageUnderSwitch;
  48.    id  rotateTo;
  49.    id  borderTypeMatrix;
  50.    id  verticalLayoutMatrix;
  51.    id  stationaryBehaviorMatrix;
  52.    id  archiveImageDataSwitch;
  53.    id  archiveMovieDataSwitch;
  54.    id  loopSwitch;
  55.    id  drawCorrectlySwitch;
  56. }
  57.  
  58. - (NXColor) backgroundColor;
  59. - setBackgroundColor:(NXColor)c;
  60. - (float) alpha;
  61. - setBackgroundAlpha:(float)n;
  62. - setBorderType:(int)newBorderType;
  63. - (int)borderType;
  64. - setImageFile:(const char *)filename;
  65. - setImage:i;
  66. - image;
  67. - movieImage;
  68.  
  69. - setImageIsShared:(BOOL)flag; 
  70. - setMovieIsShared:(BOOL)flag; 
  71.  
  72. - setAnimDir:(const char *)filename;
  73. - setAspectRatioFromMatrix:sender;
  74. - setAspectRatio:sender;
  75. - (int)aspectRatioType;
  76. - (float)aspectRatio;
  77. - (BOOL)imageUnder;
  78. - setImageUnder:(BOOL)flag;
  79. - sizeToImage:sender;
  80. - sizeToMovie:sender; 
  81. - removeImage:sender;
  82. - removeMovie:sender; 
  83. - (BOOL)scaleToFit;
  84. - setScaleToFit:(BOOL)flag;
  85. - setHorizontalLayoutFromMatrix:sender;
  86. - (int)horizontalLayoutType;
  87. - setVerticalLayoutFromMatrix:sender;
  88. - (int)verticalLayoutType;
  89. - (int)stationaryBehavior;
  90. - setStationaryBehavior:(int)n;
  91. - setStationaryBehaviorFromMatrix:sender;
  92. - setLoop:(BOOL)n;
  93. - (BOOL)loop;
  94. - setArchiveImageData:(BOOL)n;
  95. - (BOOL)archiveImageData;
  96. - setArchiveMovieData:(BOOL)n;
  97. - (BOOL)archiveMovieData;
  98. - (int)frameCount;
  99. - setFPS:(float)newFPS;
  100. - (float)fps;
  101. - setDrawCorrectly:(BOOL)n;
  102. - (BOOL)drawCorrectly;
  103.  
  104. - setMyTrackingRect:(BOOL)flag;
  105.  
  106. - (const char *)getInspectorClassName;
  107.  
  108. // control panel stuff
  109. - loadControlPanel;
  110. - revertControlPanel:sender;
  111. - takeColor_:sender;
  112. - setImage_:sender;
  113. - setMovie_:sender;
  114. - setAlpha_:sender;
  115. - setFPS_:sender;
  116. - setAspectRatioFromMatrix_:sender;
  117. - setHorizontalLayoutFromMatrix_:sender;
  118. - setVerticalLayoutFromMatrix_:sender;
  119. - setAspectRatio_:sender;
  120. - setImageUnder_:sender;
  121. - setScale_:sender;
  122. - rotateTo_:sender;
  123. - setBorderTypeFromMatrix_:sender;
  124. - sizeToImage_:sender;
  125. - sizeToMovie_:sender; 
  126. - setStationaryBehaviorFromMatrix_:sender;
  127. - setArchiveMovieData_:sender;
  128. - setArchiveImageData_:sender;
  129. - setLoop_:sender;
  130. - setDrawCorrectly_:sender;
  131. - saveImage:sender;
  132. - saveMovie:sender;
  133.  
  134. @end
  135.  
  136. #define WW_PLAY_CONTINUOUS   0
  137. #define WW_PLAY_MOUSE_CLICK  1
  138. #define WW_PLAY_MOUSE_IN     2
  139.