Click or drag to resize

GButton Fields

The GButton type exposes the following members.

Fields
  NameDescription
Public fieldchangeStateOnClick
For radio or checkbox. if false, the button will not change selected status on click. Default is true. 如果为true,对于单选和多选按钮,当玩家点击时,按钮会自动切换状态。设置为false,则不会。默认为true。
Public fielddata
User defined data.
(Inherited from GObject.)
Public fieldStatic memberDISABLED
Public fieldStatic memberDOWN
Public fielddragBounds
Restricted range of dragging.
(Inherited from GObject.)
Public fieldinitHeight
The initial height of the object.
(Inherited from GObject.)
Public fieldinitWidth
The initial width of the object.
(Inherited from GObject.)
Public fieldlinkedPopup
Show a popup on click. 可以为按钮设置一个关联的组件,当按钮被点击时,此组件被自动弹出。
Public fieldmaxHeight
(Inherited from GObject.)
Public fieldmaxWidth
(Inherited from GObject.)
Public fieldminHeight
(Inherited from GObject.)
Public fieldminWidth
(Inherited from GObject.)
Public fieldname
Name of the object.
(Inherited from GObject.)
Public fieldStatic memberOVER
Public fieldpackageItem
(Inherited from GObject.)
Public fieldStatic memberSELECTED_DISABLED
Public fieldStatic memberSELECTED_OVER
Public fieldsound
Play sound when button is clicked.
Public fieldsoundVolumeScale
Volume of the click sound. (0-1)
Public fieldsourceHeight
The source height of the object.
(Inherited from GObject.)
Public fieldsourceWidth
The source width of the object.
(Inherited from GObject.)
Public fieldStatic memberUP
Top
See Also