2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Scale9Sprite
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Node
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] resizableSpriteWithCapInsets
|
|
|
|
-- @param self
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setInsetBottom
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: initWithSpriteFrameName(string)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: initWithSpriteFrameName(string, rect_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] initWithSpriteFrameName
|
|
|
|
-- @param self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @param #string str
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setInsetTop
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setPreferredSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setSpriteFrame
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteFrame spriteframe
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: initWithBatchNode(cc.SpriteBatchNode, rect_table, rect_table)
|
|
|
|
--
|
|
|
|
-- overload function: initWithBatchNode(cc.SpriteBatchNode, rect_table, bool, rect_table)
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] initWithBatchNode
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteBatchNode spritebatchnode
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @param #bool bool
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getInsetBottom
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getCapInsets
|
|
|
|
-- @param self
|
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] updateWithBatchNode
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteBatchNode spritebatchnode
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @param #bool bool
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getInsetRight
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getOriginalSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: initWithFile(string, rect_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: initWithFile(string, rect_table, rect_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: initWithFile(rect_table, string)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: initWithFile(string)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] initWithFile
|
|
|
|
-- @param self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @param #string str
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getInsetTop
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setInsetLeft
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: initWithSpriteFrame(cc.SpriteFrame)
|
|
|
|
--
|
|
|
|
-- overload function: initWithSpriteFrame(cc.SpriteFrame, rect_table)
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] initWithSpriteFrame
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteFrame spriteframe
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getPreferredSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setCapInsets
|
|
|
|
-- @param self
|
|
|
|
-- @param #rect_table rect
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] getInsetLeft
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setInsetRight
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: create(string, rect_table, rect_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- overload function: create()
|
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: create(rect_table, string)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: create(string, rect_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: create(string)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] create
|
|
|
|
-- @param self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @param #string str
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return Scale9Sprite#Scale9Sprite ret (retunr value: cc.Scale9Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: createWithSpriteFrameName(string, rect_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: createWithSpriteFrameName(string)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] createWithSpriteFrameName
|
|
|
|
-- @param self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @param #string str
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return Scale9Sprite#Scale9Sprite ret (retunr value: cc.Scale9Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: createWithSpriteFrame(cc.SpriteFrame, rect_table)
|
|
|
|
--
|
|
|
|
-- overload function: createWithSpriteFrame(cc.SpriteFrame)
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scale9Sprite] createWithSpriteFrame
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteFrame spriteframe
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return Scale9Sprite#Scale9Sprite ret (retunr value: cc.Scale9Sprite)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] isOpacityModifyRGB
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color3b_table color3b
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setOpacityModifyRGB
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setOpacity
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned char char
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] updateDisplayedOpacity
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned char char
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] updateDisplayedColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color3b_table color3b
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] setContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Scale9Sprite] Scale9Sprite
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|