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

📄 displayitem.xs

📁 flash swf file player
💻 XS
字号:
/* ==================================================================== * Copyright (c) 2000-2002 by Soheil Seyfaie. All rights reserved. * This program is free software; you can redistribute it and/or modify * it under the same terms as Perl itself. * ==================================================================== * * $Author: whamann $ * $Id: DisplayItem.xs,v 1.4 2002/11/12 09:52:59 whamann Exp $ */#include "EXTERN.h"#include "perl.h"#include "XSUB.h"#include "SWF.h"#include "perl_swf.h"MODULE = SWF::DisplayItem	PACKAGE = SWF::DisplayItem	PREFIX = SWFDisplayItem_PROTOTYPES: ENABLEvoid SWFDisplayItem_setMaskLevel(item, masklevel)	SWF::DisplayItem item	int masklevelvoidSWFDisplayItem_endMask(item)	SWF::DisplayItem itemvoid SWFDisplayItem_addAction(item, action, flags)	SWF::DisplayItem item	SWF::Action action	int flagsvoidSWFDisplayItem_moveTo(item, x, y)	SWF::DisplayItem item	int x 	int yvoidSWFDisplayItem_move(item, x, y)	SWF::DisplayItem item	int x 	int yvoid SWFDisplayItem_scaleTo(item, x, ...)        SWF::DisplayItem item        float            x        float            y   = NO_INIT        CODE:        y = (items > 2) ? (float)SvNV(ST(2)) : x;         SWFDisplayItem_scaleTo(item, x, y);void SWFDisplayItem_scale(item, x, ...)        SWF::DisplayItem item        float            x        float            y   = NO_INIT        CODE:        y = (items > 2) ? (float)SvNV(ST(2)) : x;         SWFDisplayItem_scale(item, x, y);void SWFDisplayItem_rotate(item, degrees)	SWF::DisplayItem item	float degreesvoid SWFDisplayItem_rotateTo(item, degrees)	SWF::DisplayItem item	float degreesvoid SWFDisplayItem_skewX(item, x)        SWF::DisplayItem item         float xvoidSWFDisplayItem_skewXTo(item, x)       SWF::DisplayItem item       float xvoid SWFDisplayItem_skewY(item, y)        SWF::DisplayItem item        float yvoid SWFDisplayItem_skewYTo(item, y)        SWF::DisplayItem item        float yvoidSWFDisplayItem_setDepth(item, depth)        SWF::DisplayItem item        int depthvoidSWFDisplayItem_setRatio(item, ratio)        SWF::DisplayItem item        float ratiovoidSWFDisplayItem_setColorAdd(item, r, g, b, a=0)        SWF::DisplayItem item        int r        int g        int b        int a        ALIAS:        SWF::DisplayItem::addColor = 1voidSWFDisplayItem_setColorMult(item, r, g, b, a=1.0)        SWF::DisplayItem item        float r        float g        float b        float a        ALIAS:        SWF::DisplayItem::multColor = 1void SWFDisplayItem_setName(item, name)       SWF::DisplayItem item       char *namevoid SWFDisplayItem_remove(item)	SWF::DisplayItem itemvoid SWFDisplayItem_getPosition(item)    	SWF::DisplayItem item	PREINIT:        float           x;        float           y;	PPCODE:	SWFDisplayItem_getPosition(item, &x, &y);	EXTEND(SP, 2);	PUSHs(sv_2mortal(newSVnv((double)x)));	PUSHs(sv_2mortal(newSVnv((double)y)));void SWFDisplayItem_getScale(item)	SWF::DisplayItem item	PREINIT:	float             xScale;	float             yScale;	PPCODE:	SWFDisplayItem_getScale(item, &xScale, &yScale);	EXTEND(SP, 2);	PUSHs(sv_2mortal(newSVnv((double)xScale)));	PUSHs(sv_2mortal(newSVnv((double)yScale)));void SWFDisplayItem_getSkew(item)	SWF::DisplayItem item	PREINIT:	float             xSkew;	float             ySkew;	PPCODE:	SWFDisplayItem_getSkew(item, &xSkew, &ySkew);	EXTEND(SP, 2);	PUSHs(sv_2mortal(newSVnv((double)xSkew)));	PUSHs(sv_2mortal(newSVnv((double)ySkew)));void SWFDisplayItem_getRotation(item)	SWF::DisplayItem item	PREINIT:	float    degrees;	CODE:	SWFDisplayItem_getRotation(item, &degrees);	ST(0) = sv_newmortal();	sv_setnv(ST(0), (double)degrees);intSWFDisplayItem_getDepth(item)	SWF::DisplayItem itemvoidSWFDisplayItem_DESTROY(item)	SWF::DisplayItem	item	CODE:        S_DEBUG(2, fprintf(stderr, "DisplayItem DESTROY CALLED\n"));	

⌨️ 快捷键说明

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