AR_Engine_SDK
载入中...
搜索中...
未找到
函数 | 变量
XUIRadioButton.lua 文件参考

#include <XUIRadioButton.h>

类 XUIRadioButton 继承关系图:
Inheritance graph

#include <XUIRadioButton.h>

类 XUIRadioButtonGroup 继承关系图:
Inheritance graph

函数

function XUIRadioButton new () end
 
function XUIRadioButton Create () end
 
function XUIRadioButton Create (strBackGroundNormalTexture, strBackGroundSelectedTexture, strCrossTexture, strBackGroundDisabledTexture, strFrontCrossDisabledTexture, eTextureType) end
 
function XUIRadioButton Create (strBackGroundTexture, strCrossTexture, eTextureType) end
 
function XUIRadioButton GetGroup () end
 
function XUIRadioButton AddRadioButtonEventListener (callback) end
 
function XUIRadioButtonGroup AddEventListener (callback) end
 
function XUIRadioButtonGroup GetSelectedButtonIndex () end
 
function XUIRadioButtonGroup SetSelectedButton (nIndex) end
 
function XUIRadioButtonGroup SetSelectedButton (pRadioButton) end
 
function XUIRadioButtonGroup SetSelectedButtonWithoutEvent (nIndex) end
 
function XUIRadioButtonGroup SetSelectedButtonWithoutEvent (pRadioButton) end
 
function XUIRadioButtonGroup AddRadioButton (pRadioButton) end
 
function XUIRadioButtonGroup RemoveRadioButton (pRadioButton) end
 
function XUIRadioButtonGroup RemoveAllRadioButtons () end
 
function XUIRadioButtonGroup GetNumberOfRadioButtons () end
 
function XUIRadioButtonGroup GetRadioButtonByIndex (nIndex) end
 
function XUIRadioButtonGroup SetAllowedNoSelection (bAllowedNoSelection) end
 
function XUIRadioButtonGroup IsAllowedNoSelection () end
 
function XUIRadioButtonGroup DeselectAll () end
 

变量

 XUIRadioButton = {}
 
XUIRadioButton SELECTED = 0
 
XUIRadioButton UNSELECTED = 0
 

函数说明

◆ AddEventListener()

function XUIRadioButtonGroup AddEventListener ( callback  )

@manual xelua_XEngine_XUIRadioButtonGroup_AddEventListener_manual XUIRadioButtonGroup_AddEventListener_manual

参数
callbackstd::function<void(XUIRadioButton*pRadioButton, xint32 index, XUIRadioButtonGroup::EventType)>
返回
void

◆ AddRadioButton()

function XUIRadioButtonGroup AddRadioButton ( pRadioButton  )

XUIRadioButtonGroup_AddRadioButton00

参数
pRadioButtonXUIRadioButton
返回
void

◆ AddRadioButtonEventListener()

function XUIRadioButton AddRadioButtonEventListener ( callback  )

@manual xelua_XEngine_XUIRadioButton_AddRadioButtonEventListener_manual XUIRadioButton_AddRadioButtonEventListener_manual

参数
callbackstd::function<void(XUINode*, XUIRadioButton::EventType)>
返回
void

◆ Create() [1/3]

function XUIRadioButton Create ( )

创建并返回一个空的控件实例的指针

返回
XUIRadioButton 控件指针

创建并返回一个空的控件实例的指针

返回
XUIRadioButtonGroup 控件指针

◆ Create() [2/3]

function XUIRadioButton Create ( strBackGroundNormalTexture  ,
strBackGroundSelectedTexture  ,
strCrossTexture  ,
strBackGroundDisabledTexture  ,
strFrontCrossDisabledTexture  ,
eTextureType   
)

创建并返回一个控件实例

