2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ScrollView
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @extend Layout
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToTop
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToPercentHorizontal
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] isInertiaScrollEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToPercentBothDirection
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] getDirection
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @return ScrollView::Direction#ScrollView::Direction ret (return value: ccui.ScrollView::Direction)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToBottomLeft
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] getInnerContainer
|
|
|
|
-- @param self
|
|
|
|
-- @return Layout#Layout ret (return value: ccui.Layout)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToBottom
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] setDirection
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param #ccui.ScrollView::Direction direction
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToTopLeft
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToTopRight
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToBottomLeft
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] setInnerContainerSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] getInnerContainerSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] isBounceEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToPercentVertical
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
2014-05-12 16:14:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] addEventListener
|
|
|
|
-- @param self
|
|
|
|
-- @param #function func
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] setInertiaScrollEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToTopLeft
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToPercentHorizontal
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToBottomRight
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] setBounceEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToTop
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToLeft
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToPercentBothDirection
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToPercentVertical
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToBottom
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToBottomRight
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToLeft
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToRight
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] jumpToRight
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] scrollToTopRight
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] create
|
|
|
|
-- @param self
|
|
|
|
-- @return ScrollView#ScrollView ret (return value: ccui.ScrollView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] createInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return Ref#Ref ret (return value: cc.Ref)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- overload function: addChild(cc.Node, int)
|
|
|
|
--
|
|
|
|
-- overload function: addChild(cc.Node)
|
|
|
|
--
|
|
|
|
-- overload function: addChild(cc.Node, int, int)
|
|
|
|
--
|
|
|
|
-- @function [parent=#ScrollView] addChild
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#ScrollView] getChildByName
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param #string str
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#ScrollView] getDescription
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @return string#string ret (return value: string)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#ScrollView] update
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @param #float float
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] getLayoutType
|
|
|
|
-- @param self
|
2014-05-13 11:39:46 +08:00
|
|
|
-- @return Layout::Type#Layout::Type ret (return value: ccui.Layout::Type)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] removeAllChildrenWithCleanup
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#ScrollView] removeAllChildren
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
|
|
|
|
2014-05-27 10:21:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] findNextFocusedWidget
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget::FocusDirection focusdirection
|
|
|
|
-- @param #ccui.Widget widget
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#ScrollView] removeChild
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @param #bool bool
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- overload function: getChildren()
|
|
|
|
--
|
|
|
|
-- overload function: getChildren()
|
|
|
|
--
|
|
|
|
-- @function [parent=#ScrollView] getChildren
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @return array_table#array_table ret (retunr value: array_table)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#ScrollView] getChildByTag
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @param #int int
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] getChildrenCount
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] setLayoutType
|
|
|
|
-- @param self
|
2014-05-13 11:39:46 +08:00
|
|
|
-- @param #ccui.Layout::Type type
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ScrollView] ScrollView
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|