xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数
QSoundEffect类 参考
类 QSoundEffect 继承关系图:
QObject

Public 成员函数

额外继承的成员函数

详细描述

在文件 QSoundEffect.x4 行定义.

构造及析构函数说明

◆ QSoundEffect() [1/2]

QSoundEffect ( )

在文件 QSoundEffect.x5 行定义.

5{}

◆ QSoundEffect() [2/2]

QSoundEffect ( long  handle)

在文件 QSoundEffect.x6 行定义.

6 {
7 super(handle);
8 }

成员函数说明

◆ create() [1/2]

bool create ( )

在文件 QSoundEffect.x9 行定义.

9 {
10 nativehandle = QtXnl.createQObject(QType.qtSoundEffect, this, 0l);
11 if (nativehandle == 0){
12 return false;
13 }
14 return true;
15 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QObject  parent)

在文件 QSoundEffect.x16 行定义.

16 {
17 nativehandle = QtXnl.createQObject(QType.qtSoundEffect, this, parent.nativehandle);
18 if (nativehandle == 0){
19 return false;
20 }
21 return true;
22 }

◆ play()

void play ( )

在文件 QSoundEffect.x26 行定义.

26 {
27 QtXnl.widget_slot(nativehandle, Constant.QSOUNDEFFECT_PLAY);
28 }

◆ setLocalSource()

void setLocalSource ( String  file)

在文件 QSoundEffect.x23 行定义.

23 {
24 QtXnl.widget_slot_string(nativehandle, Constant.SOUNDEFSETURI, file);
25 }

◆ setLoopCount()

void setLoopCount ( int  loop)

在文件 QSoundEffect.x35 行定义.

35 {
36 QtXnl.widget_set_vint_value(nativehandle, Constant.QSOUNDEFFECT_SETLOOPCOUNT, loop);
37 }

◆ setVolume()

void setVolume ( int  volume)

在文件 QSoundEffect.x32 行定义.

32 {
33 QtXnl.widget_set_vint_value(nativehandle, Constant.QSOUNDEFFECT_SETVOLUME, volume);
34 }

◆ stop()

void stop ( )

在文件 QSoundEffect.x29 行定义.

29 {
30 QtXnl.widget_slot(nativehandle, Constant.QSOUNDEFFECT_STOP);
31 }