当前位置:K88软件开发文章中心编程语言APP编程CrossApp → 文章内容

CAGifView(显示Gif图片)

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-23 13:52:23

由 ?﹏???ζ???﹏﹏? 创建, 最后一次修改 2016-09-08 类说明显示一张Gif图片CAGifView 方法方法说明createWithFrame创建,并指定其FramecreateWithCenter创建,并设置其CentercreateWithGif创建,并指定Gifinit初始化initWithGif初始化指定GifsetFrame设置FramesetCenter设置CentersetGif设置GifsetTimes设置TimessetRepeatForever设置Gif永远重复isRepeatForever查看Gif是否永远重复CAGifView 方法说明static CAGifView* createWithFrame(const DRect& rect);返回值:CAGifView*参数:类型参数名说明const DRect&rect区域大小解释:创建,并指定其Framestatic CAGifView* createWithCenter(const DRect& rect);返回值:CAGifView*参数:类型参数名说明const DRect&rect中心点的位置及大小解释:创建,并设置其Centerstatic CAGifView* createWithGif(CAGif* gif);返回值:参数:类型参数名说明CAGif*gifGif解释:创建,并指定Gifvirtual bool init();返回值:bool参数:解释:初始化virtual bool initWithGif(CAGif* gif);返回值:bool参数:类型参数名说明CAGif*gifGif解释:初始化指定Gifvirtual void setFrame(DRect rect);返回值:void参数:类型参数名说明DRectrect区域大小解释:设置Framevirtual void setCenter(DRect rect);返回值:void参数:类型参数名说明DRectrect中心点的位置及大小解释:设置Centervoid setGif(CAGif* gif);返回值:参数:类型参数名说明CAGif*gifGif解释:设置Gifvoid setTimes(float times);返回值:void参数:类型参数名说明floattimesTimes解释:设置Timesvoid setRepeatForever(bool repeatForever);返回值:void参数:类型参数名说明boolrepeatForever永远重复解释:设置Gif永远重复bool isRepeatForever();返回值:bool参数:解释:查看Gif是否永远重复

CAGifView(显示Gif图片)