cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
UIListView Class Reference

#include <UIListView.h>

Inheritance diagram for UIListView:
Layout UIWidget Object

Public Member Functions

 UIListView ()
 UIListView ()
 UIListView ()
virtual ~UIListView ()
local ~UIListView ()
virtual bool addChild (UIWidget *widget)
 add widget child override More...
 
var addChild ( var widget)
 add widget child override More...
 
local addChild ( local widget)
 add widget child override More...
 
virtual void removeAllChildren ()
 remove all widget children override More...
 
var removeAllChildren ()
 remove all widget children override More...
 
local removeAllChildren ()
 remove all widget children override More...
 
virtual bool removeChild (UIWidget *child)
 remove widget child override More...
 
local removeChild ( local child)
 remove widget child override More...
 
virtual bool onTouchBegan (const Point &touchPoint)
 A call back function called when widget is selected, and on touch began. More...
 
local onTouchBegan ( local touchPoint)
 A call back function called when widget is selected, and on touch began. More...
 
virtual void onTouchMoved (const Point &touchPoint)
 A call back function called when widget is selected, and on touch moved. More...
 
local onTouchMoved ( local touchPoint)
 A call back function called when widget is selected, and on touch moved. More...
 
virtual void onTouchEnded (const Point &touchPoint)
 A call back function called when widget is selected, and on touch ended. More...
 
local onTouchEnded ( local touchPoint)
 A call back function called when widget is selected, and on touch ended. More...
 
virtual void onTouchCancelled (const Point &touchPoint)
 A call back function called when widget is selected, and on touch canceled. More...
 
var onTouchCancelled ( var touchPoint)
 A call back function called when widget is selected, and on touch canceled. More...
 
local onTouchCancelled ( local touchPoint)
 A call back function called when widget is selected, and on touch canceled. More...
 
virtual void onTouchLongClicked (const Point &touchPoint)
 A call back function called when widget is selected, and on touch long clicked. More...
 
void setDirection (ListViewDirection dir)
 set and get direction More...
 
var setDirection ( var dir)
 set and get direction More...
 
local setDirection ( local dir)
 set and get direction More...
 
ListViewDirection getDirection ()
var getDirection ()
local getDirection ()
void initChildWithDataLength (int length)
 initialze data length and create children with parameter length More...
 
int getDataLength ()
 get data length More...
 
UIWidgetgetUpdateChild ()
 update child function whetn trigger update child event More...
 
local getUpdateChild ()
 update child function whetn trigger update child event More...
 
int getUpdateDataIndex ()
 get update data index More...
 
var getUpdateDataIndex ()
 get update data index More...
 
local getUpdateDataIndex ()
 get update data index More...
 
bool getUpdateSuccess ()
 get and set update success or not More...
 
var getUpdateSuccess ()
 get and set update success or not More...
 
local getUpdateSuccess ()
 get and set update success or not More...
 
void setUpdateSuccess (bool sucess)
void addEventListenter (cocos2d::Object *target, SEL_ListViewEvent selector)
 add event call-back function More...
 
virtual void update (float dt)
 get and set degree range for checking move or not with scrolling More...
 
virtual void doLayout ()
virtual const char * getDescription () const
 Returns the "class name" of widget. More...
 
var getDescription ()
 Returns the "class name" of widget. More...
 
local getDescription ()
 Returns the "class name" of widget. More...
 
- Public Member Functions inherited from Layout
 Layout ()
 Default constructor. More...
 
virtual ~Layout ()
 Default destructor. More...
 
virtual bool hitTest (const Point &pt)
 Checks a point if is in widget's space. More...
 
local hitTest ( local pt)
 Checks a point if is in widget's space. More...
 
void setBackGroundImage (const char *fileName, TextureResType texType=UI_TEX_TYPE_LOCAL)
 Sets a background image for layout. More...
 
var setBackGroundImage ( var fileName, var UI_TEX_TYPE_LOCAL)
 Sets a background image for layout. More...
 
local setBackGroundImage ( local fileName, local UI_TEX_TYPE_LOCAL)
 Sets a background image for layout. More...
 
void setBackGroundImageCapInsets (const Rect &capInsets)
 Sets a background image capinsets for layout, if the background image is a scale9 render. More...
 
void setBackGroundColorType (LayoutBackGroundColorType type)
 Sets Color Type for layout. More...
 
void setBackGroundImageScale9Enabled (bool enabled)
 Sets background iamge use scale9 renderer. More...
 
void setBackGroundColor (const Color3B &color)
 Sets background color for layout, if color type is LAYOUT_COLOR_SOLID. More...
 
void setBackGroundColor (const Color3B &startColor, const Color3B &endColor)
 Sets background color for layout, if color type is LAYOUT_COLOR_GRADIENT. More...
 
void setBackGroundColorOpacity (int opacity)
 Sets background opacity layout. More...
 
void setBackGroundColorVector (const Point &vector)
 Sets background color vector for layout, if color type is LAYOUT_COLOR_GRADIENT. More...
 
virtual void setColor (const Color3B &color)
 Sets color to widget. More...
 
virtual void setOpacity (int opacity)
 Sets opacity to widget. More...
 
