QML类型说明-ItemParticle

ItemParticle

ImportStatement:   import QtQuick.Particles 2.0

Inherits:      ParticlePainter

 

Properties

delegate :Component

fade : bool

 

Methods

voidfreeze(Item item)

voidgive(Item item)

voidtake(Item item, bool prioritize)

voidunfreeze(Item item)

 

Detailed Description

 

PropertyDocumentation

delegate :Component

delegate的实例将为每个逻辑粒子创建。同时和粒子一起移动。

 

fade : bool

如果为真,实例在生命周期结束,它将自动消失。如果为假,我们将不得不亲自实现影响的入口。默认为真。

 

MethodDocumentation

voidfreeze(Item item)

暂停逻辑粒子的时间流,允许我们控制粒子的移动。

 

voidgive(Item item)

ItemParticle给我们实例的控制,它将停止控制同时失去和逻辑粒子的联系。

 

voidtake(Item item, bool prioritize)

向ItemParticle请求接管控制。当逻辑粒子可用时,它将被发射。默认实例在队列里等待逻辑粒子,但如果优先级为真,它将立刻到队列的头部。

 

voidunfreeze(Item item)

为逻辑粒子它代表的实例重启时间流,允许它再次被粒子系统移动。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值