GButton Fields |
The GButton type exposes the following members.
| Name | Description | |
|---|---|---|
| changeStateOnClick |
For radio or checkbox. if false, the button will not change selected status on click. Default is true.
如果为true,对于单选和多选按钮,当玩家点击时,按钮会自动切换状态。设置为false,则不会。默认为true。
| |
| data |
User defined data.
(Inherited from GObject.) | |
| DISABLED | ||
| DOWN | ||
| dragBounds |
Restricted range of dragging.
(Inherited from GObject.) | |
| initHeight |
The initial height of the object.
(Inherited from GObject.) | |
| initWidth |
The initial width of the object.
(Inherited from GObject.) | |
| linkedPopup |
Show a popup on click.
可以为按钮设置一个关联的组件,当按钮被点击时,此组件被自动弹出。
| |
| maxHeight | (Inherited from GObject.) | |
| maxWidth | (Inherited from GObject.) | |
| minHeight | (Inherited from GObject.) | |
| minWidth | (Inherited from GObject.) | |
| name |
Name of the object.
(Inherited from GObject.) | |
| OVER | ||
| packageItem | (Inherited from GObject.) | |
| SELECTED_DISABLED | ||
| SELECTED_OVER | ||
| sound |
Play sound when button is clicked.
| |
| soundVolumeScale |
Volume of the click sound. (0-1)
| |
| sourceHeight |
The source height of the object.
(Inherited from GObject.) | |
| sourceWidth |
The source width of the object.
(Inherited from GObject.) | |
| UP |