参数
strBackGroundNormalTexturestring 背景常态图片
strBackGroundSelectedTexturestring 背景选中态图片
strCrossTexturestring 前景图片
strBackGroundDisabledTexturestring 背景禁用态图片
strFrontCrossDisabledTexturestring 前景禁用状态图片
eTextureTypenumber 相对路径/绝对路径
返回
XUIRadioButton 控件指针

◆ Create() [3/3]

function XUIRadioButton Create ( strBackGroundTexture  ,
strCrossTexture  ,
eTextureType   
)

创建并返回一个控件实例

参数
strBackGroundTexturestring 背景常态图片
strCrossTexturestring 前景图片
eTextureTypenumber 相对路径/绝对路径
返回
XUIRadioButton 控件指针

◆ DeselectAll()

function XUIRadioButtonGroup DeselectAll ( )

当前Group被设置成允许不选中状态时,把当前Group下所有的子Button都设置成不选中状态

返回
void

◆ GetGroup()

function XUIRadioButton GetGroup ( )

XUIRadioButton_GetGroup00

返回
XUIRadioButtonGroup

◆ GetNumberOfRadioButtons()

function XUIRadioButtonGroup GetNumberOfRadioButtons ( )

XUIRadioButtonGroup_GetNumberOfRadioButtons00

返回
number

◆ GetRadioButtonByIndex()

function XUIRadioButtonGroup GetRadioButtonByIndex ( nIndex  )

XUIRadioButtonGroup_GetRadioButtonByIndex00

参数
nIndexnumber
返回
XUIRadioButton

◆ GetSelectedButtonIndex()

function XUIRadioButtonGroup GetSelectedButtonIndex ( )

XUIRadioButtonGroup_GetSelectedButtonIndex00

返回
number

◆ IsAllowedNoSelection()

function XUIRadioButtonGroup IsAllowedNoSelection ( )

XUIRadioButtonGroup_IsAllowedNoSelection00

返回
boolean

◆ new()

function XUIRadioButton new ( )

XUIRadioButton_new00

返回
XUIRadioButton

XUIRadioButtonGroup_new00

返回
XUIRadioButtonGroup

◆ RemoveAllRadioButtons()

function XUIRadioButtonGroup RemoveAllRadioButtons ( )

XUIRadioButtonGroup_RemoveAllRadioButtons00

返回
void

◆ RemoveRadioButton()

function XUIRadioButtonGroup RemoveRadioButton ( pRadioButton  )

XUIRadioButtonGroup_RemoveRadioButton00

参数
pRadioButtonXUIRadioButton
返回
void

◆ SetAllowedNoSelection()

function XUIRadioButtonGroup SetAllowedNoSelection ( bAllowedNoSelection  )

XUIRadioButtonGroup_SetAllowedNoSelection00

参数
bAllowedNoSelectionboolean
返回
void

◆ SetSelectedButton() [1/2]

function XUIRadioButtonGroup SetSelectedButton ( nIndex  )

XUIRadioButtonGroup_SetSelectedButton00

参数
nIndexnumber
返回
void

◆ SetSelectedButton() [2/2]

function XUIRadioButtonGroup SetSelectedButton ( pRadioButton  )

XUIRadioButtonGroup_SetSelectedButton01

参数
pRadioButtonXUIRadioButton
返回
void

◆ SetSelectedButtonWithoutEvent() [1/2]

function XUIRadioButtonGroup SetSelectedButtonWithoutEvent ( nIndex  )

XUIRadioButtonGroup_SetSelectedButtonWithoutEvent00

参数
nIndexnumber
返回
void

◆ SetSelectedButtonWithoutEvent() [2/2]

function XUIRadioButtonGroup SetSelectedButtonWithoutEvent ( pRadioButton  )

XUIRadioButtonGroup_SetSelectedButtonWithoutEvent01

参数
pRadioButtonXUIRadioButton
返回
void

变量说明

◆ SELECTED

XUIRadioButton SELECTED = 0

◆ UNSELECTED

XUIRadioButton UNSELECTED = 0

◆ XUIRadioButton