void removeBackGroundImage ()
 Remove the background image of layout. More...
 
var removeBackGroundImage ()
 Remove the background image of layout. More...
 
local removeBackGroundImage ()
 Remove the background image of layout. More...
 
const SizegetBackGroundImageTextureSize () const
 Gets background image texture size. More...
 
virtual bool isClippingEnabled ()
 Gets if layout is clipping enabled. More...
 
virtual const SizegetContentSize () const
 Gets the content size of widget. More...
 
local getContentSize ()
 Gets the content size of widget. More...
 
virtual void setLayoutType (LayoutType type)
 Sets LayoutType. More...
 
virtual LayoutType getLayoutType () const
 Gets LayoutType. More...
 
- Public Member Functions inherited from UIWidget
 UIWidget (void)
 Default constructor. More...
 
 UIWidget ()
 Default constructor. More...
 
virtual ~UIWidget ()
 Default destructor. More...
 
local ~UIWidget ()
 Default destructor. More...
 
virtual void setEnabled (bool enabled)
 Sets whether the widget is enabled. More...
 
bool isEnabled () const
 Determines if the widget is enabled. More...
 
void setVisible (bool visible)
 Sets whether the widget is visible. More...
 
bool isVisible () const
 Determines if the widget is visible. More...
 
void setBright (bool bright)
 Sets whether the widget is bright. More...
 
bool isBright () const
 Determines if the widget is bright. More...
 
virtual void setTouchEnabled (bool enabled)
 Sets whether the widget is touch enabled. More...
 
local setTouchEnabled ( local enabled)
 Sets whether the widget is touch enabled. More...
 
void setBrightStyle (BrightStyle style)
 To set the bright style of widget. More...
 
bool isTouchEnabled () const
 Determines if the widget is touch enabled. More...
 
bool isFocused () const
 Determines if the widget is on focused. More...
 
void setFocused (bool fucosed)
 Sets whether the widget is on focused. More...
 
void setZOrder (int z)
 Sets the Z order which stands for the drawing order, and reorder this widget in its parent's children array. More...
 
int getZOrder ()
 Gets the Z order of this widget. More...
 
float getLeftInParent ()
 Gets the left boundary position of this widget. More...
 
float getBottomInParent ()
 Gets the bottom boundary position of this widget. More...
 
var getBottomInParent ()
 Gets the bottom boundary position of this widget. More...
 
local getBottomInParent ()
 Gets the bottom boundary position of this widget. More...
 
float getRightInParent ()
 Gets the right boundary position of this widget. More...
 
float getTopInParent ()
 Gets the top boundary position of this widget. More...
 
virtual void removeFromParent ()
 Removes this widget itself from its parent widget. More...
 
void disableUpdate ()
 Unschedules the "update" method. More...
 
virtual void reorderChild (UIWidget *child)
 Reorders a child according to a new z value. More...
 
local reorderChild ( local child)
 Reorders a child according to a new z value. More...
 
UIWidgetgetChildByName (const char *name)
 Gets a child from the container with its name. More...
 
UIWidgetgetChildByTag (int tag)
 Gets a child from the container with its tag. More...
 
virtual ArraygetChildren ()
 Return an array of children. More...
 
NodegetRenderer ()
 Gets the renderer of widget. More...
 
void addRenderer (Node *renderer, int zOrder)
 Add a CCNode for rendering. More...
 
void removeRenderer (Node *renderer, bool cleanup)
 Remove a CCNode from widget. More...
 
void setParent (UIWidget *parent)
 Sets the parent widget. More...
 
UIWidgetgetParent ()
 Returns a pointer to the parent widget. More...
 
void addTouchEventListener (Object *target, SEL_TouchEvent selector)
 Sets the touch event target/selector of the menu item. More...
 
var addTouchEventListener ( var target, var selector)
 Sets the touch event target/selector of the menu item. More...
 
local addTouchEventListener ( local target, local selector)
 Sets the touch event target/selector of the menu item. More...
 
void setPosition (const Point &pos)
 Changes the position (x,y) of the widget in OpenGL coordinates. More...
 
void setPositionPercent (const Point &percent)
 Changes the position (x,y) of the widget in OpenGL coordinates. More...
 
var setPositionPercent ( var percent)
 Changes the position (x,y) of the widget in OpenGL coordinates. More...
 
local setPositionPercent ( local percent)
 Changes the position (x,y) of the widget in OpenGL coordinates. More...
 
const PointgetPosition ()
 Gets the position (x,y) of the widget in OpenGL coordinates. More...
 
const PointgetPositionPercent ()
 Gets the percent (x,y) of the widget in OpenGL coordinates. More...
 
local getPositionPercent ()
 Gets the percent (x,y) of the widget in OpenGL coordinates. More...
 
void setPositionType (PositionType type)
 Changes the position type of the widget. More...
 
PositionType getPositionType () const
 Gets the position type of the widget. More...
 
virtual void setAnchorPoint (const Point &pt)
 Sets the anchor point in percent. More...
 
local setAnchorPoint ( local pt)
 Sets the anchor point in percent. More...
 
const PointgetAnchorPoint ()
 Returns the anchor point in percent. More...
 
var getAnchorPoint ()
 Returns the anchor point in percent. More...
 
local getAnchorPoint ()
 Returns the anchor point in percent. More...
 
virtual void setScale (float fScale)
 Changes both X and Y scale factor of the widget. More...
 
local setScale ( local fScale)
 Changes both X and Y scale factor of the widget. More...
 
float getScale ()
 Gets the scale factor of the widget, when X and Y have the same scale factor. More...
 
virtual void setScaleX (float fScaleX)
 Changes the scale factor on X axis of this widget. More...
 
local setScaleX ( local fScaleX)
 Changes the scale factor on X axis of this widget. More...
 
float getScaleX ()
 Returns the scale factor on X axis of this widget. More...
 
virtual void setScaleY (float fScaleY)
 Changes the scale factor on Y axis of this widget. More...
 
local setScaleY ( local fScaleY)
 Changes the scale factor on Y axis of this widget. More...
 
float getScaleY ()
 Returns the scale factor on Y axis of this widget. More...
 
void setRotation (float rotation)
 Sets the rotation (angle) of the widget in degrees. More...
 
float getRotation ()
 Returns the rotation of the widget in degrees. More...
 
local getRotation ()
 Returns the rotation of the widget in degrees. More...
 
void setRotationX (float rotationX)
 Sets the X rotation (angle) of the widget in degrees which performs a horizontal rotational skew. More...
 
local setRotationX ( local rotationX)
 Sets the X rotation (angle) of the widget in degrees which performs a horizontal rotational skew. More...
 
float getRotationX ()
 Gets the X rotation (angle) of the widget in degrees which performs a horizontal rotation skew. More...
 
void setRotationY (float rotationY)
 Sets the Y rotation (angle) of the widget in degrees which performs a vertical rotational skew. More...
 
local setRotationY ( local rotationY)
 Sets the Y rotation (angle) of the widget in degrees which performs a vertical rotational skew. More...
 
float getRotationY ()
 Gets the Y rotation (angle) of the widget in degrees which performs a vertical rotational skew. More...
 
virtual void setFlipX (bool flipX)
 Sets whether the widget should be flipped horizontally or not. More...
 
virtual bool isFlipX ()
 Returns the flag which indicates whether the widget is flipped horizontally or not. More...
 
virtual void setFlipY (bool flipY)
 Sets whether the widget should be flipped vertically or not. More...
 
virtual bool isFlipY ()
 Return the flag which indicates whether the widget is flipped vertically or not. More...
 
virtual const Color3BgetColor ()
 Gets color of widget. More...
 
var getColor ()
 Gets color of widget. More...
 
local getColor ()
 Gets color of widget. More...
 
virtual int getOpacity ()
 Gets opacity of widget. More...
 
local getOpacity ()
 Gets opacity of widget. More...
 
virtual bool isCascadeOpacityEnabled ()
local isCascadeOpacityEnabled ()
virtual void setCascadeOpacityEnabled (bool cascadeOpacityEnabled)
local setCascadeOpacityEnabled ( local cascadeOpacityEnabled)
virtual bool isCascadeColorEnabled ()
virtual void setCascadeColorEnabled (bool cascadeColorEnabled)
local setCascadeColorEnabled ( local cascadeColorEnabled)
void setBlendFunc (BlendFunc blendFunc)
virtual void setActionManager (ActionManager *actionManager)
local setActionManager ( local actionManager)
virtual ActionManagergetActionManager ()
local getActionManager ()
ActionrunAction (Action *action)
void stopAllActions (void)
void stopAction (Action *action)
void stopActionByTag (int tag)
ActiongetActionByTag (int tag)
void didNotSelectSelf ()
 A call back function when widget lost of focus. More...
 
var didNotSelectSelf ()
 A call back function when widget lost of focus. More...
 
local didNotSelectSelf ()
 A call back function when widget lost of focus. More...
 
bool clippingParentAreaContainPoint (const Point &pt)
const PointgetTouchStartPos ()
const PointgetTouchMovePos ()
const PointgetTouchEndPos ()
local getTouchEndPos ()
void setTag (int tag)
 Changes the tag that is used to identify the widget easily. More...
 
int getTag () const
 Returns a tag that is used to identify the widget easily. More...
 
void setName (const char *name)
 Changes the name that is used to identify the widget easily. More...
 
const char * getName () const
 Returns a name that is used to identify the widget easily. More...
 
var getName ()
 Returns a name that is used to identify the widget easily. More...
 
local getName ()
 Returns a name that is used to identify the widget easily. More...
 
WidgetType getWidgetType () const
 Returns a type that is widget's type. More...
 
virtual void setSize (const Size &size)
 Changes the size that is widget's size. More...
 
local setSize ( local size)
 Changes the size that is widget's size. More...
 
virtual void setSizePercent (const Point &percent)
 Changes the percent that is widget's percent size. More...
 
void setSizeType (SizeType type)
 Changes the size type of widget. More...
 
SizeType getSizeType () const
 Gets the size type of widget. More...
 
local getSizeType ()
 Gets the size type of widget. More...
 
const SizegetSize () const
 Returns size of widget. More...
 
