⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ming.h

📁 flash swf file player
💻 H
📖 第 1 页 / 共 2 页
字号:
void SWFTextField_addChars(SWFTextField field, const char *string);  /* deprecated? */  /*void SWFTextField_addUTF8Chars(SWFTextField field, const char *string);*/void SWFTextField_setAlignment(SWFTextField field,			       SWFTextFieldAlignment alignment);void SWFTextField_setLength(SWFTextField field, int length);/***** SWFSoundStream - only mp3 streaming implemented *****/SWFSoundStream newSWFSoundStream(FILE *file);/* added by David McNab <david@rebirthing.co.nz> */SWFSoundStream newSWFSoundStreamFromFileno(int fd);SWFSoundStream newSWFSoundStream_fromInput(SWFInput input);int SWFSoundStream_getFrames(SWFSoundStream sound);void destroySWFSoundStream(SWFSoundStream soundStream);/***** SWFSound *****/SWFSound newSWFSound(FILE *file, byte flags);/* added by David McNab to facilitate Python access */SWFSound newSWFSoundFromFileno(int fd, byte flags);SWFSound newSWFSound_fromInput(SWFInput input, byte flags);void destroySWFSound(SWFSound sound);#define SWF_SOUND_COMPRESSION       0xf0#define SWF_SOUND_NOT_COMPRESSED    (0<<4)#define SWF_SOUND_ADPCM_COMPRESSED  (1<<4)#define SWF_SOUND_MP3_COMPRESSED    (2<<4)#define SWF_SOUND_NOT_COMPRESSED_LE (3<<4)#define SWF_SOUND_NELLY_COMPRESSED  (6<<4)#define SWF_SOUND_RATE              0x0c#define SWF_SOUND_5KHZ              (0<<2)#define SWF_SOUND_11KHZ             (1<<2)#define SWF_SOUND_22KHZ             (2<<2)#define SWF_SOUND_44KHZ             (3<<2)#define SWF_SOUND_BITS              0x02#define SWF_SOUND_8BITS             (0<<1)#define SWF_SOUND_16BITS            (1<<1)#define SWF_SOUND_CHANNELS          0x01#define SWF_SOUND_MONO              (0<<0)#define SWF_SOUND_STEREO            (1<<0)/***** SWFSoundInstance *****//* created from SWFMovie[Clip]_startSound,   lets you change the parameters of the sound event (loops, etc.) */void SWFSoundInstance_setNoMultiple(SWFSoundInstance instance);void SWFSoundInstance_setLoopInPoint(SWFSoundInstance instance, unsigned int point);void SWFSoundInstance_setLoopOutPoint(SWFSoundInstance instance, unsigned int point);void SWFSoundInstance_setLoopCount(SWFSoundInstance instance, int count);void SWFSoundInstance_setNoMultiple(SWFSoundInstance instance);/***** SWFCXform - Color transform *****//* create a new color transform with the given parameters */SWFCXform newSWFCXform(int rAdd, int gAdd, int bAdd, int aAdd,		       float rMult, float gMult, float bMult, float aMult);/* create a new color transform with the given additive parameters and   default multiplicative */SWFCXform newSWFAddCXform(int rAdd, int gAdd, int bAdd, int aAdd);/* create a new color transform with the given multiplicative parameters   and default additive */SWFCXform newSWFMultCXform(float rMult, float gMult, float bMult, float aMult);void destroySWFCXform(SWFCXform cXform);/* set the additive part of the color transform to the given parameters */void SWFCXform_setColorAdd(SWFCXform cXform,			   int rAdd, int gAdd, int bAdd, int aAdd);/* set the multiplicative part of the color transform to the given   parameters */void SWFCXform_setColorMult(SWFCXform cXform,			    float rMult, float gMult, float bMult, float aMult);/***** SWFAction *****/SWFAction compileSWFActionCode(const char *script);void destroySWFAction(SWFAction action);/***** SWFButton *****/#define SWFBUTTON_HIT    (1<<3)#define SWFBUTTON_DOWN   (1<<2)#define SWFBUTTON_OVER   (1<<1)#define SWFBUTTON_UP     (1<<0)  /* deprecated: */  #define SWFBUTTONRECORD_HITSTATE    (1<<3)  #define SWFBUTTONRECORD_DOWNSTATE   (1<<2)  #define SWFBUTTONRECORD_OVERSTATE   (1<<1)  #define SWFBUTTONRECORD_UPSTATE     (1<<0)#define SWFBUTTON_KEYPRESS(c)     (((c)&0x7f)<<9)#define SWFBUTTON_ONKEYPRESS(c)     (((c)&0x7f)<<9)#define SWFBUTTON_OVERDOWNTOIDLE    (1<<8)#define SWFBUTTON_IDLETOOVERDOWN    (1<<7)#define SWFBUTTON_OUTDOWNTOIDLE     (1<<6)#define SWFBUTTON_OUTDOWNTOOVERDOWN (1<<5)#define SWFBUTTON_OVERDOWNTOOUTDOWN (1<<4)#define SWFBUTTON_OVERDOWNTOOVERUP  (1<<3)#define SWFBUTTON_OVERUPTOOVERDOWN  (1<<2)#define SWFBUTTON_OVERUPTOIDLE      (1<<1)#define SWFBUTTON_IDLETOOVERUP      (1<<0)/* easier to remember: */#define SWFBUTTON_MOUSEUPOUTSIDE  SWFBUTTON_OUTDOWNTOIDLE#define SWFBUTTON_DRAGOVER        (SWFBUTTON_OUTDOWNTOOVERDOWN | SWFBUTTON_IDLETOOVERDOWN)#define SWFBUTTON_DRAGOUT         (SWFBUTTON_OVERDOWNTOOUTDOWN | SWFBUTTON_OVERDOWNTOIDLE)#define SWFBUTTON_MOUSEUP         SWFBUTTON_OVERDOWNTOOVERUP#define SWFBUTTON_MOUSEDOWN       SWFBUTTON_OVERUPTOOVERDOWN#define SWFBUTTON_MOUSEOUT        SWFBUTTON_OVERUPTOIDLE#define SWFBUTTON_MOUSEOVER       SWFBUTTON_IDLETOOVERUPSWFButton newSWFButton();void destroySWFButton(SWFButton button);void SWFButton_addShape(SWFButton button, SWFCharacter character, byte flags);void SWFButton_addAction(SWFButton button, SWFAction action, int flags);SWFSoundInstance SWFButton_addSound(SWFButton button, SWFSound action, byte flags);void SWFButton_setMenu(SWFButton button, int flag);/****** SWFVideo ******/SWFVideoStream newSWFVideoStream_fromFile(FILE *f);SWFVideoStream newSWFVideoStream_fromInput(SWFInput input);SWFVideoStream newSWFVideoStream(void);void SWFVideoStream_setDimension(SWFVideoStream stream, int width, int height);int SWFVideoStream_getNumFrames(SWFVideoStream stream);/***** SWFSprite *****/SWFSprite newSWFSprite();void destroySWFSprite(SWFSprite sprite);void SWFSprite_addBlock(SWFSprite sprite, SWFBlock block);/***** SWFPosition *****/struct _swfPosition{  int x;  int y;  float xScale;  float yScale;  float xSkew;  float ySkew;  float rot;  SWFMatrix matrix;};#define SWF_POSITION_SIZE sizeof(struct _swfPosition)SWFPosition newSWFPosition(SWFMatrix matrix);void destroySWFPosition(SWFPosition position);void SWFPosition_skewX(SWFPosition position, float x);void SWFPosition_skewXTo(SWFPosition position, float x);void SWFPosition_skewY(SWFPosition position, float y);void SWFPosition_skewYTo(SWFPosition position, float y);void SWFPosition_scaleX(SWFPosition position, float x);void SWFPosition_scaleXTo(SWFPosition position, float x);void SWFPosition_scaleY(SWFPosition position, float y);void SWFPosition_scaleYTo(SWFPosition position, float y);void SWFPosition_scaleXY(SWFPosition position, float x, float y);void SWFPosition_scaleXYTo(SWFPosition position, float x, float y);void SWFPosition_setMatrix(SWFPosition p, float a, float b, float c, float d,			   float x, float y);void SWFPosition_rotate(SWFPosition position, float degrees);void SWFPosition_rotateTo(SWFPosition position, float degrees);void SWFPosition_move(SWFPosition position, float x, float y);void SWFPosition_moveTo(SWFPosition position, float x, float y);/***** SWFDisplayItem *****/void SWFDisplayItem_move(SWFDisplayItem item, float x, float y);void SWFDisplayItem_moveTo(SWFDisplayItem item, float x, float y);void SWFDisplayItem_rotate(SWFDisplayItem item, float degrees);void SWFDisplayItem_rotateTo(SWFDisplayItem item, float degrees);void SWFDisplayItem_scale(SWFDisplayItem item, float xScale, float yScale);void SWFDisplayItem_scaleTo(SWFDisplayItem item, float xScale, float yScale);void SWFDisplayItem_skewX(SWFDisplayItem item, float x);void SWFDisplayItem_skewXTo(SWFDisplayItem item, float x);void SWFDisplayItem_skewY(SWFDisplayItem item, float y);void SWFDisplayItem_skewYTo(SWFDisplayItem item, float y);void SWFDisplayItem_getPosition(SWFDisplayItem item, float * x, float * y);void SWFDisplayItem_getRotation(SWFDisplayItem item, float * degrees);void SWFDisplayItem_getScale(SWFDisplayItem item, float * xScale, float * yScale);void SWFDisplayItem_getSkew(SWFDisplayItem item, float * xSkew, float * ySkew);void SWFDisplayItem_setMatrix(SWFDisplayItem i, float a, float b,			      float c, float d, float x, float y);int SWFDisplayItem_getDepth(SWFDisplayItem item);void SWFDisplayItem_setDepth(SWFDisplayItem item, int depth);void SWFDisplayItem_remove(SWFDisplayItem item);void SWFDisplayItem_setName(SWFDisplayItem item, const char *name);void SWFDisplayItem_setMaskLevel(SWFDisplayItem item, int masklevel);void SWFDisplayItem_setRatio(SWFDisplayItem item, float ratio);void SWFDisplayItem_setCXform(SWFDisplayItem item, SWFCXform cXform);void SWFDisplayItem_setColorAdd(SWFDisplayItem item,				int r, int g, int b, int a);void SWFDisplayItem_setColorMult(SWFDisplayItem item,				 float r, float g, float b, float a);#define SWFDisplayItem_addColor SWFDisplayItem_setColorAdd#define SWFDisplayItem_multColor SWFDisplayItem_setColorMult#define SWFACTION_ONLOAD      (1<<0)#define SWFACTION_ENTERFRAME  (1<<1)#define SWFACTION_UNLOAD      (1<<2)#define SWFACTION_MOUSEMOVE   (1<<3)#define SWFACTION_MOUSEDOWN   (1<<4)#define SWFACTION_MOUSEUP     (1<<5)#define SWFACTION_KEYDOWN     (1<<6)#define SWFACTION_KEYUP       (1<<7)#define SWFACTION_DATA        (1<<8)void SWFDisplayItem_addAction(SWFDisplayItem item, SWFAction action, int flags);/***** SWFFill *****//* adds a position object to manipulate SWFFillStyle's matrix */SWFFill newSWFFill(SWFFillStyle fillstyle);void destroySWFFill(SWFFill fill);void SWFFill_skewX(SWFFill fill, float x);void SWFFill_skewXTo(SWFFill fill, float x);void SWFFill_skewY(SWFFill fill, float y);void SWFFill_skewYTo(SWFFill fill, float y);void SWFFill_scaleX(SWFFill fill, float x);void SWFFill_scaleXTo(SWFFill fill, float x);void SWFFill_scaleY(SWFFill fill, float y);void SWFFill_scaleYTo(SWFFill fill, float y);void SWFFill_scaleXY(SWFFill fill, float x, float y);void SWFFill_scaleXYTo(SWFFill fill, float x, float y);  /* Deprecated? */  #define SWFFill_scale    SWFFill_scaleXY  #define SWFFill_scaleTo  SWFFill_scaleXYTovoid SWFFill_rotate(SWFFill fill, float degrees);void SWFFill_rotateTo(SWFFill fill, float degrees);void SWFFill_move(SWFFill fill, float x, float y);void SWFFill_moveTo(SWFFill fill, float x, float y);void SWFFill_setMatrix(SWFFill fill, float a, float b,		       float c, float d, float x, float y);/***** shape_util.h *****/void SWFShape_setLine(SWFShape shape, unsigned short width,		      byte r, byte g, byte b, byte a);SWFFill SWFShape_addSolidFill(SWFShape shape, byte r, byte g, byte b, byte a);SWFFill SWFShape_addGradientFill(SWFShape shape, SWFGradient gradient, byte flags);SWFFill SWFShape_addBitmapFill(SWFShape shape, SWFBitmap bitmap, byte flags);void SWFShape_setLeftFill(SWFShape shape, SWFFill fill);void SWFShape_setRightFill(SWFShape shape, SWFFill fill);void SWFShape_drawArc(SWFShape shape, float r, float startAngle, float endAngle);void SWFShape_drawCircle(SWFShape shape, float r);/* draw character c from font font into shape shape at size size */void SWFShape_drawGlyph(SWFShape shape, SWFFont font, unsigned short c);void SWFShape_drawSizedGlyph(SWFShape shape, SWFFont font, unsigned short c, int size);  /* Deprecated: */  #define SWFShape_drawFontGlyph(s,f,c) SWFShape_drawGlyph(s,f,c)/* approximate a cubic bezier with quadratic segments *//* returns the number of segments used */int SWFShape_drawCubic(SWFShape shape, float bx, float by,		       float cx, float cy, float dx, float dy);int SWFShape_drawCubicTo(SWFShape shape, float bx, float by,			 float cx, float cy, float dx, float dy);void SWFShape_drawCharacterBounds(SWFShape shape, SWFCharacter character);/***** SWFMovieClip *****/SWFMovieClip newSWFMovieClip();void destroySWFMovieClip(SWFMovieClip movieClip);void SWFMovieClip_setNumberOfFrames(SWFMovieClip clip, int frames);void SWFMovieClip_nextFrame(SWFMovieClip clip);void SWFMovieClip_labelFrame(SWFMovieClip clip, const char *label);SWFDisplayItem SWFMovieClip_add(SWFMovieClip clip, SWFBlock block);void SWFMovieClip_remove(SWFMovieClip clip, SWFDisplayItem item);void SWFMovieClip_setSoundStream(SWFMovieClip clip, SWFSoundStream sound, float rate);void SWFMovie_setSoundStreamAt(SWFMovie movie, SWFSoundStream stream, float skip);SWFSoundInstance SWFMovieClip_startSound(SWFMovieClip clip, SWFSound sound);void SWFMovieClip_stopSound(SWFMovieClip clip, SWFSound sound);/***** SWFMovie *****/SWFMovie newSWFMovie();SWFMovie newSWFMovieWithVersion(int version);void destroySWFMovie(SWFMovie movie);void SWFMovie_setRate(SWFMovie movie, float rate);void SWFMovie_setDimension(SWFMovie movie, float x, float y);void SWFMovie_setNumberOfFrames(SWFMovie movie, int frames);void SWFMovie_addExport(SWFMovie movie, SWFBlock block, const char *name);void SWFMovie_setBackground(SWFMovie movie, byte r, byte g, byte b);void SWFMovie_setSoundStream(SWFMovie movie, SWFSoundStream sound);SWFSoundInstance SWFMovie_startSound(SWFMovie movie, SWFSound sound);void SWFMovie_stopSound(SWFMovie movie, SWFSound sound);SWFDisplayItem SWFMovie_add(SWFMovie movie, SWFBlock block);void SWFMovie_remove(SWFMovie movie, SWFDisplayItem item);void SWFMovie_nextFrame(SWFMovie movie);void SWFMovie_labelFrame(SWFMovie movie, const char *label);int SWFMovie_output(SWFMovie movie, SWFByteOutputMethod method, void *data, int level);int SWFMovie_save(SWFMovie movie, const char *filename, int level);  /* deprecated */  /*int SWFMovie_outputC(SWFMovie movie, SWFByteOutputMethod method, void *data, int level);*/SWFCharacter SWFMovie_importCharacter(SWFMovie movie, const char *filename, const char *name);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -