mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11142 from CocosRobot/update_lua_bindings_1427255864
[AUTO]: updating luabinding automatically
This commit is contained in:
commit
518536964f
|
@ -5,20 +5,23 @@
|
||||||
-- @parent_module cc
|
-- @parent_module cc
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the event type of the controller.<br>
|
||||||
|
-- return The event type of the controller.
|
||||||
-- @function [parent=#EventController] getControllerEventType
|
-- @function [parent=#EventController] getControllerEventType
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Sets the connect status.<br>
|
||||||
|
-- param True if it's connected.
|
||||||
-- @function [parent=#EventController] setConnectStatus
|
-- @function [parent=#EventController] setConnectStatus
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #bool isConnected
|
-- @param #bool isConnected
|
||||||
-- @return EventController#EventController self (return value: cc.EventController)
|
-- @return EventController#EventController self (return value: cc.EventController)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the connect status.<br>
|
||||||
|
-- return True if it's connected.
|
||||||
-- @function [parent=#EventController] isConnected
|
-- @function [parent=#EventController] isConnected
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
@ -37,7 +40,8 @@
|
||||||
-- @return Controller#Controller ret (return value: cc.Controller)
|
-- @return Controller#Controller ret (return value: cc.Controller)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the key code of the controller.<br>
|
||||||
|
-- return The key code of the controller.
|
||||||
-- @function [parent=#EventController] getKeyCode
|
-- @function [parent=#EventController] getKeyCode
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Constructor.<br>
|
-- Constructor.<br>
|
||||||
-- param eventName A given name of the custom event.
|
-- param eventName A given name of the custom event.<br>
|
||||||
|
-- js ctor
|
||||||
-- @function [parent=#EventCustom] EventCustom
|
-- @function [parent=#EventCustom] EventCustom
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string eventName
|
-- @param #string eventName
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Constructor.<br>
|
-- Constructor.<br>
|
||||||
-- param widgetLoseFocus The widget which lose focus.<br>
|
-- param widgetLoseFocus The widget which lose focus.<br>
|
||||||
-- param widgetGetFocus The widget which get focus.
|
-- param widgetGetFocus The widget which get focus.<br>
|
||||||
|
-- js ctor
|
||||||
-- @function [parent=#EventFocus] EventFocus
|
-- @function [parent=#EventFocus] EventFocus
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #ccui.Widget widgetLoseFocus
|
-- @param #ccui.Widget widgetLoseFocus
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Constructor.<br>
|
-- Constructor.<br>
|
||||||
-- param keyCode A given keycode.<br>
|
-- param keyCode A given keycode.<br>
|
||||||
-- param isPressed True if the key is pressed.
|
-- param isPressed True if the key is pressed.<br>
|
||||||
|
-- js ctor
|
||||||
-- @function [parent=#EventKeyboard] EventKeyboard
|
-- @function [parent=#EventKeyboard] EventKeyboard
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int keyCode
|
-- @param #int keyCode
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Returns the previous touch location in screen coordinates.<br>
|
-- Returns the previous touch location in screen coordinates.<br>
|
||||||
-- return The previous touch location in screen coordinates.
|
-- return The previous touch location in screen coordinates.<br>
|
||||||
|
-- js NA
|
||||||
-- @function [parent=#EventMouse] getPreviousLocationInView
|
-- @function [parent=#EventMouse] getPreviousLocationInView
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||||
|
@ -20,14 +21,16 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Get mouse button.<br>
|
-- Get mouse button.<br>
|
||||||
-- return The mouse button.
|
-- return The mouse button.<br>
|
||||||
|
-- js getButton
|
||||||
-- @function [parent=#EventMouse] getMouseButton
|
-- @function [parent=#EventMouse] getMouseButton
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Returns the previous touch location in OpenGL coordinates.<br>
|
-- Returns the previous touch location in OpenGL coordinates.<br>
|
||||||
-- return The previous touch location in OpenGL coordinates.
|
-- return The previous touch location in OpenGL coordinates.<br>
|
||||||
|
-- js NA
|
||||||
-- @function [parent=#EventMouse] getPreviousLocation
|
-- @function [parent=#EventMouse] getPreviousLocation
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||||
|
@ -51,21 +54,24 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Returns the start touch location in screen coordinates.<br>
|
-- Returns the start touch location in screen coordinates.<br>
|
||||||
-- return The start touch location in screen coordinates.
|
-- return The start touch location in screen coordinates.<br>
|
||||||
|
-- js NA
|
||||||
-- @function [parent=#EventMouse] getStartLocationInView
|
-- @function [parent=#EventMouse] getStartLocationInView
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Returns the start touch location in OpenGL coordinates.<br>
|
-- Returns the start touch location in OpenGL coordinates.<br>
|
||||||
-- return The start touch location in OpenGL coordinates.
|
-- return The start touch location in OpenGL coordinates.<br>
|
||||||
|
-- js NA
|
||||||
-- @function [parent=#EventMouse] getStartLocation
|
-- @function [parent=#EventMouse] getStartLocation
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Set mouse button.<br>
|
-- Set mouse button.<br>
|
||||||
-- param button a given mouse button.
|
-- param button a given mouse button.<br>
|
||||||
|
-- js setButton
|
||||||
-- @function [parent=#EventMouse] setMouseButton
|
-- @function [parent=#EventMouse] setMouseButton
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int button
|
-- @param #int button
|
||||||
|
@ -94,14 +100,16 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Get the cursor position of x axis.<br>
|
-- Get the cursor position of x axis.<br>
|
||||||
-- return The x coordinate of cursor position.
|
-- return The x coordinate of cursor position.<br>
|
||||||
|
-- js getLocationX
|
||||||
-- @function [parent=#EventMouse] getCursorX
|
-- @function [parent=#EventMouse] getCursorX
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return float#float ret (return value: float)
|
-- @return float#float ret (return value: float)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Get the cursor position of y axis.<br>
|
-- Get the cursor position of y axis.<br>
|
||||||
-- return The y coordinate of cursor position.
|
-- return The y coordinate of cursor position.<br>
|
||||||
|
-- js getLocationY
|
||||||
-- @function [parent=#EventMouse] getCursorY
|
-- @function [parent=#EventMouse] getCursorY
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return float#float ret (return value: float)
|
-- @return float#float ret (return value: float)
|
||||||
|
@ -109,7 +117,8 @@
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Set the cursor position.<br>
|
-- Set the cursor position.<br>
|
||||||
-- param x The x coordinate of cursor position.<br>
|
-- param x The x coordinate of cursor position.<br>
|
||||||
-- param y The y coordinate of cursor position.
|
-- param y The y coordinate of cursor position.<br>
|
||||||
|
-- js setLocation
|
||||||
-- @function [parent=#EventMouse] setCursorPosition
|
-- @function [parent=#EventMouse] setCursorPosition
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #float x
|
-- @param #float x
|
||||||
|
@ -118,7 +127,8 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Constructor.<br>
|
-- Constructor.<br>
|
||||||
-- param mouseEventCode A given mouse event type.
|
-- param mouseEventCode A given mouse event type.<br>
|
||||||
|
-- js ctor
|
||||||
-- @function [parent=#EventMouse] EventMouse
|
-- @function [parent=#EventMouse] EventMouse
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int mouseEventCode
|
-- @param #int mouseEventCode
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
-- @return EventTouch#EventTouch self (return value: cc.EventTouch)
|
-- @return EventTouch#EventTouch self (return value: cc.EventTouch)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Constructor.
|
-- Constructor.<br>
|
||||||
|
-- js NA
|
||||||
-- @function [parent=#EventTouch] EventTouch
|
-- @function [parent=#EventTouch] EventTouch
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return EventTouch#EventTouch self (return value: cc.EventTouch)
|
-- @return EventTouch#EventTouch self (return value: cc.EventTouch)
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @{<br>
|
||||||
|
-- Getter and Setter for depth test state when blit.
|
||||||
-- @function [parent=#Grid3D] setNeedDepthTestForBlit
|
-- @function [parent=#Grid3D] setNeedDepthTestForBlit
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #bool neededDepthTest
|
-- @param #bool neededDepthTest
|
||||||
|
@ -34,7 +35,8 @@
|
||||||
-- @return Grid3D#Grid3D self (return value: cc.Grid3D)
|
-- @return Grid3D#Grid3D self (return value: cc.Grid3D)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @{<br>
|
||||||
|
-- Implementations for interfaces in base calss.
|
||||||
-- @function [parent=#Grid3D] beforeBlit
|
-- @function [parent=#Grid3D] beforeBlit
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return Grid3D#Grid3D self (return value: cc.Grid3D)
|
-- @return Grid3D#Grid3D self (return value: cc.Grid3D)
|
||||||
|
@ -58,6 +60,7 @@
|
||||||
-- @return Grid3D#Grid3D self (return value: cc.Grid3D)
|
-- @return Grid3D#Grid3D self (return value: cc.Grid3D)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
-- Constructor.<br>
|
||||||
-- js ctor
|
-- js ctor
|
||||||
-- @function [parent=#Grid3D] Grid3D
|
-- @function [parent=#Grid3D] Grid3D
|
||||||
-- @param self
|
-- @param self
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-- @parent_module cc
|
-- @parent_module cc
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Set the size of the grid.
|
||||||
-- @function [parent=#GridBase] setGridSize
|
-- @function [parent=#GridBase] setGridSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #size_table gridSize
|
-- @param #size_table gridSize
|
||||||
|
@ -25,57 +25,58 @@
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @{<br>
|
||||||
|
-- Init and reset the status when render effects by using the grid.
|
||||||
-- @function [parent=#GridBase] beforeDraw
|
-- @function [parent=#GridBase] beforeDraw
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Interface, Calculate the vertices used for the blit.
|
||||||
-- @function [parent=#GridBase] calculateVertexPoints
|
-- @function [parent=#GridBase] calculateVertexPoints
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- is texture flipped
|
-- is texture flipped.
|
||||||
-- @function [parent=#GridBase] isTextureFlipped
|
-- @function [parent=#GridBase] isTextureFlipped
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- size of the grid
|
-- Size of the grid.
|
||||||
-- @function [parent=#GridBase] getGridSize
|
-- @function [parent=#GridBase] getGridSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return size_table#size_table ret (return value: size_table)
|
-- @return size_table#size_table ret (return value: size_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- pixels between the grids
|
-- Pixels between the grids.
|
||||||
-- @function [parent=#GridBase] getStep
|
-- @function [parent=#GridBase] getStep
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Change projection to 2D for grabbing.
|
||||||
-- @function [parent=#GridBase] set2DProjection
|
-- @function [parent=#GridBase] set2DProjection
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Get the pixels between the grids.
|
||||||
-- @function [parent=#GridBase] setStep
|
-- @function [parent=#GridBase] setStep
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #vec2_table step
|
-- @param #vec2_table step
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Set the texture flipped or not.
|
||||||
-- @function [parent=#GridBase] setTextureFlipped
|
-- @function [parent=#GridBase] setTextureFlipped
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #bool flipped
|
-- @param #bool flipped
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Interface used to blit the texture with grid to screen.
|
||||||
-- @function [parent=#GridBase] blit
|
-- @function [parent=#GridBase] blit
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
@ -88,7 +89,7 @@
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- number of times that the grid will be reused
|
-- Get number of times that the grid will be reused.
|
||||||
-- @function [parent=#GridBase] getReuseGrid
|
-- @function [parent=#GridBase] getReuseGrid
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
@ -104,26 +105,28 @@
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @{<br>
|
||||||
|
-- Interface for custom action when before or after draw.
|
||||||
-- @function [parent=#GridBase] beforeBlit
|
-- @function [parent=#GridBase] beforeBlit
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Set number of times that the grid will be reused.
|
||||||
-- @function [parent=#GridBase] setReuseGrid
|
-- @function [parent=#GridBase] setReuseGrid
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int reuseGrid
|
-- @param #int reuseGrid
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- whether or not the grid is active
|
-- @} @{<br>
|
||||||
|
-- Getter and setter of the active state of the grid.
|
||||||
-- @function [parent=#GridBase] isActive
|
-- @function [parent=#GridBase] isActive
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Interface, Reuse the grid vertices.
|
||||||
-- @function [parent=#GridBase] reuse
|
-- @function [parent=#GridBase] reuse
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
-- @return GridBase#GridBase self (return value: cc.GridBase)
|
||||||
|
|
|
@ -6,16 +6,16 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Changes the progress direction of slider.<br>
|
-- Changes the progress direction of slider.<br>
|
||||||
-- param percent percent value from 1 to 100.
|
-- param percent Percent value from 1 to 100.
|
||||||
-- @function [parent=#Slider] setPercent
|
-- @function [parent=#Slider] setPercent
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int percent
|
-- @param #int percent
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Load dark state texture for slider ball.<br>
|
-- Load disabled state texture for slider ball.<br>
|
||||||
-- param disabled dark state texture.<br>
|
-- param disabled Disabled state texture.<br>
|
||||||
-- param texType @see TextureResType
|
-- param resType @see TextureResType .
|
||||||
-- @function [parent=#Slider] loadSlidBallTextureDisabled
|
-- @function [parent=#Slider] loadSlidBallTextureDisabled
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string disabled
|
-- @param #string disabled
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Load normal state texture for slider ball.<br>
|
-- Load normal state texture for slider ball.<br>
|
||||||
-- param normal normal state texture.<br>
|
-- param normal Normal state texture.<br>
|
||||||
-- param texType @see TextureResType
|
-- param resType @see TextureResType .
|
||||||
-- @function [parent=#Slider] loadSlidBallTextureNormal
|
-- @function [parent=#Slider] loadSlidBallTextureNormal
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string normal
|
-- @param #string normal
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Load texture for slider bar.<br>
|
-- Load texture for slider bar.<br>
|
||||||
-- param fileName file name of texture.<br>
|
-- param fileName File name of texture.<br>
|
||||||
-- param texType @see TextureResType
|
-- param resType @see TextureResType .
|
||||||
-- @function [parent=#Slider] loadBarTexture
|
-- @function [parent=#Slider] loadBarTexture
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string fileName
|
-- @param #string fileName
|
||||||
|
@ -44,8 +44,8 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Load dark state texture for slider progress bar.<br>
|
-- Load dark state texture for slider progress bar.<br>
|
||||||
-- param fileName file path of texture.<br>
|
-- param fileName File path of texture.<br>
|
||||||
-- param texType @see TextureResType
|
-- param resType @see TextureResType .
|
||||||
-- @function [parent=#Slider] loadProgressBarTexture
|
-- @function [parent=#Slider] loadProgressBarTexture
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string fileName
|
-- @param #string fileName
|
||||||
|
@ -54,10 +54,10 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Load textures for slider ball.<br>
|
-- Load textures for slider ball.<br>
|
||||||
-- param slider ball normal normal state texture.<br>
|
-- param normal Normal state texture.<br>
|
||||||
-- param slider ball selected selected state texture.<br>
|
-- param pressed Pressed state texture.<br>
|
||||||
-- param slider ball disabled dark state texture.<br>
|
-- param disabled Disabled state texture.<br>
|
||||||
-- param texType @see TextureResType
|
-- param texType @see TextureResType .
|
||||||
-- @function [parent=#Slider] loadSlidBallTextures
|
-- @function [parent=#Slider] loadSlidBallTextures
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string normal
|
-- @param #string normal
|
||||||
|
@ -67,30 +67,31 @@
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Sets capinsets for slider, if slider is using scale9 renderer.<br>
|
-- Sets capinsets for progress bar slider, if slider is using scale9 renderer.<br>
|
||||||
-- param capInsets capinsets for slider
|
-- param capInsets Capinsets for progress bar slider.
|
||||||
-- @function [parent=#Slider] setCapInsetProgressBarRebderer
|
-- @function [parent=#Slider] setCapInsetProgressBarRebderer
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #rect_table capInsets
|
-- @param #rect_table capInsets
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Sets capinsets for slider, if slider is using scale9 renderer.<br>
|
-- Sets capinsets for bar slider, if slider is using scale9 renderer.<br>
|
||||||
-- param capInsets capinsets for slider
|
-- param capInsets Capinsets for bar slider.
|
||||||
-- @function [parent=#Slider] setCapInsetsBarRenderer
|
-- @function [parent=#Slider] setCapInsetsBarRenderer
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #rect_table capInsets
|
-- @param #rect_table capInsets
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets capinsets for progress bar slider, if slider is using scale9 renderer.<br>
|
||||||
|
-- return Capinsets for progress bar slider.
|
||||||
-- @function [parent=#Slider] getCapInsetsProgressBarRebderer
|
-- @function [parent=#Slider] getCapInsetsProgressBarRebderer
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return rect_table#rect_table ret (return value: rect_table)
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Sets if slider is using scale9 renderer.<br>
|
-- Sets if slider is using scale9 renderer.<br>
|
||||||
-- param true that using scale9 renderer, false otherwise.
|
-- param able True that using scale9 renderer, false otherwise.
|
||||||
-- @function [parent=#Slider] setScale9Enabled
|
-- @function [parent=#Slider] setScale9Enabled
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #bool able
|
-- @param #bool able
|
||||||
|
@ -107,7 +108,7 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Sets capinsets for slider, if slider is using scale9 renderer.<br>
|
-- Sets capinsets for slider, if slider is using scale9 renderer.<br>
|
||||||
-- param capInsets capinsets for slider
|
-- param capInsets Capinsets for slider.
|
||||||
-- @function [parent=#Slider] setCapInsets
|
-- @function [parent=#Slider] setCapInsets
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #rect_table capInsets
|
-- @param #rect_table capInsets
|
||||||
|
@ -128,9 +129,9 @@
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Load selected state texture for slider ball.<br>
|
-- Load pressed state texture for slider ball.<br>
|
||||||
-- param selected selected state texture.<br>
|
-- param pressed Pressed state texture.<br>
|
||||||
-- param texType @see TextureResType
|
-- param resType @see TextureResType .
|
||||||
-- @function [parent=#Slider] loadSlidBallTexturePressed
|
-- @function [parent=#Slider] loadSlidBallTexturePressed
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string pressed
|
-- @param #string pressed
|
||||||
|
@ -138,20 +139,22 @@
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets If slider is using scale9 renderer.<br>
|
||||||
|
-- return True that using scale9 renderer, false otherwise.
|
||||||
-- @function [parent=#Slider] isScale9Enabled
|
-- @function [parent=#Slider] isScale9Enabled
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets capinsets for bar slider, if slider is using scale9 renderer.<br>
|
||||||
|
-- return capInsets Capinsets for bar slider.
|
||||||
-- @function [parent=#Slider] getCapInsetsBarRenderer
|
-- @function [parent=#Slider] getCapInsetsBarRenderer
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return rect_table#rect_table ret (return value: rect_table)
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Gets the progress direction of slider.<br>
|
-- Gets the progress direction of slider.<br>
|
||||||
-- return percent percent value from 1 to 100.
|
-- return percent Percent value from 1 to 100.
|
||||||
-- @function [parent=#Slider] getPercent
|
-- @function [parent=#Slider] getPercent
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
@ -205,7 +208,7 @@
|
||||||
-- @return size_table#size_table ret (return value: size_table)
|
-- @return size_table#size_table ret (return value: size_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Default constructor
|
-- Default constructor.
|
||||||
-- @function [parent=#Slider] Slider
|
-- @function [parent=#Slider] Slider
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return Slider#Slider self (return value: ccui.Slider)
|
-- @return Slider#Slider self (return value: ccui.Slider)
|
||||||
|
|
|
@ -5,14 +5,18 @@
|
||||||
-- @parent_module ccui
|
-- @parent_module ccui
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Enable shadow for the label<br>
|
-- Enable shadow for the label.<br>
|
||||||
-- todo support blur for shadow effect
|
-- todo support blur for shadow effect<br>
|
||||||
|
-- param shadowColor The color of shadow effect.<br>
|
||||||
|
-- param offset The offset of shadow effect.<br>
|
||||||
|
-- param blurRadius The blur radius of shadow effect.
|
||||||
-- @function [parent=#Text] enableShadow
|
-- @function [parent=#Text] enableShadow
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the font size of label.<br>
|
||||||
|
-- return The font size.
|
||||||
-- @function [parent=#Text] getFontSize
|
-- @function [parent=#Text] getFontSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
@ -24,19 +28,21 @@
|
||||||
-- @return string#string ret (return value: string)
|
-- @return string#string ret (return value: string)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- disable shadow/outline/glow rendering
|
-- Disable shadow/outline/glow rendering.
|
||||||
-- @function [parent=#Text] disableEffect
|
-- @function [parent=#Text] disableEffect
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets text color.<br>
|
||||||
|
-- return Text color.
|
||||||
-- @function [parent=#Text] getTextColor
|
-- @function [parent=#Text] getTextColor
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return color4b_table#color4b_table ret (return value: color4b_table)
|
-- @return color4b_table#color4b_table ret (return value: color4b_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Sets text vertical alignment.<br>
|
||||||
|
-- param alignment vertical text alignment type
|
||||||
-- @function [parent=#Text] setTextVerticalAlignment
|
-- @function [parent=#Text] setTextVerticalAlignment
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int alignment
|
-- @param #int alignment
|
||||||
|
@ -49,7 +55,7 @@
|
||||||
-- Usage: Text *text = Text::create("Hello", "Arial", 20);create a system font UIText<br>
|
-- Usage: Text *text = Text::create("Hello", "Arial", 20);create a system font UIText<br>
|
||||||
-- text->setFontName("Marfelt"); it will change the font to system font no matter the previous font type is TTF or system font<br>
|
-- text->setFontName("Marfelt"); it will change the font to system font no matter the previous font type is TTF or system font<br>
|
||||||
-- text->setFontName("xxxx/xxx.ttf");it will change the font to TTF font no matter the previous font type is TTF or system font<br>
|
-- text->setFontName("xxxx/xxx.ttf");it will change the font to TTF font no matter the previous font type is TTF or system font<br>
|
||||||
-- param name font name.
|
-- param name Font name.
|
||||||
-- @function [parent=#Text] setFontName
|
-- @function [parent=#Text] setFontName
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string name
|
-- @param #string name
|
||||||
|
@ -57,7 +63,7 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Sets the touch scale enabled of label.<br>
|
-- Sets the touch scale enabled of label.<br>
|
||||||
-- param enabled touch scale enabled of label.
|
-- param enabled Touch scale enabled of label.
|
||||||
-- @function [parent=#Text] setTouchScaleChangeEnabled
|
-- @function [parent=#Text] setTouchScaleChangeEnabled
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #bool enabled
|
-- @param #bool enabled
|
||||||
|
@ -72,22 +78,23 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Gets the touch scale enabled of label.<br>
|
-- Gets the touch scale enabled of label.<br>
|
||||||
-- return touch scale enabled of label.
|
-- return Touch scale enabled of label.
|
||||||
-- @function [parent=#Text] isTouchScaleChangeEnabled
|
-- @function [parent=#Text] isTouchScaleChangeEnabled
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the font name.<br>
|
||||||
|
-- return Font name.
|
||||||
-- @function [parent=#Text] getFontName
|
-- @function [parent=#Text] getFontName
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return string#string ret (return value: string)
|
-- @return string#string ret (return value: string)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Set the rendering size of the text, you should call this method<br>
|
-- Sets the rendering size of the text, you should call this method<br>
|
||||||
-- along with calling `ignoreContentAdaptWithSize(false)`, otherwise the text area<br>
|
-- along with calling `ignoreContentAdaptWithSize(false)`, otherwise the text area<br>
|
||||||
-- size is caculated by the real size of the text content<br>
|
-- size is caculated by the real size of the text content.<br>
|
||||||
-- param size The text rendering area size
|
-- param size The text rendering area size.
|
||||||
-- @function [parent=#Text] setTextAreaSize
|
-- @function [parent=#Text] setTextAreaSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #size_table size
|
-- @param #size_table size
|
||||||
|
@ -96,21 +103,24 @@
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Gets the string length of the label.<br>
|
-- Gets the string length of the label.<br>
|
||||||
-- Note: This length will be larger than the raw string length,<br>
|
-- Note: This length will be larger than the raw string length,<br>
|
||||||
-- if you want to get the raw string length, you should call this->getString().size() instead<br>
|
-- if you want to get the raw string length, you should call this->getString().size() instead.<br>
|
||||||
-- return string length.
|
-- return String length.
|
||||||
-- @function [parent=#Text] getStringLength
|
-- @function [parent=#Text] getStringLength
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return long#long ret (return value: long)
|
-- @return long#long ret (return value: long)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the render size in auto mode.<br>
|
||||||
|
-- return The size of render size in auto mode.
|
||||||
-- @function [parent=#Text] getAutoRenderSize
|
-- @function [parent=#Text] getAutoRenderSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return size_table#size_table ret (return value: size_table)
|
-- @return size_table#size_table ret (return value: size_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Enable outline for the label<br>
|
-- Enable outline for the label.<br>
|
||||||
-- It only works on IOS and Android when you use System fonts
|
-- It only works on IOS and Android when you use System fonts.<br>
|
||||||
|
-- param outlineColor The color of outline.<br>
|
||||||
|
-- param outlineSize The size of outline.
|
||||||
-- @function [parent=#Text] enableOutline
|
-- @function [parent=#Text] enableOutline
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #color4b_table outlineColor
|
-- @param #color4b_table outlineColor
|
||||||
|
@ -118,53 +128,60 @@
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets the font type.<br>
|
||||||
|
-- return The font type.
|
||||||
-- @function [parent=#Text] getType
|
-- @function [parent=#Text] getType
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets text horizontal alignment.<br>
|
||||||
|
-- return Horizontal text alignment type
|
||||||
-- @function [parent=#Text] getTextHorizontalAlignment
|
-- @function [parent=#Text] getTextHorizontalAlignment
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Sets the font size of label.<br>
|
-- Sets the font size of label.<br>
|
||||||
-- param size font size.
|
-- param size The font size.
|
||||||
-- @function [parent=#Text] setFontSize
|
-- @function [parent=#Text] setFontSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int size
|
-- @param #int size
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Sets text color.<br>
|
||||||
|
-- param color Text color.
|
||||||
-- @function [parent=#Text] setTextColor
|
-- @function [parent=#Text] setTextColor
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #color4b_table color
|
-- @param #color4b_table color
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- only support for TTF
|
-- Only support for TTF.<br>
|
||||||
|
-- param glowColor The color of glow.
|
||||||
-- @function [parent=#Text] enableGlow
|
-- @function [parent=#Text] enableGlow
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #color4b_table glowColor
|
-- @param #color4b_table glowColor
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Gets text vertical alignment.<br>
|
||||||
|
-- return Vertical text alignment type
|
||||||
-- @function [parent=#Text] getTextVerticalAlignment
|
-- @function [parent=#Text] getTextVerticalAlignment
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return int#int ret (return value: int)
|
-- @return int#int ret (return value: int)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Return the text rendering area size.<br>
|
||||||
|
-- return The text rendering area size.
|
||||||
-- @function [parent=#Text] getTextAreaSize
|
-- @function [parent=#Text] getTextAreaSize
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return size_table#size_table ret (return value: size_table)
|
-- @return size_table#size_table ret (return value: size_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- Sets text horizontal alignment.<br>
|
||||||
|
-- param alignment Horizontal text alignment type
|
||||||
-- @function [parent=#Text] setTextHorizontalAlignment
|
-- @function [parent=#Text] setTextHorizontalAlignment
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #int alignment
|
-- @param #int alignment
|
||||||
|
@ -205,7 +222,7 @@
|
||||||
-- @return size_table#size_table ret (return value: size_table)
|
-- @return size_table#size_table ret (return value: size_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Default constructor
|
-- Default constructor.
|
||||||
-- @function [parent=#Text] Text
|
-- @function [parent=#Text] Text
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return Text#Text self (return value: ccui.Text)
|
-- @return Text#Text self (return value: ccui.Text)
|
||||||
|
|
|
@ -27,7 +27,12 @@
|
||||||
-- @return TextAtlas#TextAtlas self (return value: ccui.TextAtlas)
|
-- @return TextAtlas#TextAtlas self (return value: ccui.TextAtlas)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- initializes the LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas
|
-- Initializes the LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas.<br>
|
||||||
|
-- param stringValue A given string needs to be displayed.<br>
|
||||||
|
-- param charMapFile A given char map file name.<br>
|
||||||
|
-- param itemWidth The element width.<br>
|
||||||
|
-- param itemHeight The element height.<br>
|
||||||
|
-- param startCharMap The starting char of the atlas.
|
||||||
-- @function [parent=#TextAtlas] setProperty
|
-- @function [parent=#TextAtlas] setProperty
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string stringValue
|
-- @param #string stringValue
|
||||||
|
@ -80,7 +85,7 @@
|
||||||
-- @return size_table#size_table ret (return value: size_table)
|
-- @return size_table#size_table ret (return value: size_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Default constructor
|
-- Default constructor.
|
||||||
-- @function [parent=#TextAtlas] TextAtlas
|
-- @function [parent=#TextAtlas] TextAtlas
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return TextAtlas#TextAtlas self (return value: ccui.TextAtlas)
|
-- @return TextAtlas#TextAtlas self (return value: ccui.TextAtlas)
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
-- @return TiledGrid3D#TiledGrid3D self (return value: cc.TiledGrid3D)
|
-- @return TiledGrid3D#TiledGrid3D self (return value: cc.TiledGrid3D)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @{<br>
|
||||||
|
-- Implementations for interfaces in base calss.
|
||||||
-- @function [parent=#TiledGrid3D] blit
|
-- @function [parent=#TiledGrid3D] blit
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return TiledGrid3D#TiledGrid3D self (return value: cc.TiledGrid3D)
|
-- @return TiledGrid3D#TiledGrid3D self (return value: cc.TiledGrid3D)
|
||||||
|
@ -33,6 +34,7 @@
|
||||||
-- @return TiledGrid3D#TiledGrid3D self (return value: cc.TiledGrid3D)
|
-- @return TiledGrid3D#TiledGrid3D self (return value: cc.TiledGrid3D)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
-- Constructor.<br>
|
||||||
-- js ctor
|
-- js ctor
|
||||||
-- @function [parent=#TiledGrid3D] TiledGrid3D
|
-- @function [parent=#TiledGrid3D] TiledGrid3D
|
||||||
-- @param self
|
-- @param self
|
||||||
|
|
Loading…
Reference in New Issue