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

📄 ming.c

📁 flash swf file player
💻 C
📖 第 1 页 / 共 5 页
字号:
  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &x) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(x);  SWFDisplayItem_skewX(getDisplayItem(getThis() TSRMLS_CC), Z_DVAL_PP(x));}/* }}} *//* {{{ proto void swfdisplayitem_skewYTo(float ySkew)   Sets this SWFDisplayItem's y skew value to ySkew */PHP_FUNCTION(swfdisplayitem_skewYTo){  zval **y;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &y) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(y);  SWFDisplayItem_skewYTo(getDisplayItem(getThis() TSRMLS_CC), Z_DVAL_PP(y));}/* }}} *//* {{{ proto void swfdisplayitem_skewY(float ySkew)   Adds ySkew to this SWFDisplayItem's y skew value */PHP_FUNCTION(swfdisplayitem_skewY){  zval **y;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &y) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(y);  SWFDisplayItem_skewY(getDisplayItem(getThis() TSRMLS_CC), Z_DVAL_PP(y));}/* }}} *//* {{{ proto void swfdisplayitem_setMatrix(float a, float b, float c, float d, float x, float y)   Sets the item's transform matrix */PHP_FUNCTION(swfdisplayitem_setMatrix){  zval **a, **b, **c, **d, **x, **y;  if(ZEND_NUM_ARGS() != 6 ||     zend_get_parameters_ex(6, &a, &b, &c, &d, &x, &y) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(a);  convert_to_double_ex(b);  convert_to_double_ex(c);  convert_to_double_ex(d);  convert_to_double_ex(x);  convert_to_double_ex(y);  SWFDisplayItem_setMatrix(getDisplayItem(getThis() TSRMLS_CC),			   Z_DVAL_PP(a),  Z_DVAL_PP(b), Z_DVAL_PP(c),			   Z_DVAL_PP(d), Z_DVAL_PP(x), Z_DVAL_PP(y));}/* }}} *//* {{{ proto void swfdisplayitem_setDepth(int depth)   Sets this SWFDisplayItem's z-depth to depth.  Items with higher depth values are drawn on top of those with lower values */PHP_FUNCTION(swfdisplayitem_setDepth){  zval **depth;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &depth) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_long_ex(depth);  SWFDisplayItem_setDepth(getDisplayItem(getThis() TSRMLS_CC), Z_LVAL_PP(depth));}/* }}} *//* {{{ proto void swfdisplayitem_setRatio(float ratio)   Sets this SWFDisplayItem's ratio to ratio.  Obviously only does anything if displayitem was created from an SWFMorph */PHP_FUNCTION(swfdisplayitem_setRatio){  zval **ratio;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &ratio) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(ratio);  SWFDisplayItem_setRatio(getDisplayItem(getThis() TSRMLS_CC), Z_DVAL_PP(ratio));}/* }}} *//* {{{ proto void swfdisplayitem_addColor(int r, int g, int b [, int a])   Sets the add color part of this SWFDisplayItem's CXform to (r, g, b [, a]), a defaults to 0 */PHP_FUNCTION(swfdisplayitem_addColor){  zval **r, **g, **b, **za;  int a = 0;  if(ZEND_NUM_ARGS() == 4)  {    if(zend_get_parameters_ex(4, &r, &g, &b, &za) == FAILURE)      WRONG_PARAM_COUNT;    convert_to_long_ex(za);    a = Z_LVAL_PP(za);  }  else if(ZEND_NUM_ARGS() == 3)  {    if(zend_get_parameters_ex(3, &r, &g, &b) == FAILURE)      WRONG_PARAM_COUNT;  }  else    WRONG_PARAM_COUNT;  convert_to_long_ex(r);  convert_to_long_ex(g);  convert_to_long_ex(b);  SWFDisplayItem_setColorAdd(getDisplayItem(getThis() TSRMLS_CC),			     Z_LVAL_PP(r), Z_LVAL_PP(g), Z_LVAL_PP(b), a);}/* }}} *//* {{{ proto void swfdisplayitem_multColor(float r, float g, float b [, float a])   Sets the multiply color part of this SWFDisplayItem's CXform to (r, g, b [, a]),   a defaults to 1.0 */PHP_FUNCTION(swfdisplayitem_multColor){  zval **r, **g, **b, **za;  float a = 1.0;  if(ZEND_NUM_ARGS() == 4)  {    if(zend_get_parameters_ex(4, &r, &g, &b, &za) == FAILURE)      WRONG_PARAM_COUNT;    convert_to_double_ex(za);    a = Z_DVAL_PP(za);  }  else if(ZEND_NUM_ARGS() == 3)  {    if(zend_get_parameters_ex(3, &r, &g, &b) == FAILURE)      WRONG_PARAM_COUNT;  }  else    WRONG_PARAM_COUNT;  convert_to_double_ex(r);  convert_to_double_ex(g);  convert_to_double_ex(b);  SWFDisplayItem_setColorMult(getDisplayItem(getThis() TSRMLS_CC),			      Z_DVAL_PP(r), Z_DVAL_PP(g), Z_DVAL_PP(b), a);}/* }}} *//* {{{ proto void swfdisplayitem_setName(string name)   Sets this SWFDisplayItem's name to name */PHP_FUNCTION(swfdisplayitem_setName){  zval **name;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &name) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_string_ex(name);  SWFDisplayItem_setName(item, Z_STRVAL_PP(name));}/* }}} *//* {{{ proto void swfdisplayitem_addAction(SWFAction action, int flags)   Adds this SWFAction to the given SWFSprite instance */PHP_FUNCTION(swfdisplayitem_addAction){  zval **zaction, **flags;  SWFAction action;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 2 ||     zend_get_parameters_ex(2, &zaction, &flags) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_object_ex(zaction);  convert_to_long_ex(flags);  action = /*(SWFBlock)*/getAction(*zaction TSRMLS_CC);  SWFDisplayItem_addAction(item, action, Z_LVAL_PP(flags));}/* }}} *//* {{{ swfdisplayitem_remove */PHP_FUNCTION(swfdisplayitem_remove){  zval **zchar;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  SWFDisplayItem_remove(item);}/* }}} *//* {{{ proto void swfdisplayitem_setMaskLevel(int level)   defines a MASK layer at level */PHP_FUNCTION(swfdisplayitem_setMaskLevel){  zval **level;  if(ZEND_NUM_ARGS() != 1 ||	 zend_get_parameters_ex(1, &level) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_long_ex(level);  SWFDisplayItem_setMaskLevel(getDisplayItem(getThis() TSRMLS_CC), Z_LVAL_PP(level));}/* }}} *//* {{{ proto void swfdisplayitem_endMask()   another way of defining a MASK layer */PHP_FUNCTION(swfdisplayitem_endMask){  zval **zchar;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  SWFDisplayItem_endMask(item);}/* }}} *//* {{{ swfdisplayitem_getX */PHP_FUNCTION(swfdisplayitem_getX){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_x(item);  RETURN_DOUBLE(ret);}/* }}} *//* {{{ swfdisplayitem_getY */PHP_FUNCTION(swfdisplayitem_getY){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_y(item);  RETURN_DOUBLE(ret);}/* }}} *//* {{{ swfdisplayitem_getXScale */PHP_FUNCTION(swfdisplayitem_getXScale){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_xScale(item);  RETURN_DOUBLE(ret);}/* }}} *//* {{{ swfdisplayitem_getYScale */PHP_FUNCTION(swfdisplayitem_getYScale){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_yScale(item);  RETURN_DOUBLE(ret);}/* }}} *//* {{{ swfdisplayitem_getXSkew */PHP_FUNCTION(swfdisplayitem_getXSkew){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_xSkew(item);  RETURN_DOUBLE(ret);}/* }}} *//* {{{ swfdisplayitem_getYSkew */PHP_FUNCTION(swfdisplayitem_getYSkew){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_ySkew(item);  RETURN_DOUBLE(ret);}/* }}} *//* {{{ swfdisplayitem_getRot */PHP_FUNCTION(swfdisplayitem_getRot){  float ret;  SWFDisplayItem item = getDisplayItem(getThis() TSRMLS_CC);  if(ZEND_NUM_ARGS() != 0)    WRONG_PARAM_COUNT;  ret = SWFDisplayItem_get_rot(item);  RETURN_DOUBLE(ret);}/* }}} *//* }}} *//* {{{ SWFFill */static zend_function_entry swffill_functions[] = {  PHP_FALIAS(swffill,      swffill_init,        NULL)  PHP_FALIAS(moveto,       swffill_moveTo,      NULL)  PHP_FALIAS(scaleto,      swffill_scaleTo,     NULL)  PHP_FALIAS(rotateto,     swffill_rotateTo,    NULL)  PHP_FALIAS(skewxto,      swffill_skewXTo,     NULL)  PHP_FALIAS(skewyto,      swffill_skewYTo,     NULL)  { NULL, NULL, NULL }};/* {{{ proto class swffill_init(void)   Returns a new SWFFill object */PHP_FUNCTION(swffill_init){  php_error(E_ERROR, "Instantiating SWFFill won't do any good- use SWFShape::addFill() instead!");}static void destroy_SWFFill_resource(zend_rsrc_list_entry *resource TSRMLS_DC){  /* this only destroys the shallow wrapper for SWFFillStyle,     which SWFShape destroys.  So everything's okay.  I hope. */  destroySWFFill((SWFFill)resource->ptr);}/* }}} *//* {{{ internal function getFill   Returns the SWFFill object contained in zval *id */static SWFFill getFill(zval *id TSRMLS_DC){  void *fill = SWFgetProperty(id, "fill", 4, le_swffillp TSRMLS_CC);  if(!fill)    php_error(E_ERROR, "called object is not an SWFFill!");  return (SWFFill)fill;}/* }}} *//* {{{ proto void swffill_moveTo(int x, int y)   Moves this SWFFill to shape coordinates (x,y) */PHP_FUNCTION(swffill_moveTo){  zval **x, **y;  if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &x, &y) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(x);  convert_to_double_ex(y);  SWFFill_moveTo(getFill(getThis() TSRMLS_CC), Z_DVAL_PP(x), Z_DVAL_PP(y));}/* }}} *//* {{{ proto void swffill_scaleTo(float xScale [, float yScale])   Scales this SWFFill by xScale in the x direction, yScale in the y, or both to xScale if only one arg */PHP_FUNCTION(swffill_scaleTo){  zval **x, **y;  if(ZEND_NUM_ARGS() == 1)  {    if(zend_get_parameters_ex(1, &x) == FAILURE)      WRONG_PARAM_COUNT;    convert_to_double_ex(x);    SWFFill_scaleXYTo(getFill(getThis() TSRMLS_CC), Z_DVAL_PP(x), Z_DVAL_PP(x));  }  else if(ZEND_NUM_ARGS() == 2)  {    if(zend_get_parameters_ex(2, &x, &y) == FAILURE)      WRONG_PARAM_COUNT;    convert_to_double_ex(x);    convert_to_double_ex(y);    SWFFill_scaleXYTo(getFill(getThis() TSRMLS_CC), Z_DVAL_PP(x), Z_DVAL_PP(y));  }  else    WRONG_PARAM_COUNT;}/* }}} *//* {{{ proto void swffill_rotateTo(float degrees)   Rotates this SWFFill the given (clockwise) degrees from its original orientation */PHP_FUNCTION(swffill_rotateTo){  zval **degrees;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &degrees) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(degrees);  SWFFill_rotateTo(getFill(getThis() TSRMLS_CC), Z_DVAL_PP(degrees));}/* }}} *//* {{{ proto void swffill_skewXTo(float xSkew)   Sets this SWFFill's x skew value to xSkew */PHP_FUNCTION(swffill_skewXTo){  zval **x;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &x) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(x);  SWFFill_skewXTo(getFill(getThis() TSRMLS_CC), Z_DVAL_PP(x));}/* }}} *//* {{{ proto void swffill_skewYTo(float ySkew)   Sets this SWFFill's y skew value to ySkew */PHP_FUNCTION(swffill_skewYTo){  zval **y;  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &y) == FAILURE)    WRONG_PARAM_COUNT;  convert_to_double_ex(y);  SWFFill_skewYTo(getFill(getThis() TSRMLS_CC), Z_DVAL_PP(y));}/* }}} *//* }}} *//* {{{ SWFFontCharacter */static zend_function_entry swffontchar_functions[] = {  PHP_FALIAS(addchars,         swffontchar_addChars,      NULL)  PHP_FALIAS(addutf8chars,     swffontchar_addUTF8Chars,  NULL)  { NULL, NULL, NULL }};/* {{{ internal function SWFText getFont(zval *id)   Returns the Font object in zval *id */staticSWFFontCharacter getFontCharacter(zval *id TSRMLS_DC){  void *font = SWFgetProperty(id, "fontcharacter", 13, le_swffontcharp TSRMLS_CC);  if(!font)    php_error(E_ERROR, "called object is not an SWFFontCharacter!");  return (SWFFontCharacter)font;}static void destroy_SWFFontCharacter_resource(zend_rsrc_list_entry *resource TSRMLS_DC){

⌨️ 快捷键说明

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