2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ListView
|
|
|
|
-- @extend ScrollView
|
|
|
|
-- @parent_module ccui
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Set the gravity of ListView.<br>
|
|
|
|
-- see `ListViewGravity`
|
|
|
|
-- @function [parent=#ListView] setGravity
|
|
|
|
-- @param self
|
|
|
|
-- @param #int gravity
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Removes the last item of ListView.
|
|
|
|
-- @function [parent=#ListView] removeLastItem
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Get the left padding in ListView<br>
|
|
|
|
-- return Left padding in float
|
|
|
|
-- @function [parent=#ListView] getLeftPadding
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Query the center item<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- return An item instance.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getCenterItemInCurrentView
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
-- brief Query current selected widget's index.<br>
|
|
|
|
-- return An index of a selected item.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getCurSelectedIndex
|
|
|
|
-- @param self
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2016-06-29 12:47:21 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Get the time in seconds to scroll between items.<br>
|
|
|
|
-- return The time in seconds to scroll between items<br>
|
|
|
|
-- see setScrollDuration(float)
|
|
|
|
-- @function [parent=#ListView] getScrollDuration
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Query whether the magnetic out of boundary is allowed.
|
|
|
|
-- @function [parent=#ListView] getMagneticAllowedOutOfBoundary
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Query margin between each item in ListView.<br>
|
|
|
|
-- return A margin in float.
|
|
|
|
-- @function [parent=#ListView] getItemsMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @overload self, int, vec2_table, vec2_table, float
|
|
|
|
-- @overload self, int, vec2_table, vec2_table
|
|
|
|
-- @function [parent=#ListView] scrollToItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #int itemIndex
|
|
|
|
-- @param #vec2_table positionRatioInView
|
|
|
|
-- @param #vec2_table itemAnchorPoint
|
|
|
|
-- @param #float timeInSec
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Jump to specific item<br>
|
|
|
|
-- param itemIndex Specifies the item's index<br>
|
|
|
|
-- param positionRatioInView Specifies the position with ratio in list view's content size.<br>
|
|
|
|
-- param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.
|
|
|
|
-- @function [parent=#ListView] jumpToItem
|
|
|
|
-- @param self
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @param #int itemIndex
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param #vec2_table positionRatioInView
|
|
|
|
-- @param #vec2_table itemAnchorPoint
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
2017-06-20 09:01:57 +08:00
|
|
|
-- Change padding with top padding<br>
|
|
|
|
-- param t Top padding in float
|
|
|
|
-- @function [parent=#ListView] setTopPadding
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2017-06-20 09:01:57 +08:00
|
|
|
-- @param #float t
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Return the index of specified widget.<br>
|
|
|
|
-- param item A widget pointer.<br>
|
|
|
|
-- return The index of a given widget in ListView.
|
|
|
|
-- @function [parent=#ListView] getIndex
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget item
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Insert a custom item into the end of ListView.<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- param item An item in `Widget*`.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] pushBackCustomItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget item
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
2016-06-02 17:16:13 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2016-07-04 09:40:35 +08:00
|
|
|
-- brief Set current selected widget's index and call TouchEventType::ENDED event.<br>
|
|
|
|
-- param itemIndex A index of a selected item.
|
2016-06-02 17:16:13 +08:00
|
|
|
-- @function [parent=#ListView] setCurSelectedIndex
|
|
|
|
-- @param self
|
|
|
|
-- @param #int itemIndex
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Insert a default item(create by cloning model) into listview at a give index.<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- param index An index in ssize_t.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] insertDefaultItem
|
|
|
|
-- @param self
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @param #int index
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Set magnetic type of ListView.<br>
|
|
|
|
-- see `MagneticType`
|
|
|
|
-- @function [parent=#ListView] setMagneticType
|
|
|
|
-- @param self
|
|
|
|
-- @param #int magneticType
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Set magnetic allowed out of boundary.
|
|
|
|
-- @function [parent=#ListView] setMagneticAllowedOutOfBoundary
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool magneticAllowedOutOfBoundary
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
-- Add an event click callback to ListView, then one item of Listview is clicked, the callback will be called.<br>
|
2015-09-29 15:45:48 +08:00
|
|
|
-- param callback A callback function with type of `ccListViewCallback`.
|
|
|
|
-- @function [parent=#ListView] addEventListener
|
|
|
|
-- @param self
|
|
|
|
-- @param #function callback
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] doLayout
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- brief Query the topmost item in horizontal list<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- return An item instance.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getTopmostItemInCurrentView
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Change padding with left, top, right, and bottom padding.<br>
|
|
|
|
-- param l Left padding in float.<br>
|
|
|
|
-- param t Top margin in float.<br>
|
|
|
|
-- param r Right margin in float.<br>
|
|
|
|
-- param b Bottom margin in float.
|
|
|
|
-- @function [parent=#ListView] setPadding
|
|
|
|
-- @param self
|
|
|
|
-- @param #float l
|
|
|
|
-- @param #float t
|
|
|
|
-- @param #float r
|
|
|
|
-- @param #float b
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Remove all items in current ListView.
|
|
|
|
-- @function [parent=#ListView] removeAllItems
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Get the right padding in ListView<br>
|
|
|
|
-- return Right padding in float
|
|
|
|
-- @function [parent=#ListView] getRightPadding
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Query the bottommost item in horizontal list<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- return An item instance.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getBottommostItemInCurrentView
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Return all items in a ListView.<br>
|
|
|
|
-- returns A vector of widget pointers.
|
|
|
|
-- @function [parent=#ListView] getItems
|
|
|
|
-- @param self
|
|
|
|
-- @return array_table#array_table ret (return value: array_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- brief Query the leftmost item in horizontal list<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- return An item instance.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getLeftmostItemInCurrentView
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Set the margin between each item in ListView.<br>
|
2016-07-11 15:54:54 +08:00
|
|
|
-- param margin A margin in float.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] setItemsMargin
|
|
|
|
-- @param self
|
|
|
|
-- @param #float margin
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Get magnetic type of ListView.
|
|
|
|
-- @function [parent=#ListView] getMagneticType
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
-- Return an item at a given index.<br>
|
2015-09-29 15:45:48 +08:00
|
|
|
-- param index A given index in ssize_t.<br>
|
|
|
|
-- return A widget instance.
|
|
|
|
-- @function [parent=#ListView] getItem
|
|
|
|
-- @param self
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @param #int index
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
-- Remove an item at given index.<br>
|
2015-09-29 15:45:48 +08:00
|
|
|
-- param index A given index in ssize_t.
|
|
|
|
-- @function [parent=#ListView] removeItem
|
|
|
|
-- @param self
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @param #int index
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
2017-06-20 09:01:57 +08:00
|
|
|
-- Get the top padding in ListView<br>
|
|
|
|
-- return Top padding in float
|
|
|
|
-- @function [parent=#ListView] getTopPadding
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2017-06-20 09:01:57 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
2015-11-04 19:09:49 +08:00
|
|
|
-- Insert a default item(create by a cloned model) at the end of the listview.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] pushBackDefaultItem
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
2017-06-20 09:01:57 +08:00
|
|
|
-- Change padding with left padding<br>
|
|
|
|
-- param l Left padding in float.
|
|
|
|
-- @function [parent=#ListView] setLeftPadding
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2017-06-20 09:01:57 +08:00
|
|
|
-- @param #float l
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- brief Query the closest item to a specific position in inner container.<br>
|
|
|
|
-- param targetPosition Specifies the target position in inner container's coordinates.<br>
|
|
|
|
-- param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- return An item instance if list view is not empty. Otherwise, returns null.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getClosestItemToPosition
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table targetPosition
|
|
|
|
-- @param #vec2_table itemAnchorPoint
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
2017-06-20 09:01:57 +08:00
|
|
|
-- Change padding with bottom padding<br>
|
|
|
|
-- param b Bottom padding in float
|
|
|
|
-- @function [parent=#ListView] setBottomPadding
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2017-06-20 09:01:57 +08:00
|
|
|
-- @param #float b
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2016-06-29 12:47:21 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Set the time in seconds to scroll between items.<br>
|
|
|
|
-- Subsequent calls of function 'scrollToItem', will take 'time' seconds for scrolling.<br>
|
|
|
|
-- param time The seconds needed to scroll between two items. 'time' must be >= 0<br>
|
|
|
|
-- see scrollToItem(ssize_t, const Vec2&, const Vec2&)
|
|
|
|
-- @function [parent=#ListView] setScrollDuration
|
|
|
|
-- @param self
|
|
|
|
-- @param #float time
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Query the closest item to a specific position in current view.<br>
|
|
|
|
-- For instance, to find the item in the center of view, call 'getClosestItemToPositionInCurrentView(Vec2::ANCHOR_MIDDLE, Vec2::ANCHOR_MIDDLE)'.<br>
|
|
|
|
-- param positionRatioInView Specifies the target position with ratio in list view's content size.<br>
|
|
|
|
-- param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.<br>
|
2016-01-20 18:21:41 +08:00
|
|
|
-- return An item instance if list view is not empty. Otherwise, returns null.
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @function [parent=#ListView] getClosestItemToPositionInCurrentView
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table positionRatioInView
|
|
|
|
-- @param #vec2_table itemAnchorPoint
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Query the rightmost item in horizontal list<br>
|
|
|
|
-- return An item instance.
|
|
|
|
-- @function [parent=#ListView] getRightmostItemInCurrentView
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Change padding with right padding<br>
|
|
|
|
-- param r Right padding in float
|
|
|
|
-- @function [parent=#ListView] setRightPadding
|
|
|
|
-- @param self
|
|
|
|
-- @param #float r
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
-- Set an item model for listview.<br>
|
2015-09-29 15:45:48 +08:00
|
|
|
-- When calling `pushBackDefaultItem`, the model will be used as a blueprint and new model copy will be inserted into ListView.<br>
|
|
|
|
-- param model Model in `Widget*`.
|
|
|
|
-- @function [parent=#ListView] setItemModel
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget model
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
2017-06-20 09:01:57 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Get the bottom padding in ListView<br>
|
|
|
|
-- return Bottom padding in float
|
|
|
|
-- @function [parent=#ListView] getBottomPadding
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Insert a custom widget into ListView at a given index.<br>
|
|
|
|
-- param item A widget pointer to be inserted.<br>
|
|
|
|
-- param index A given index in ssize_t.
|
|
|
|
-- @function [parent=#ListView] insertCustomItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget item
|
2016-09-02 10:44:55 +08:00
|
|
|
-- @param #int index
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Create an empty ListView.<br>
|
|
|
|
-- return A ListView instance.
|
|
|
|
-- @function [parent=#ListView] create
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView ret (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] createInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return Ref#Ref ret (return value: cc.Ref)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Node, int
|
|
|
|
-- @overload self, cc.Node
|
|
|
|
-- @overload self, cc.Node, int, int
|
|
|
|
-- @overload self, cc.Node, int, string
|
|
|
|
-- @function [parent=#ListView] addChild
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #int zOrder
|
|
|
|
-- @param #string name
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Override functions
|
|
|
|
-- @function [parent=#ListView] jumpToBottom
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Changes scroll direction of scrollview.<br>
|
|
|
|
-- Direction Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll.<br>
|
|
|
|
-- param dir Set the list view's scroll direction.
|
|
|
|
-- @function [parent=#ListView] setDirection
|
|
|
|
-- @param self
|
|
|
|
-- @param #int dir
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToTopRight
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToLeft
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] removeAllChildrenWithCleanup
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool cleanup
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] requestDoLayout
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] removeAllChildren
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToTopLeft
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] removeChild
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node child
|
2016-07-26 10:06:58 +08:00
|
|
|
-- @param #bool cleanup
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToBottomRight
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToTop
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToBottomLeft
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToPercentBothDirection
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table percent
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToPercentHorizontal
|
|
|
|
-- @param self
|
|
|
|
-- @param #float percent
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToRight
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ListView] jumpToPercentVertical
|
|
|
|
-- @param self
|
|
|
|
-- @param #float percent
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Default constructor<br>
|
|
|
|
-- js ctor<br>
|
|
|
|
-- lua new
|
|
|
|
-- @function [parent=#ListView] ListView
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView self (return value: ccui.ListView)
|
|
|
|
|
|
|
|
return nil
|