const PointgetSizePercent () const
 Returns size percent of widget. More...
 
local getSizePercent ()
 Returns size percent of widget. More...
 
void setLayoutParameter (LayoutParameter *parameter)
 Sets a LayoutParameter to widget. More...
 
LayoutParametergetLayoutParameter ()
 Gets LayoutParameter of widget. More...
 
virtual void ignoreContentAdaptWithSize (bool ignore)
 Ignore the widget size. More...
 
bool isIgnoreContentAdaptWithSize () const
 Gets the widget if is ignore it's size. More...
 
Point getWorldPosition ()
 Gets world position of widget. More...
 
Point convertToWorldSpace (const Point &pt)
 Converts a Point to world space coordinates. More...
 
virtual NodegetVirtualRenderer ()
 Gets the Virtual Renderer of widget. More...
 
void setUpdateEnabled (bool enable)
 Schedules the "update" method. More...
 
bool isUpdateEnabled ()
 is the "update" method scheduled. More...
 
virtual void onEnter ()
virtual void onExit ()
local onExit ()
void setActionTag (int tag)
int getActionTag ()
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)

Static Public Member Functions

static UIListViewcreate ()
var create ()
local create ()
- Static Public Member Functions inherited from Layout
static Layoutcreate ()
 Allocates and initializes a layout. More...
 
local create ()
 Allocates and initializes a layout. More...
 
- Static Public Member Functions inherited from UIWidget
static UIWidgetcreate ()
 Allocates and initializes a widget. More...
 
local create ()
 Allocates and initializes a widget. More...
 

Protected Member Functions

virtual bool init ()
var init ()
local init ()
virtual void onSizeChanged ()
local onSizeChanged ()
void setMoveDirection (ListViewMoveDirection dir)
var setMoveDirection ( var dir)
local setMoveDirection ( local dir)
ListViewMoveDirection getMoveDirection ()
local getMoveDirection ()
virtual void resetProperty ()
var resetProperty ()
local resetProperty ()
virtual void handlePressLogic (const Point &touchPoint)
local handlePressLogic ( local touchPoint)
virtual void handleMoveLogic (const Point &touchPoint)
var handleMoveLogic ( var touchPoint)
local handleMoveLogic ( local touchPoint)
virtual void handleReleaseLogic (const Point &touchPoint)
var handleReleaseLogic ( var touchPoint)
local handleReleaseLogic ( local touchPoint)
virtual void interceptTouchEvent (int handleState, UIWidget *sender, const Point &touchPoint)
local interceptTouchEvent ( local handleState, local sender, local touchPoint)
virtual void checkChildInfo (int handleState, UIWidget *sender, const Point &touchPoint)
void moveChildren (float offset)
virtual bool scrollChildren (float touchOffset)
local scrollChildren ( local touchOffset)
void autoScrollChildren (float dt)
float getCurAutoScrollDistance (float time)
var getCurAutoScrollDistance ( var time)
local getCurAutoScrollDistance ( local time)
void startAutoScrollChildren (float v)
var startAutoScrollChildren ( var v)
local startAutoScrollChildren ( local v)
void stopAutoScrollChildren ()
var stopAutoScrollChildren ()
local stopAutoScrollChildren ()
void recordSlidTime (float dt)
void startRecordSlidAction ()
var startRecordSlidAction ()
local startRecordSlidAction ()
virtual void endRecordSlidAction ()
UIWidgetgetCheckPositionChild ()
var getCheckPositionChild ()
local getCheckPositionChild ()
UIWidgetgetChildFromUpdatePool ()
var getChildFromUpdatePool ()
local getChildFromUpdatePool ()
void pushChildToPool ()
var pushChildToPool ()
local pushChildToPool ()
void getAndCallback ()
var getAndCallback ()
local getAndCallback ()
void setUpdateChild (UIWidget *child)
var setUpdateChild ( var child)
local setUpdateChild ( local child)
void setUpdateDataIndex (int index)
var setUpdateDataIndex ( var index)
local setUpdateDataIndex ( local index)
void clearCollectOverArray ()
var clearCollectOverArray ()
local clearCollectOverArray ()
void collectOverTopChild ()
var collectOverTopChild ()
local collectOverTopChild ()
void collectOverBottomChild ()
var collectOverBottomChild ()
local collectOverBottomChild ()
void collectOverLeftChild ()
var collectOverLeftChild ()
local collectOverLeftChild ()
void collectOverRightChild ()
var collectOverRightChild ()
local collectOverRightChild ()
void setLoopPosition ()
var setLoopPosition ()
local setLoopPosition ()
void updateChild ()
var updateChild ()
local updateChild ()
void initChildEvent ()
var initChildEvent ()
local initChildEvent ()
void updateChildEvent ()
var updateChildEvent ()
local updateChildEvent ()
virtual void setClippingEnabled (bool able)
 Changes if layout can clip it's content and child. More...
 
var setClippingEnabled ( var able)
 Changes if layout can clip it's content and child. More...
 
local setClippingEnabled ( local able)
 Changes if layout can clip it's content and child. More...
 
