#include <XUIRadioButton.h>
#include <XUIRadioButton.h>
◆ AddEventListener()
@manual xelua_XEngine_XUIRadioButtonGroup_AddEventListener_manual XUIRadioButtonGroup_AddEventListener_manual
- 参数
-
callback | std::function<void(XUIRadioButton*pRadioButton, xint32 index, XUIRadioButtonGroup::EventType)> |
- 返回
- void
◆ AddRadioButton()
XUIRadioButtonGroup_AddRadioButton00
- 参数
-
- 返回
- void
◆ AddRadioButtonEventListener()
@manual xelua_XEngine_XUIRadioButton_AddRadioButtonEventListener_manual XUIRadioButton_AddRadioButtonEventListener_manual
- 参数
-
callback | std::function<void(XUINode*, XUIRadioButton::EventType)> |
- 返回
- void
◆ Create() [1/3]
◆ Create() [2/3]
function XUIRadioButton Create |
( |
strBackGroundNormalTexture |
, |
|
|
strBackGroundSelectedTexture |
, |
|
|
strCrossTexture |
, |
|
|
strBackGroundDisabledTexture |
, |
|
|
strFrontCrossDisabledTexture |
, |
|
|
eTextureType |
|
|
) |
| |
创建并返回一个控件实例
- 参数
-
strBackGroundNormalTexture | string 背景常态图片 |
strBackGroundSelectedTexture | string 背景选中态图片 |
strCrossTexture | string 前景图片 |
strBackGroundDisabledTexture | string 背景禁用态图片 |
strFrontCrossDisabledTexture | string 前景禁用状态图片 |
eTextureType | number 相对路径/绝对路径 |
- 返回
- XUIRadioButton 控件指针
◆ Create() [3/3]
function XUIRadioButton Create |
( |
strBackGroundTexture |
, |
|
|
strCrossTexture |
, |
|
|
eTextureType |
|
|
) |
| |
创建并返回一个控件实例
- 参数
-
strBackGroundTexture | string 背景常态图片 |
strCrossTexture | string 前景图片 |
eTextureType | number 相对路径/绝对路径 |
- 返回
- XUIRadioButton 控件指针
◆ DeselectAll()
当前Group被设置成允许不选中状态时,把当前Group下所有的子Button都设置成不选中状态
- 返回
- void
◆ GetGroup()
◆ GetNumberOfRadioButtons()
XUIRadioButtonGroup_GetNumberOfRadioButtons00
- 返回
- number
◆ GetRadioButtonByIndex()
◆ GetSelectedButtonIndex()
XUIRadioButtonGroup_GetSelectedButtonIndex00
- 返回
- number
◆ IsAllowedNoSelection()
XUIRadioButtonGroup_IsAllowedNoSelection00
- 返回
- boolean
◆ new()
◆ RemoveAllRadioButtons()
XUIRadioButtonGroup_RemoveAllRadioButtons00
- 返回
- void
◆ RemoveRadioButton()
XUIRadioButtonGroup_RemoveRadioButton00
- 参数
-
- 返回
- void
◆ SetAllowedNoSelection()
XUIRadioButtonGroup_SetAllowedNoSelection00
- 参数
-
bAllowedNoSelection | boolean |
- 返回
- void
◆ SetSelectedButton() [1/2]
XUIRadioButtonGroup_SetSelectedButton00
- 参数
-
- 返回
- void
◆ SetSelectedButton() [2/2]
XUIRadioButtonGroup_SetSelectedButton01
- 参数
-
- 返回
- void
◆ SetSelectedButtonWithoutEvent() [1/2]
XUIRadioButtonGroup_SetSelectedButtonWithoutEvent00
- 参数
-
- 返回
- void
◆ SetSelectedButtonWithoutEvent() [2/2]
XUIRadioButtonGroup_SetSelectedButtonWithoutEvent01
- 参数
-
- 返回
- void
◆ SELECTED
◆ UNSELECTED
◆ XUIRadioButton