Class ccs.ScrollView

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.ScrollView

Method Summary

Class Detail

ccs.ScrollView()
Base class for ccs.ScrollView

Method Detail

  • {boolean} addChild(widget, zOrder, tag)
    Add widget
    Parameters:
    {ccs.Widget} widget
    {Number} zOrder
    {Number} tag
    Returns:
    {boolean}
  • addEventListenerScrollView(selector, target)
    Parameters:
    {Function} selector
    {Object} target
  • checkChildInfo(handleState, sender, touchPoint)
    Parameters:
    {number} handleState
    {ccs.Widget} sender
    {cc.Point} touchPoint
  • <static> {ccs.ScrollView} ccs.ScrollView.create()
    allocates and initializes a UIScrollView.
    // example
    var uiScrollView = ccs.ScrollView.create();
    Returns:
    {ccs.ScrollView}
  • {ccs.Widget} getChildByName(name)
    Gets a child from the container given its name
    Parameters:
    {String} name
    Returns:
    {ccs.Widget}
  • {ccs.Widget} getChildByTag(tag)
    Gets a child from the container given its tag
    Parameters:
    {Number} tag
    Returns:
    {ccs.Widget}
  • {Array} getChildren()
    get inner children
    Returns:
    {Array}
  • {Number} getChildrenCount()
    get the count of inner children
    Returns:
    {Number}
  • {string} getDescription()
    Returns the "class name" of widget.
    Returns:
    {string}
  • {ccs.ScrollViewDir} getDirection()
    get direction
    Returns:
    {ccs.ScrollViewDir}
  • {ccs.Layout} getInnerContainer()
    get inner container
    Returns:
    {ccs.Layout}
  • {ccs.LayoutType} getLayoutType()
    Gets LayoutType.
    Returns:
    {ccs.LayoutType}
  • interceptTouchEvent(handleState, sender, touchPoint)
    Intercept touch event
    Parameters:
    {number} handleState
    {ccs.Widget} sender
    {cc.Point} touchPoint
  • {boolean} isBounceEnabled()
    get whether bounce id enabled
    Returns:
    {boolean}
  • {boolean} isInertiaScrollEnabled()
    get whether inertiaScroll id enabled
    Returns:
    {boolean}
  • {boolean} removeChild(child)
    remove widget child override
    Parameters:
    {ccs.Widget} child
    Returns:
    {boolean}
  • setBounceEnabled(enabled)
    set bounce enabled
    Parameters:
    {Boolean} enabled
  • setDirection(dir)
    set direction
    Parameters:
    {ccs.ScrollViewDir} dir
  • setInertiaScrollEnabled(enabled)
    set inertiaScroll enabled
    Parameters:
    {boolean} enabled
  • setLayoutType(type)
    Sets LayoutType.
    Parameters:
    {ccs.LayoutType} type