- Protected Member Functions inherited from Layout
virtual void initRenderer ()
local initRenderer ()
void addBackGroundImage ()
- Protected Member Functions inherited from UIWidget
virtual void onPressStateChangedToNormal ()
local onPressStateChangedToNormal ()
virtual void onPressStateChangedToPressed ()
virtual void onPressStateChangedToDisabled ()
void pushDownEvent ()
void moveEvent ()
void releaseUpEvent ()
void cancelUpEvent ()
void longClickEvent ()
void updateAnchorPoint ()
var updateAnchorPoint ()
local updateAnchorPoint ()
virtual void releaseResoures ()
 Release texture resoures of widget. More...
 
var releaseResoures ()
 Release texture resoures of widget. More...
 
local releaseResoures ()
 Release texture resoures of widget. More...
 
void updateSizeAndPosition ()

Protected Attributes

ListViewDirection _direction
ListViewMoveDirection _moveDirection
var _moveDirection
local _moveDirection
float _touchStartLocation
var _touchStartLocation
local _touchStartLocation
float _touchEndLocation
float _touchMoveStartLocation
float _topBoundary
var _topBoundary
local _topBoundary
float _bottomBoundary
var _bottomBoundary
local _bottomBoundary
float _leftBoundary
var _leftBoundary
local _leftBoundary
float _rightBoundary
var _rightBoundary
local _rightBoundary
bool _autoScroll
float _autoScrollOriginalSpeed
var _autoScrollOriginalSpeed
local _autoScrollOriginalSpeed
float _autoScrollAcceleration
local _autoScrollAcceleration
bool _bePressed
float _slidTime
var _slidTime
local _slidTime
Point _moveChildPoint
float _childFocusCancelOffset
var _childFocusCancelOffset
local _childFocusCancelOffset
Object_eventListener
SEL_ListViewEvent _eventSelector
var _eventSelector
local _eventSelector
Array_childPool
Array_updatePool
int _dataLength
int _begin
int _end
var _end
local _end
UIWidget_updateChild
int _updateDataIndex
var _updateDataIndex
local _updateDataIndex
bool _updateSuccess
Array_overTopArray
Array_overBottomArray
var _overBottomArray
local _overBottomArray
Array_overLeftArray
Array_overRightArray
float _disBoundaryToChild_0
var _disBoundaryToChild_0
local _disBoundaryToChild_0
float _disBetweenChild
float _scrollDegreeRange
- Protected Attributes inherited from Layout
bool _clippingEnabled
var _clippingEnabled
local _clippingEnabled
bool _backGroundScale9Enabled
Node_backGroundImage
var _backGroundImage
local _backGroundImage
std::string _backGroundImageFileName
var _backGroundImageFileName
local _backGroundImageFileName
Rect _backGroundImageCapInsets
LayoutBackGroundColorType _colorType
var _colorType
local _colorType
TextureResType _bgImageTexType
LayerColor_colorRender
var _colorRender
local _colorRender
LayerGradient_gradientRender
var _gradientRender
local _gradientRender
Color3B _cColor
Color3B _gStartColor
var _gStartColor
local _gStartColor
Color3B _gEndColor
var _gEndColor
local _gEndColor
Point _alongVector
var _alongVector
local _alongVector
int _cOpacity
Size _backGroundImageTextureSize
var _backGroundImageTextureSize
local _backGroundImageTextureSize
LayoutType _layoutType
var _layoutType
local _layoutType
- Protected Attributes inherited from UIWidget
bool _enabled
 Highest control of widget. More...
 
bool _visible
 is this widget visible More...
 
var _visible
 is this widget visible More...
 
local _visible
 is this widget visible More...
 
bool _bright
 is this widget bright More...
 
bool _touchEnabled
 is this widget touch endabled More...
 
var _touchEnabled
 is this widget touch endabled More...
 
local _touchEnabled
 is this widget touch endabled More...
 
bool _touchPassedEnabled
 is the touch event should be passed More...
 
bool _focus
 is the widget on focus More...
 
int _widgetZOrder
 z-order value that affects the draw order and touch order More...
 
Point _anchorPoint
 anchor point normalized More...
 
var _anchorPoint
 anchor point normalized More...
 
local _anchorPoint
 anchor point normalized More...
 
UIWidget_widgetParent
 parent of widget More...
 
BrightStyle _brightStyle
 bright style More...
 
bool _updateEnabled
 is "update" method scheduled More...
 
var _updateEnabled
 is "update" method scheduled More...
 
local _updateEnabled
 is "update" method scheduled More...
 
Node_renderer
 base renderer More...
 
Point _touchStartPos
 touch began point More...
 
var _touchStartPos
 touch began point More...
 
local _touchStartPos
 touch began point More...
 
Point _touchMovePos
 touch moved point More...
 
var _touchMovePos
 touch moved point More...
 
local _touchMovePos
 touch moved point More...
 
Point _touchEndPos
 touch ended point More...
 
var _touchEndPos
 touch ended point More...
 
local _touchEndPos
 touch ended point More...
 
