2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ControlButton
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Control
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] isPushed
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setSelected
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleLabelForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setAdjustBackgroundImage
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setHighlighted
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setZoomOnTouchDown
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setLabelAnchorPoint
|
|
|
|
-- @param self
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @param #cc.Vec2 vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getLabelAnchorPoint
|
|
|
|
-- @param self
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @return Vec2#Vec2 ret (return value: cc.Vec2)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleTTFSizeForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleTTFForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleTTFSizeForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleLabel
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setPreferredSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getCurrentTitleColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @return color3b_table#color3b_table ret (return value: color3b_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getBackgroundSpriteForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getHorizontalOrigin
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] needsLayout
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: getCurrentTitle()
|
|
|
|
--
|
|
|
|
-- overload function: getCurrentTitle()
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlButton] getCurrentTitle
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (retunr value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getScaleRatio
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleTTFForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getBackgroundSprite
|
|
|
|
-- @param self
|
|
|
|
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleColorForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @return color3b_table#color3b_table ret (return value: color3b_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleColorForState
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color3b_table color3b
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] doesAdjustBackgroundImage
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setBackgroundSpriteFrameForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteFrame spriteframe
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setBackgroundSpriteForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Scale9Sprite scale9sprite
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setScaleRatio
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setBackgroundSprite
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Scale9Sprite scale9sprite
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleLabel
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getPreferredSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getVerticalMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleLabelForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setMargins
|
|
|
|
-- @param self
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setTitleBMFontForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleBMFontForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getZoomOnTouchDown
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] getTitleForState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Control::State state
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: create(cc.Scale9Sprite)
|
|
|
|
--
|
|
|
|
-- overload function: create()
|
|
|
|
--
|
|
|
|
-- overload function: create(cc.Node, cc.Scale9Sprite)
|
|
|
|
--
|
|
|
|
-- overload function: create(string, string, float)
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlButton] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #float float
|
|
|
|
-- @return ControlButton#ControlButton ret (retunr value: cc.ControlButton)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] onTouchMoved
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] onTouchEnded
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] 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=#ControlButton] onTouchCancelled
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] setOpacity
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned char char
|
|
|
|
|
|
|
|
--------------------------------
|
2014-05-19 11:16:40 +08:00
|
|
|
-- @function [parent=#ControlButton] updateDisplayedOpacity
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-05-19 11:16:40 +08:00
|
|
|
-- @param #unsigned char char
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] updateDisplayedColor
|
|
|
|
-- @param self
|
|
|
|
-- @param #color3b_table color3b
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlButton] onTouchBegan
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|