2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Control
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Layer
|
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
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Tells whether the control is enabled.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] setEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bEnabled
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] getState
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Sends action messages for the given control events.<br>
|
|
|
|
-- param controlEvents A bitmask whose set flags specify the control events for<br>
|
|
|
|
-- which action messages are sent. See "CCControlEvent" for bitmask constants.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] sendActionsForControlEvents
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int controlEvents
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- A Boolean value that determines the control selected state.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] setSelected
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bSelected
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] isEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Updates the control layout using its current internal state.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] needsLayout
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] hasVisibleParents
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] isSelected
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Returns a boolean value that indicates whether a touch is inside the bounds<br>
|
|
|
|
-- of the receiver. The given touch must be relative to the world.<br>
|
|
|
|
-- param touch A Touch object that represents a touch.<br>
|
|
|
|
-- return Whether a touch is inside the receiver's rect.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] isTouchInside
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- A Boolean value that determines whether the control is highlighted.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] setHighlighted
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bHighlighted
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Returns a point corresponding to the touh location converted into the<br>
|
|
|
|
-- control space coordinates.<br>
|
|
|
|
-- param touch A Touch object that represents a touch.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] getTouchLocation
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] isHighlighted
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Creates a Control object
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Control] create
|
|
|
|
-- @param self
|
|
|
|
-- @return Control#Control ret (return value: cc.Control)
|
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Control] onTouchMoved
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Control] isOpacityModifyRGB
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Control] setOpacityModifyRGB
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bOpacityModifyRGB
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Control] onTouchCancelled
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Control] onTouchEnded
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
-- @return Control#Control self (return value: cc.Control)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Control] 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
|