Object_touchEventListener
SEL_TouchEvent _touchEventSelector
var _touchEventSelector
local _touchEventSelector
int _widgetTag
std::string _name
var _name
local _name
WidgetType _widgetType
var _widgetType
local _widgetType
int _actionTag
var _actionTag
local _actionTag
Size _size
Size _customSize
var _customSize
local _customSize
LayoutParameter_layoutParameter
var _layoutParameter
local _layoutParameter
bool _ignoreSize
Array_children
var _children
local _children
bool _affectByClipping
var _affectByClipping
local _affectByClipping
Scheduler_scheduler
SizeType _sizeType
var _sizeType
local _sizeType
Point _sizePercent
var _sizePercent
local _sizePercent
PositionType _positionType
var _positionType
local _positionType
Point _positionPercent
var _positionPercent
local _positionPercent
bool _isRunning
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
var _reference
 count of references More...
 
local _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 
var _autoReleaseCount
 count of autorelease More...
 
local _autoReleaseCount
 count of autorelease More...
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Constructor & Destructor Documentation

var UIListView ( )
local UIListView ( )
virtual ~UIListView ( )
virtual
var ~UIListView ( )
virtual
local ~UIListView ( )
virtual

Member Function Documentation

virtual bool addChild ( UIWidget widget)
virtual

add widget child override

Reimplemented from UIWidget.

var addChild ( var  widget)
virtual

add widget child override

Reimplemented from UIWidget.

local addChild ( local  widget)
virtual

add widget child override

Reimplemented from UIWidget.

void addEventListenter ( cocos2d::Object target,
SEL_ListViewEvent  selector 
)

add event call-back function

add event

var addEventListenter ( var  target,
var  selector 
)

add event call-back function

add event

local addEventListenter ( local  target,
local  selector 
)

add event call-back function

add event

void autoScrollChildren ( float  dt)
protected
var autoScrollChildren ( var  dt)
protected
local autoScrollChildren ( local  dt)
protected
virtual void checkChildInfo ( int  handleState,
UIWidget sender,
const Point touchPoint 
)
protectedvirtual

Reimplemented from UIWidget.

var checkChildInfo ( var  handleState,
var  sender,
var  touchPoint 
)
protectedvirtual

Reimplemented from UIWidget.

local checkChildInfo ( local  handleState,
local  sender,
local  touchPoint 
)
protectedvirtual

Reimplemented from UIWidget.

void clearCollectOverArray ( )
protected
var clearCollectOverArray ( )
protected
local clearCollectOverArray ( )
protected
void collectOverBottomChild ( )
protected
var collectOverBottomChild ( )
protected
local collectOverBottomChild ( )
protected
void collectOverLeftChild ( )
protected
var collectOverLeftChild ( )
protected
local collectOverLeftChild ( )
protected
void collectOverRightChild ( )
protected
var collectOverRightChild ( )
protected
local collectOverRightChild ( )
protected
void collectOverTopChild ( )
protected
var collectOverTopChild ( )
protected
local collectOverTopChild ( )
protected
static UIListView* create ( )
static
var create ( )
static
local create ( )
static
virtual void doLayout ( )
inlinevirtual

Reimplemented from Layout.

var doLayout ( )
inlinevirtual

Reimplemented from Layout.

local doLayout ( )
inlinevirtual

Reimplemented from Layout.

virtual void endRecordSlidAction ( )
protectedvirtual
var endRecordSlidAction ( )
protectedvirtual
local endRecordSlidAction ( )
protectedvirtual
void getAndCallback ( )
protected
var getAndCallback ( )
protected
local getAndCallback ( )
protected
UIWidget* getCheckPositionChild ( )
protected
var getCheckPositionChild ( )
protected
local getCheckPositionChild ( )
protected
UIWidget* getChildFromUpdatePool ( )
protected
var getChildFromUpdatePool ( )
protected
local getChildFromUpdatePool ( )
protected
float getCurAutoScrollDistance ( float  time)
protected
var getCurAutoScrollDistance ( var  time)
protected
local getCurAutoScrollDistance ( local  time)
protected
int getDataLength ( )

get data length

var getDataLength ( )

get data length

local getDataLength ( )

get data length

virtual const char* getDescription ( ) const
virtual

Returns the "class name" of widget.

Reimplemented from Layout.

var getDescription ( )
virtual

Returns the "class name" of widget.

Reimplemented from Layout.

local getDescription ( )
virtual

Returns the "class name" of widget.

Reimplemented from Layout.

ListViewDirection getDirection ( )
var getDirection ( )
local getDirection ( )
ListViewMoveDirection
getMoveDirection
( )
protected
var getMoveDirection ( )
protected
local getMoveDirection ( )
protected
UIWidget* getUpdateChild ( )

update child function whetn trigger update child event

get update widget child

var getUpdateChild ( )

update child function whetn trigger update child event

get update widget child

local getUpdateChild ( )

update child function whetn trigger update child event

get update widget child

int getUpdateDataIndex ( )

get update data index

var getUpdateDataIndex ( )

get update data index

local getUpdateDataIndex ( )

get update data index

bool getUpdateSuccess ( )

get and set update success or not

var getUpdateSuccess ( )

get and set update success or not

local getUpdateSuccess ( )

get and set update success or not

