AR_Engine_SDK
|
Functions | |
function XUISlider | Create () end |
function XUISlider | Create (strBarTexture, strBallNormalTexture, eTexType) end |
function XUISlider | new () end |
function XUISlider | GetBarImage () end |
function XUISlider | GetProgressBarImage () end |
function XUISlider | GetBallImage () end |
function XUISlider | LoadBarTexture (strBarTexture, eTexType) end |
function XUISlider | LoadProgressBarTexture (strProgressBarTexture, eTexType) end |
function XUISlider | LoadBallNormalTexture (strBarNormalTexture, eTexType) end |
function XUISlider | LoadBallPressedTexture (strBarPressedTexture, eTexType) end |
function XUISlider | LoadBallDisabledTexture (strBarDisabledTexture, eTexType) end |
function XUISlider | GetBarTexture () end |
function XUISlider | GetProgressBarTexture () end |
function XUISlider | GetBallNormalTexture () end |
function XUISlider | GetBallPressedTexture () end |
function XUISlider | GetBallDisabledTexture () end |
function XUISlider | SetPercent (nPercent) end |
function XUISlider | GetPercent () end |
function XUISlider | SetMaxPercent (nMaxPercent) end |
function XUISlider | GetMaxPercent () end |
function XUISlider | AddEventListener (callback) end |
function XUISlider | OnTouchBegan (pTouch, pUnusedEvent) end |
function XUISlider | OnTouchMoved (pTouch, pUnusedEvent) end |
function XUISlider | OnTouchEnded (pTouch, pUnusedEvent) end |
function XUISlider | OnTouchCancelled (pTouch, pUnusedEvent) end |
function XUISlider | HitTest (vPoint, pHitPos) end |
function XUISlider | SetContentSize (vContentSize) end |
function XUISlider | SetBallSize (vSize) end |
function XUISlider | GetBallSize () end |
function XUISlider | PercentChangedEvent (event) end |
Variables | |
XUISlider = {} | |
XUISlider | XUI_ON_PERCENTAGE_CHANGED = 0 |
XUISlider | XUI_ON_SLIDEBALL_DOWN = 0 |
XUISlider | XUI_ON_SLIDEBALL_UP = 0 |
XUISlider | XUI_ON_SLIDEBALL_CANCEL = 0 |
function XUISlider AddEventListener | ( | callback | ) |
@manual xelua_XEngine_XUISlider_AddEventListener_manual XUISlider_AddEventListener_manual
callback | std::function<void(XUINode*, EventType)> |
function XUISlider Create | ( | strBarTexture | , |
strBallNormalTexture | , | ||
eTexType | |||
) |
根据传入的纹理创建一个滑块实例,并返回
strBarTexture | string 滑竿纹理路径 |
strBallNormalTexture | string 滑块球纹理路径 |
eTexType | number 纹理类型 |
function XUISlider GetBallDisabledTexture | ( | ) |
获取滑块球禁用纹理
function XUISlider GetBallNormalTexture | ( | ) |
获取滑块球常态纹理
function XUISlider GetBallPressedTexture | ( | ) |
获取滑块球按下状态纹理
function XUISlider GetBallSize | ( | ) |
获取滑块球大小
function XUISlider GetBarTexture | ( | ) |
获取滑竿纹理路径名
function XUISlider GetMaxPercent | ( | ) |
获取进度最大百分比
function XUISlider GetPercent | ( | ) |
获取进度百分比
function XUISlider GetProgressBarTexture | ( | ) |
获取进度条纹理路径名
function XUISlider HitTest | ( | vPoint | , |
pHitPos | |||
) |
检测给定的点是否在控件区域内
vPoint | XVECTOR2 给定的点 |
pHitPos | XVECTOR2 如果在区域内,返回相交的点位置(不需要可置为空) |
function XUISlider LoadBallDisabledTexture | ( | strBarDisabledTexture | , |
eTexType | |||
) |
加载滑块球禁用态纹理图片
strBarDisabledTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadBallNormalTexture | ( | strBarNormalTexture | , |
eTexType | |||
) |
加载滑块球常态纹理图片
strBarNormalTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadBallPressedTexture | ( | strBarPressedTexture | , |
eTexType | |||
) |
加载滑块球按下状态纹理图片
strBarPressedTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadBarTexture | ( | strBarTexture | , |
eTexType | |||
) |
加载滑竿纹理图片
strBarTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadProgressBarTexture | ( | strProgressBarTexture | , |
eTexType | |||
) |
加载进度条纹理图片
strProgressBarTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider OnTouchBegan | ( | pTouch | , |
pUnusedEvent | |||
) |
function XUISlider OnTouchCancelled | ( | pTouch | , |
pUnusedEvent | |||
) |
function XUISlider OnTouchEnded | ( | pTouch | , |
pUnusedEvent | |||
) |
function XUISlider OnTouchMoved | ( | pTouch | , |
pUnusedEvent | |||
) |
function XUISlider PercentChangedEvent | ( | event | ) |
进度条被改变的事件响应函数,不需要手动调用。
event | number |
function XUISlider SetBallSize | ( | vSize | ) |
设置滑块球大小
vSize | XVECTOR2 |
function XUISlider SetContentSize | ( | vContentSize | ) |
设置缩放为1时,节点的大小
vContentSize | XVECTOR2 节点的大小 |
function XUISlider SetMaxPercent | ( | nMaxPercent | ) |
设置进度最大百分比
nMaxPercent | number |
function XUISlider SetPercent | ( | nPercent | ) |
设置进度百分比,取值1-100
nPercent | number |
XUISlider XUI_ON_PERCENTAGE_CHANGED = 0 |
XUISlider XUI_ON_SLIDEBALL_CANCEL = 0 |
XUISlider XUI_ON_SLIDEBALL_DOWN = 0 |
XUISlider XUI_ON_SLIDEBALL_UP = 0 |
XUISlider = {} |