#include <XUITabControl.h>
#include <XUITabControl.h>

|
function XUITabHeader | Create () end |
|
function XUITabHeader | Create (strTitle, strBackgroundTexture, strCrossTexture, texType) end |
|
function XUITabHeader | Create (strTitle, strBackgroundTexture, strBackgroundSelectedTexture, strCrossTexture, strBackgroundDisabledTexture, strFrontCrossDisabledTexture, texType) end |
|
function XUITabHeader | GetTitleRenderer () end |
|
function XUITabHeader | SetTitleText (strText) end |
|
function XUITabHeader | GetTitleText () end |
|
function XUITabHeader | SetTitleColor (color) end |
|
function XUITabHeader | GetTitleColor () end |
|
function XUITabHeader | SetTitleFontSize (fSize) end |
|
function XUITabHeader | GetTitleFontSize () end |
|
function XUITabHeader | SetTitleFontName (strFontName) end |
|
function XUITabHeader | GetTitleFontName () end |
|
function XUITabHeader | GetIndexInTabControl () end |
|
function XUITabControl | new () end |
|
function XUITabControl | RemoveTab (nIndex) end |
|
function XUITabControl | RemoveTab (nIndex, bClean) end |
|
function XUITabControl | SetSelectTab (nIndex) end |
|
function XUITabControl | SetSelectTab (pTabHeader) end |
|
function XUITabControl | GetTabHeader (nIndex) end |
|
function XUITabControl | GetTabContainer (nIndex) end |
|
function XUITabControl | InsertTab (nIndex, pHeader, pContainer) end |
|
function XUITabControl | AppendTab (pContainer) end |
|
function XUITabControl | GetIndexByContainer (pContainer) end |
|
function XUITabControl | GetTabCount () end |
|
function XUITabControl | GetSelectedTabIndex () end |
|
function XUITabControl | IndexOfTabHeader (pTabCell) end |
|
function XUITabControl | AddTabChangedEventListener (callback) end |
|
function XUITabControl | SetHeaderWidth (fHeaderWidth) end |
|
function XUITabControl | GetHeaderWidth () end |
|
function XUITabControl | SetHeaderHeight (fHeaderHeight) end |
|
function XUITabControl | GetHeaderHeight () end |
|
function XUITabControl | SetHeaderSelectedZoom (fZoom) end |
|
function XUITabControl | GetHeaderSelectedZoom () end |
|
function XUITabControl | SetHeaderDockPlace (eDockPlace) end |
|
function XUITabControl | GetHeaderDockPlace () end |
|
◆ AddTabChangedEventListener()
@manual xelua_XEngine_XUITabControl_AddTabChangedEventListener_manual XUITabControl_AddTabChangedEventListener_manual
- 参数
-
callback | std::function<void(XUINode*pNode, xint32 nTabIndex, EventType)> |
- 返回
- void
◆ AppendTab()
XUITabControl_AppendTab00
- 参数
-
- 返回
- void
◆ Create() [1/3]
◆ Create() [2/3]
function XUITabHeader Create |
( |
strTitle |
, |
|
|
strBackgroundTexture |
, |
|
|
strBackgroundSelectedTexture |
, |
|
|
strCrossTexture |
, |
|
|
strBackgroundDisabledTexture |
, |
|
|
strFrontCrossDisabledTexture |
, |
|
|
texType |
|
|
) |
| |
创建一个页头实例。
- 参数
-
strTitle | string 页头文字。 |
strBackgroundTexture | string 页头的背景图片。 |
strBackgroundSelectedTexture | string 页头被选中时的背景图片。 |
strCrossTexture | string 页头被选中时显示的图片,不被选中不显示。 |
strBackgroundDisabledTexture | string 页头禁用时的背景图片。 |
strFrontCrossDisabledTexture | string 页头禁用还被选中时显示的图片。 |
texType | number 相对路径/绝对路径。 |
- 返回
- XUITabHeader
◆ Create() [3/3]
function XUITabHeader Create |
( |
strTitle |
, |
|
|
strBackgroundTexture |
, |
|
|
strCrossTexture |
, |
|
|
texType |
|
|
) |
| |
创建一个页头实例。
- 参数
-
strTitle | string 页头文字。 |
strBackgroundTexture | string 页头的背景图片。 |
strCrossTexture | string 页头被选中时显示的图片,不被选中不显示。 |
texType | number 相对路径/绝对路径。 |
- 返回
- XUITabHeader
◆ GetHeaderDockPlace()
返回页头位置
- 返回
- number 页头位置:TOP上、BOTTOM下、LEFT左、RIGHT右。
◆ GetHeaderHeight()
获取所有的页头高度
- 返回
- number 当前页头高度。
◆ GetHeaderSelectedZoom()
获取当前设置的页头被选中时,它的缩放增量
- 返回
- number 返回缩放增量。
◆ GetHeaderWidth()
获取所有的页头宽度
- 返回
- number 当前页头宽度。
◆ GetIndexByContainer()
XUITabControl_GetIndexByContainer00
- 参数
-
- 返回
- number
◆ GetIndexInTabControl()
获取该页头在Table页中的索引值,如果没有返回-1
- 返回
- number 返回页头在Table页中的索引值。
◆ GetSelectedTabIndex()
◆ GetTabContainer()
XUITabControl_GetTabContainer00
- 参数
-
- 返回
- XUILayout
◆ GetTabCount()
◆ GetTabHeader()
◆ GetTitleColor()
◆ GetTitleFontName()
获取页头显示文字的字体路径
- 返回
- string 返回字体路径。
◆ GetTitleFontSize()
获取页头显示文字的字体大小
- 返回
- number 返回文字字体大小。
◆ GetTitleRenderer()
◆ GetTitleText()
获取页头显示的文字
- 返回
- string 返回显示的文字。
◆ IndexOfTabHeader()
XUITabControl_IndexOfTabHeader00
- 参数
-
- 返回
- number
◆ InsertTab()
function XUITabControl InsertTab |
( |
nIndex |
, |
|
|
pHeader |
, |
|
|
pContainer |
|
|
) |
| |
XUITabControl_InsertTab00
- 参数
-
- 返回
- void
◆ new()
◆ RemoveTab() [1/2]
XUITabControl_RemoveTab00
- 参数
-
- 返回
- void
◆ RemoveTab() [2/2]
XUITabControl_RemoveTab01
- 参数
-
nIndex | number |
bClean | boolean |
- 返回
- void
◆ SetHeaderDockPlace()
XUITabControl_SetHeaderDockPlace00
- 参数
-
- 返回
- void
◆ SetHeaderHeight()
XUITabControl_SetHeaderHeight00
- 参数
-
- 返回
- void
◆ SetHeaderSelectedZoom()
XUITabControl_SetHeaderSelectedZoom00
- 参数
-
- 返回
- void
◆ SetHeaderWidth()
XUITabControl_SetHeaderWidth00
- 参数
-
- 返回
- void
◆ SetSelectTab() [1/2]
XUITabControl_SetSelectTab00
- 参数
-
- 返回
- void
◆ SetSelectTab() [2/2]
XUITabControl_SetSelectTab01
- 参数
-
- 返回
- void
◆ SetTitleColor()
◆ SetTitleFontName()
◆ SetTitleFontSize()
XUITabHeader_SetTitleFontSize00
- 参数
-
- 返回
- void
◆ SetTitleText()
◆ SELECTED
◆ UNSELECTED
◆ XUITabHeader