virtual void handleMoveLogic ( const Point touchPoint)
protectedvirtual
var handleMoveLogic ( var  touchPoint)
protectedvirtual
local handleMoveLogic ( local  touchPoint)
protectedvirtual
virtual void handlePressLogic ( const Point touchPoint)
protectedvirtual
var handlePressLogic ( var  touchPoint)
protectedvirtual
local handlePressLogic ( local  touchPoint)
protectedvirtual
virtual void handleReleaseLogic ( const Point touchPoint)
protectedvirtual
var handleReleaseLogic ( var  touchPoint)
protectedvirtual
local handleReleaseLogic ( local  touchPoint)
protectedvirtual
virtual bool init ( )
protectedvirtual

Reimplemented from Layout.

var init ( )
protectedvirtual

Reimplemented from Layout.

local init ( )
protectedvirtual

Reimplemented from Layout.

void initChildEvent ( )
protected
var initChildEvent ( )
protected
local initChildEvent ( )
protected
void initChildWithDataLength ( int  length)

initialze data length and create children with parameter length

var initChildWithDataLength ( var  length)

initialze data length and create children with parameter length

local initChildWithDataLength ( local  length)

initialze data length and create children with parameter length

virtual void interceptTouchEvent ( int  handleState,
UIWidget sender,
const Point touchPoint 
)
protectedvirtual
var interceptTouchEvent ( var  handleState,
var  sender,
var  touchPoint 
)
protectedvirtual
local interceptTouchEvent ( local  handleState,
local  sender,
local  touchPoint 
)
protectedvirtual
void moveChildren ( float  offset)
protected
var moveChildren ( var  offset)
protected
local moveChildren ( local  offset)
protected
virtual void onSizeChanged ( )
protectedvirtual

Reimplemented from Layout.

var onSizeChanged ( )
protectedvirtual

Reimplemented from Layout.

local onSizeChanged ( )
protectedvirtual

Reimplemented from Layout.

virtual bool onTouchBegan ( const Point touchPoint)
virtual

A call back function called when widget is selected, and on touch began.

Parameters
touchpoint
Returns
true if the event should be pass to parent, flase otherwise.

Reimplemented from UIWidget.

var onTouchBegan ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch began.

Parameters
touchpoint
Returns
true if the event should be pass to parent, flase otherwise.

Reimplemented from UIWidget.

local onTouchBegan ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch began.

Parameters
touchpoint
Returns
true if the event should be pass to parent, flase otherwise.

Reimplemented from UIWidget.

virtual void onTouchCancelled ( const Point touchPoint)
virtual

A call back function called when widget is selected, and on touch canceled.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchCancelled ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch canceled.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchCancelled ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch canceled.

Parameters
touchpoint

Reimplemented from UIWidget.

virtual void onTouchEnded ( const Point touchPoint)
virtual

A call back function called when widget is selected, and on touch ended.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchEnded ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch ended.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchEnded ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch ended.

Parameters
touchpoint

Reimplemented from UIWidget.

virtual void onTouchLongClicked ( const Point touchPoint)
virtual

A call back function called when widget is selected, and on touch long clicked.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchLongClicked ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch long clicked.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchLongClicked ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch long clicked.

Parameters
touchpoint

Reimplemented from UIWidget.

virtual void onTouchMoved ( const Point touchPoint)
virtual

A call back function called when widget is selected, and on touch moved.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchMoved ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch moved.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchMoved ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch moved.

Parameters
touchpoint

Reimplemented from UIWidget.

void pushChildToPool ( )
protected
var pushChildToPool ( )
protected
local pushChildToPool ( )
protected
void recordSlidTime ( float  dt)
protected
var recordSlidTime ( var  dt)
protected
local recordSlidTime ( local  dt)
protected
virtual void removeAllChildren ( )
virtual

remove all widget children override

Reimplemented from UIWidget.

var removeAllChildren ( )
virtual

remove all widget children override

Reimplemented from UIWidget.

local removeAllChildren ( )
virtual

remove all widget children override

Reimplemented from UIWidget.

virtual bool removeChild ( UIWidget child)
virtual

remove widget child override

Reimplemented from UIWidget.

var removeChild ( var  child)
virtual

remove widget child override

Reimplemented from UIWidget.

local removeChild ( local  child)
virtual

remove widget child override

Reimplemented from UIWidget.

virtual void resetProperty ( )
protectedvirtual
var resetProperty ( )
protectedvirtual
local resetProperty ( )
protectedvirtual
virtual bool scrollChildren ( float  touchOffset)
protectedvirtual
var scrollChildren ( var  touchOffset)
protectedvirtual
local scrollChildren ( local  touchOffset)
protectedvirtual
virtual void setClippingEnabled ( bool  able)
inlineprotectedvirtual

Changes if layout can clip it's content and child.

If you really need this, please enable it. But it would reduce the rendering efficiency.

Parameters
clippingenabled.

Reimplemented from Layout.

var setClippingEnabled ( var  able)
inlineprotectedvirtual

Changes if layout can clip it's content and child.

If you really need this, please enable it. But it would reduce the rendering efficiency.

Parameters
clippingenabled.

Reimplemented from Layout.

local setClippingEnabled ( local  able)
inlineprotectedvirtual

