Built-In Namespace _global_

Method Summary

Field Detail

_on
A Boolean value that determines the off/on state of the switch.
Defined in: CCControlSwitch.js.
_switchSprite
Sprite which represents the view.
Defined in: CCControlSwitch.js.
cc
************************************************************************* Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011 Zynga Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************
Defined in: SimpleAudioEngine.js.
<constant> CC_ANIMATION_TYPE_LOOP_BACK
the animation loop from back
Defined in: CCProcessBase.js.
<constant> CC_ANIMATION_TYPE_LOOP_FRONT
the animation loop from front
Defined in: CCProcessBase.js.
<constant> CC_ANIMATION_TYPE_MAX
the animation max
Defined in: CCProcessBase.js.
<constant> CC_ANIMATION_TYPE_NO_LOOP
the animation isn't loop
Defined in: CCProcessBase.js.
<constant> CC_ANIMATION_TYPE_SINGLE_FRAME
the animation just have one frame
Defined in: CCProcessBase.js.
<constant> CC_ANIMATION_TYPE_TO_LOOP_BACK
the animation to loop from back
Defined in: CCProcessBase.js.
<constant> CC_ANIMATION_TYPE_TO_LOOP_FRONT
the animation to loop from front
Defined in: CCProcessBase.js.
delay
with frames and a delay between frames
Defined in: CCAnimation.js.
ENABLE_PHYSICS_DETECT
************************************************************************* Copyright (c) 2010-2012 cocos2d-x.org http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************
Defined in: CCUtilMath.js.
Float32Array
Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2008, Luke Benstead. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Defined in: mat3.js.
gl
WebGL constants
Defined in: CCMacro.js.
NORMAL_RENDERER_ZORDER
************************************************************************* Copyright (c) 2010-2012 cocos2d-x.org http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************
Defined in: UIButton.js.
sys
************************************************************************* http://www.cocos2d-html5.org http://www.cocos2d-iphone.org http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************
Defined in: Sys.js.

Method Detail

  • apply(view, designedResolution)
    Function to apply this strategy
    Defined in: CCEGLView.js.
    Parameters:
    {cc.EGLView} view
    {cc.Size} designedResolution
  • callback()

    Defined in: CCApplication.js.
  • {cc.Size} cellSizeForTable(table)
    cell height for a given table.
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table to hold the instances of Class
    Returns:
    {cc.Size} cell size
  • {cc.CatmullRomBy} clone()
    returns a new clone of the action
    Defined in: CCActionCatmullRom.js.
    Returns:
    {cc.CatmullRomBy}
  • editBoxEditingDidBegin(sender)
    This method is called when an edit box gains focus after keyboard is shown.
    Defined in: CCEditBox.js.
    Parameters:
    {cc.EditBox} sender
  • editBoxEditingDidEnd(sender)
    This method is called when an edit box loses focus after keyboard is hidden.
    Defined in: CCEditBox.js.
    Parameters:
    {cc.EditBox} sender
  • editBoxReturn(sender)
    This method is called when the return button was pressed or the outside area of keyboard was touched.
    Defined in: CCEditBox.js.
    Parameters:
    {cc.EditBox} sender
  • editBoxTextChanged(sender, text)
    This method is called when the edit box text was changed.
    Defined in: CCEditBox.js.
    Parameters:
    {cc.EditBox} sender
    {String} text
  • get()

    Defined in: CCGeometry.js.
  • initWithDuration(dt, points)
    initializes the action with a duration and an array of points
    Defined in: CCActionCatmullRom.js.
    Parameters:
    dt
    points
  • initWithMaskSprite(maskSprite, onSprite, offSprite, thumbSprite, onLabel, offLabel)
    Creates a switch with a mask sprite, on/off sprites for on/off states, a thumb sprite and an on/off labels.
    Defined in: CCControlSwitch.js.
    Parameters:
    maskSprite
    onSprite
    offSprite
    thumbSprite
    onLabel
    offLabel
  • {Number} numberOfCellsInTableView(table)
    Returns number of cells in a given table view.
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table to hold the instances of Class
    Returns:
    {Number} number of cells
  • {Boolean} onMouseDown(event)

    called when the "mouseDown" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onMouseDragged(event)

    called when the "mouseDragged" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onMouseEntered(theEvent)

    called when the "mouseEntered" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} theEvent
    Returns:
    {Boolean}
  • {Boolean} onMouseExited(theEvent)

    called when the "mouseExited" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} theEvent
    Returns:
    {Boolean}
  • {Boolean} onMouseMoved(event)

    called when the "mouseMoved" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onMouseUp(event)

    called when the "mouseUp" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onOtherMouseDown(event)

    called when the "otherMouseDown" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onOtherMouseDragged(event)

    called when the "otherMouseDragged" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onOtherMouseUp(event)

    called when the "otherMouseUp" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onRightMouseDown(event)

    called when the "rightMouseDown" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onRightMouseDragged(event)

    called when the "rightMouseDragged" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onRightMouseUp(event)

    called when the "rightMouseUp" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • {Boolean} onScrollWheel(event)

    called when the "scrollWheel" event is received.
    Return YES to avoid propagating the event to other delegates.


    Defined in: CCMouseDispatcher.js.
    Parameters:
    {cc.Mouse} event
    Returns:
    {Boolean}
  • postApply(view)
    Manipulation after applying the strategy
    Defined in: CCEGLView.js.
    Parameters:
    {cc.EGLView} view
    The target view
  • preApply(view)
    Manipulation before applying the strategy
    Defined in: CCEGLView.js.
    Parameters:
    {cc.EGLView} view
    The target view
  • set(newValue)

    Defined in: CCGeometry.js.
    Parameters:
    newValue
  • {cc.TableView} tableCellAtIndex(table, idx)
    a cell instance at a given index
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table to hold the instances of Class
    idx
    index to search for a cell
    Returns:
    {cc.TableView} cell found at idx
  • tableCellHighlight(table, cell)
    Delegate to respond a table cell press event.
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table contains the given cell
    {cc.TableViewCell} cell
    cell that is pressed
  • {cc.Size} tableCellSizeForIndex(table, idx)
    cell size for a given index
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table to hold the instances of Class
    {Number} idx
    the index of a cell to get a size
    Returns:
    {cc.Size} size of a cell at given index
  • tableCellTouched(table, cell)
    Delegate to respond touch event
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table contains the given cell
    {cc.TableViewCell} cell
    cell that is touched
  • tableCellUnhighlight(table, cell)
    Delegate to respond a table cell release event
    Defined in: CCTableView.js.
    Parameters:
    {cc.TableView} table
    table contains the given cell
    {cc.TableViewCell} cell
    cell that is pressed
  • tableCellWillRecycle(table, cell)

    Delegate called when the cell is about to be recycled. Immediately
    after this call the cell will be removed from the scene graph and
    recycled.


    Defined in: CCTableView.js.
    Parameters:
    table
    table contains the given cell
    cell
    cell that is pressed