AR_Engine_SDK
Functions | Variables
XUIRadioButton.lua File Reference
类 XUIRadioButton 继承关系图:
Inheritance graph
类 XUIRadioButtonGroup 继承关系图:
Inheritance graph

Functions

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 Draw (pWorld, unParentFlags) end
 
function XUIRadioButton Cleanup () 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
 
function XUIRadioButtonGroup Clone () end
 

Variables

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

Function Documentation

◆ AddEventListener()

function XUIRadioButtonGroup AddEventListener ( callback  )

@manual xelua_XEngine_XUIRadioButtonGroup_AddEventListener_manual XUIRadioButtonGroup_AddEventListener_manual

Parameters
callbackstd::function<void(XUIRadioButton*pRadioButton, xint32 index, XUIRadioButtonGroup::EventType)>
Returns
void

◆ AddRadioButton()

function XUIRadioButtonGroup AddRadioButton ( pRadioButton  )

XUIRadioButtonGroup_AddRadioButton00

Parameters
pRadioButtonXUIRadioButton
Returns
void

◆ AddRadioButtonEventListener()

function XUIRadioButton AddRadioButtonEventListener ( callback  )

@manual xelua_XEngine_XUIRadioButton_AddRadioButtonEventListener_manual XUIRadioButton_AddRadioButtonEventListener_manual

Parameters
callbackstd::function<void(XUINode*, XUIRadioButton::EventType)>
Returns
void

◆ Cleanup()

function XUIRadioButton Cleanup ( )

XUIRadioButton_Cleanup00

Returns
void

◆ Clone()

function XUIRadioButtonGroup Clone ( )

XUIRadioButtonGroup_Clone00

Returns
XUINode

◆ Create() [1/3]

function XUIRadioButton Create ( )

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

Returns
XUIRadioButton 控件指针

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

Returns
XUIRadioButtonGroup 控件指针

◆ Create() [2/3]

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

创建并返回一个控件实例

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

◆ Create() [3/3]

function XUIRadioButton Create ( strBackGroundTexture  ,
strCrossTexture  ,
eTextureType   
)

创建并返回一个控件实例

Parameters
strBackGroundTexturestring 背景常态图片
strCrossTexturestring 前景图片
eTextureTypenumber 相对路径/绝对路径
Returns
XUIRadioButton 控件指针

◆ DeselectAll()

function XUIRadioButtonGroup DeselectAll ( )

XUIRadioButtonGroup_DeselectAll00

Returns
void

◆ Draw()

function XUIRadioButton Draw ( pWorld  ,
unParentFlags   
)

重写这个方法来绘制你自己的节点

Parameters
pWorldIXRenderSet 给定的世界指针
unParentFlagsnumber 渲染器标签
Returns
void

◆ GetGroup()

function XUIRadioButton GetGroup ( )

XUIRadioButton_GetGroup00

Returns
XUIRadioButtonGroup

◆ GetNumberOfRadioButtons()

function XUIRadioButtonGroup GetNumberOfRadioButtons ( )

XUIRadioButtonGroup_GetNumberOfRadioButtons00

Returns
number

◆ GetRadioButtonByIndex()

function XUIRadioButtonGroup GetRadioButtonByIndex ( nIndex  )

XUIRadioButtonGroup_GetRadioButtonByIndex00

Parameters
nIndexnumber
Returns
XUIRadioButton

◆ GetSelectedButtonIndex()

function XUIRadioButtonGroup GetSelectedButtonIndex ( )

XUIRadioButtonGroup_GetSelectedButtonIndex00

Returns
number

◆ IsAllowedNoSelection()

function XUIRadioButtonGroup IsAllowedNoSelection ( )

XUIRadioButtonGroup_IsAllowedNoSelection00

Returns
boolean

◆ new()

function XUIRadioButton new ( )

XUIRadioButton_new00

Returns
XUIRadioButton

XUIRadioButtonGroup_new00

Returns
XUIRadioButtonGroup

◆ RemoveAllRadioButtons()

function XUIRadioButtonGroup RemoveAllRadioButtons ( )

XUIRadioButtonGroup_RemoveAllRadioButtons00

Returns
void

◆ RemoveRadioButton()

function XUIRadioButtonGroup RemoveRadioButton ( pRadioButton  )

XUIRadioButtonGroup_RemoveRadioButton00

Parameters
pRadioButtonXUIRadioButton
Returns
void

◆ SetAllowedNoSelection()

function XUIRadioButtonGroup SetAllowedNoSelection ( bAllowedNoSelection  )

XUIRadioButtonGroup_SetAllowedNoSelection00

Parameters
bAllowedNoSelectionboolean
Returns
void

◆ SetSelectedButton() [1/2]

function XUIRadioButtonGroup SetSelectedButton ( nIndex  )

XUIRadioButtonGroup_SetSelectedButton00

Parameters
nIndexnumber
Returns
void

◆ SetSelectedButton() [2/2]

function XUIRadioButtonGroup SetSelectedButton ( pRadioButton  )

XUIRadioButtonGroup_SetSelectedButton01

Parameters
pRadioButtonXUIRadioButton
Returns
void

◆ SetSelectedButtonWithoutEvent() [1/2]

function XUIRadioButtonGroup SetSelectedButtonWithoutEvent ( nIndex  )

XUIRadioButtonGroup_SetSelectedButtonWithoutEvent00

Parameters
nIndexnumber
Returns
void

◆ SetSelectedButtonWithoutEvent() [2/2]

function XUIRadioButtonGroup SetSelectedButtonWithoutEvent ( pRadioButton  )

XUIRadioButtonGroup_SetSelectedButtonWithoutEvent01

Parameters
pRadioButtonXUIRadioButton
Returns
void

Variable Documentation

◆ SELECTED

XUIRadioButton SELECTED = 0

◆ UNSELECTED

XUIRadioButton UNSELECTED = 0

◆ XUIRadioButton