Changes if layout can clip it's content and child.

If you really need this, please enable it. But it would reduce the rendering efficiency.

Parameters
clippingenabled.

Reimplemented from Layout.

void setDirection ( ListViewDirection  dir)

set and get direction

var setDirection ( var  dir)

set and get direction

local setDirection ( local  dir)

set and get direction

void setLoopPosition ( )
protected
var setLoopPosition ( )
protected
local setLoopPosition ( )
protected
void setMoveDirection ( ListViewMoveDirection  dir)
protected
var setMoveDirection ( var  dir)
protected
local setMoveDirection ( local  dir)
protected
void setUpdateChild ( UIWidget child)
protected
var setUpdateChild ( var  child)
protected
local setUpdateChild ( local  child)
protected
void setUpdateDataIndex ( int  index)
protected
var setUpdateDataIndex ( var  index)
protected
local setUpdateDataIndex ( local  index)
protected
void setUpdateSuccess ( bool  sucess)
var setUpdateSuccess ( var  sucess)
local setUpdateSuccess ( local  sucess)
void startAutoScrollChildren ( float  v)
protected
var startAutoScrollChildren ( var  v)
protected
local startAutoScrollChildren ( local  v)
protected
void startRecordSlidAction ( )
protected
var startRecordSlidAction ( )
protected
local startRecordSlidAction ( )
protected
void stopAutoScrollChildren ( )
protected
var stopAutoScrollChildren ( )
protected
local stopAutoScrollChildren ( )
protected
virtual void update ( float  dt)
virtual

get and set degree range for checking move or not with scrolling

Reimplemented from Object.

var update ( var  dt)
virtual

get and set degree range for checking move or not with scrolling

Reimplemented from Object.

local update ( local  dt)
virtual

get and set degree range for checking move or not with scrolling

Reimplemented from Object.

void updateChild ( )
protected
var updateChild ( )
protected
local updateChild ( )
protected
void updateChildEvent ( )
protected
var updateChildEvent ( )
protected
local updateChildEvent ( )
protected

Member Data Documentation

bool _autoScroll
protected
var _autoScroll
protected
local _autoScroll
protected
float _autoScrollAcceleration
protected
var _autoScrollAcceleration
protected
local _autoScrollAcceleration
protected
float _autoScrollOriginalSpeed
protected
var _autoScrollOriginalSpeed
protected
local _autoScrollOriginalSpeed
protected
int _begin
protected
var _begin
protected
local _begin
protected
bool _bePressed
protected
var _bePressed
protected
local _bePressed
protected
float _bottomBoundary
protected
var _bottomBoundary
protected
local _bottomBoundary
protected
float _childFocusCancelOffset
protected
var _childFocusCancelOffset
protected
local _childFocusCancelOffset
protected
Array* _childPool
protected
var _childPool
protected
local _childPool
protected
int _dataLength
protected
var _dataLength
protected
local _dataLength
protected
ListViewDirection _direction
protected
var _direction
protected
local _direction
protected
float _disBetweenChild
protected
var _disBetweenChild
protected
local _disBetweenChild
protected
float _disBoundaryToChild_0
protected
var _disBoundaryToChild_0
protected
local _disBoundaryToChild_0
protected
int _end
protected
var _end
protected
local _end
protected
Object* _eventListener
protected
var _eventListener
protected
local _eventListener
protected
SEL_ListViewEvent _eventSelector
protected
var _eventSelector
protected
local _eventSelector
protected
float _leftBoundary
protected
var _leftBoundary
protected
local _leftBoundary
protected
Point _moveChildPoint
protected
var _moveChildPoint
protected
local _moveChildPoint
protected
ListViewMoveDirection
_moveDirection
protected
var _moveDirection
protected
local _moveDirection
protected
Array* _overBottomArray
protected
var _overBottomArray
protected
local _overBottomArray
protected
Array* _overLeftArray
protected
var _overLeftArray
protected
local _overLeftArray
protected
Array* _overRightArray
protected
var _overRightArray
protected
local _overRightArray
protected
Array* _overTopArray
protected
var _overTopArray
protected
local _overTopArray
protected
float _rightBoundary
protected
var _rightBoundary
protected
local _rightBoundary
protected
float _scrollDegreeRange
protected
var _scrollDegreeRange
protected
local _scrollDegreeRange
protected
float _slidTime
protected
var _slidTime
protected
local _slidTime
protected
float _topBoundary
protected
var _topBoundary
protected
local _topBoundary
protected
float _touchEndLocation
protected
var _touchEndLocation
protected
local _touchEndLocation
protected
float _touchMoveStartLocation
protected
var _touchMoveStartLocation
protected
local _touchMoveStartLocation
protected
float _touchStartLocation
protected
var _touchStartLocation
protected
local _touchStartLocation
protected
UIWidget* _updateChild
protected
var _updateChild
protected
local _updateChild
protected
int _updateDataIndex
protected
var _updateDataIndex
protected
local _updateDataIndex
protected
Array* _updatePool
protected
var _updatePool
protected
local _updatePool
protected
bool _updateSuccess
protected
var _updateSuccess
protected
local _updateSuccess
protected

The documentation for this class was generated from the following file: