AR_Engine_SDK
|
Functions | |
function XUIComboBox | new () end |
function XUIComboBox | Create () end |
function XUIComboBox | Create (strEditBoxBackgroundTexture, strButtonTexture, strButtonSelectedTexture, strListViewBackgroundTexture, strItemBackgroundTexture, strItemBackgroundSerlectedTexture, eTextureType) end |
function XUIComboBox | Create (strEditBoxBackgroundTexture, strButtonTexture, strItemBackgroundTexture, eTextureType) end |
function XUIComboBox | SetAnchorPoint (vAnchorPoint) end |
function XUIComboBox | SetContentSize (vContentSize) end |
function XUIComboBox | LoadEditBoxBackgroundTexture (strEditBoxBackgroundTexture, eTextureType) end |
function XUIComboBox | LoadButtonNormalTexture (strButtonNormalTexture, eTextureType) end |
function XUIComboBox | LoadButtonSelectedTexture (strButtonSelectedTexture, eTextureType) end |
function XUIComboBox | LoadListViewBackgroundTexture (strListViewBackgroundTexture, eTextureType) end |
function XUIComboBox | LoadItemBackgroundTexture (strItemBackgroundTexture, eTextureType) end |
function XUIComboBox | GetEditBoxBackgroundTexture () end |
function XUIComboBox | GetButtonNormalTexture () end |
function XUIComboBox | GetButtonSelectedTexture () end |
function XUIComboBox | GetListViewBackgroundTexture () end |
function XUIComboBox | GetItemBackgroundTexture () end |
function XUIComboBox | SetAllowEdit (bAllowEdit) end |
function XUIComboBox | IsAllowEdit () end |
function XUIComboBox | SetItemHeight (nHeight) end |
function XUIComboBox | GetItemHeight () end |
function XUIComboBox | SetFontColor (color) end |
function XUIComboBox | GetFontColor () end |
function XUIComboBox | SetListViewHeight (ItemNum) end |
function XUIComboBox | GetListViewHeight () end |
function XUIComboBox | SetStringData (str) end |
function XUIComboBox | GetStringData () end |
function XUIComboBox | SetListData (vList) end |
function XUIComboBox | GetListData () end |
function XUIComboBox | SetCurrentData (strData) end |
function XUIComboBox | SetCurrentData (strData, bSafeCheck) end |
function XUIComboBox | GetCurrentData () end |
function XUIComboBox | AddComboBoxEventListener (callback) end |
Variables | |
XUIComboBox = {} | |
XUIComboBox | SELECTED_CHANGED = 0 |
function XUIComboBox AddComboBoxEventListener | ( | callback | ) |
@manual xelua_XEngine_XUIComboBox_AddComboBoxEventListener_manual XUIComboBox_AddComboBoxEventListener_manual
callback | std::function<void(XUIComboBox*, xint32 nSelectedIndex, _cstring szContent, XUIComboBox::EventType)> |
function XUIComboBox Create | ( | ) |
创建并返回一个空的控件实例的指针
function XUIComboBox Create | ( | strEditBoxBackgroundTexture | , |
strButtonTexture | , | ||
strButtonSelectedTexture | , | ||
strListViewBackgroundTexture | , | ||
strItemBackgroundTexture | , | ||
strItemBackgroundSerlectedTexture | , | ||
eTextureType | |||
) |
创建并返回一个控件实例
strEditBoxBackgroundTexture | string 编辑框背景图片 |
strButtonTexture | string 确定按钮图片 |
strButtonSelectedTexture | string 确定按钮被点击时的图片 |
strListViewBackgroundTexture | string 下拉列表背景图片 |
strItemBackgroundTexture | string 下拉项背景图片 |
strItemBackgroundSerlectedTexture | string 下拉项被选中时的背景图片 |
eTextureType | number 相对路径/绝对路径 |
function XUIComboBox Create | ( | strEditBoxBackgroundTexture | , |
strButtonTexture | , | ||
strItemBackgroundTexture | , | ||
eTextureType | |||
) |
创建并返回一个空的控件实例的指针
strEditBoxBackgroundTexture | string EditBox背景纹理路径 |
strButtonTexture | string Button背景纹理路径 |
strItemBackgroundTexture | string Item背景纹理路径 |
eTextureType | number 纹理类型 |
function XUIComboBox GetButtonNormalTexture | ( | ) |
获取确定按钮背景图片
function XUIComboBox GetButtonSelectedTexture | ( | ) |
获取确定按钮被选中时的背景图片
function XUIComboBox GetCurrentData | ( | ) |
获取当前选中的数据
function XUIComboBox GetEditBoxBackgroundTexture | ( | ) |
获取编辑框背景图片
function XUIComboBox GetFontColor | ( | ) |
获取字体颜色
function XUIComboBox GetItemBackgroundTexture | ( | ) |
获取下拉项背景图片
function XUIComboBox GetItemHeight | ( | ) |
获取每一个下拉项的高度
function XUIComboBox GetListData | ( | ) |
获取下拉列表显示的数据
function XUIComboBox GetListViewBackgroundTexture | ( | ) |
获取下拉列表背景图片
function XUIComboBox GetListViewHeight | ( | ) |
获取下拉列表的高度
function XUIComboBox GetStringData | ( | ) |
XUIComboBox_GetStringData00
function XUIComboBox IsAllowEdit | ( | ) |
获取是否允许编辑
function XUIComboBox LoadButtonNormalTexture | ( | strButtonNormalTexture | , |
eTextureType | |||
) |
加载确定按钮背景图片
strButtonNormalTexture | string |
eTextureType | number |
function XUIComboBox LoadButtonSelectedTexture | ( | strButtonSelectedTexture | , |
eTextureType | |||
) |
加载确定按钮被选中时的背景图片
strButtonSelectedTexture | string |
eTextureType | number |
function XUIComboBox LoadEditBoxBackgroundTexture | ( | strEditBoxBackgroundTexture | , |
eTextureType | |||
) |
加载编辑框背景图片
strEditBoxBackgroundTexture | string |
eTextureType | number |
function XUIComboBox LoadItemBackgroundTexture | ( | strItemBackgroundTexture | , |
eTextureType | |||
) |
加载下拉项背景图片
strItemBackgroundTexture | string |
eTextureType | number |
function XUIComboBox LoadListViewBackgroundTexture | ( | strListViewBackgroundTexture | , |
eTextureType | |||
) |
加载下拉列表背景图片
strListViewBackgroundTexture | string |
eTextureType | number |
function XUIComboBox new | ( | ) |
XUIComboBox_new00
function XUIComboBox SetAllowEdit | ( | bAllowEdit | ) |
设置是否允许编辑
bAllowEdit | boolean 下拉列表框是否允许直接编辑 |
function XUIComboBox SetAnchorPoint | ( | vAnchorPoint | ) |
XUIComboBox_SetAnchorPoint00
vAnchorPoint | XVECTOR2 |
function XUIComboBox SetContentSize | ( | vContentSize | ) |
XUIComboBox_SetContentSize00
vContentSize | XVECTOR2 |
function XUIComboBox SetCurrentData | ( | strData | ) |
设置当前选中数据为 strData字符串
strData | string 当前选中数据。 |
function XUIComboBox SetCurrentData | ( | strData | , |
bSafeCheck | |||
) |
XUIComboBox_SetCurrentData01
strData | string |
bSafeCheck | boolean |
function XUIComboBox SetFontColor | ( | color | ) |
function XUIComboBox SetItemHeight | ( | nHeight | ) |
设置每一个下拉项的高度
nHeight | number 下拉项高度。 |
function XUIComboBox SetListData | ( | vList | ) |
设置下拉列表显示的数据
vList | string[] 显示数据类型为字符串的数组。 |
function XUIComboBox SetListViewHeight | ( | ItemNum | ) |
设置下拉列表的高度
ItemNum | number 下拉列表项最多能显示出来几项。 |
function XUIComboBox SetStringData | ( | str | ) |
XUIComboBox_SetStringData00
str | string |
XUIComboBox SELECTED_CHANGED = 0 |
XUIComboBox = {} |