2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Widget
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @extend ProtectedNode,LayoutParameterProtocol
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module ccui
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setSizePercent
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getCustomSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @function [parent=#Widget] getLeftBoundary
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setFlippedX
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @function [parent=#Widget] getVirtualRenderer
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-08-18 23:26:32 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setPropagateTouchEvents
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-08-18 23:26:32 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-06-24 18:48:02 +08:00
|
|
|
-- @function [parent=#Widget] getSizePercent
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-06-24 18:48:02 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setPositionPercent
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-08-18 23:26:32 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setSwallowTouches
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-08-18 23:26:32 +08:00
|
|
|
|
2014-03-13 11:37:37 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getLayoutSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setHighlighted
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-05-08 14:03:37 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setPositionType
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #int positiontype
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isIgnoreContentAdaptWithSize
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @function [parent=#Widget] getVirtualRendererSize
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isHighlighted
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getLayoutParameter
|
|
|
|
-- @param self
|
|
|
|
-- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter)
|
|
|
|
|
2014-06-09 11:15:50 +08:00
|
|
|
--------------------------------
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @function [parent=#Widget] hitTest
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
2014-06-09 11:15:50 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getPositionType
|
|
|
|
-- @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-05-26 13:44:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getTopBoundary
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-06-18 11:44:06 +08:00
|
|
|
-- @function [parent=#Widget] ignoreContentAdaptWithSize
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-08-22 19:25:33 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] findNextFocusedWidget
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #int focusdirection
|
|
|
|
-- @param #ccui.Widget widget
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#Widget] isFocused
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @function [parent=#Widget] getTouchBeganPosition
|
2014-05-08 14:03:37 +08:00
|
|
|
-- @param self
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-05-08 14:03:37 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isTouchEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @function [parent=#Widget] getActionTag
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getWorldPosition
|
|
|
|
-- @param self
|
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-08-18 23:26:32 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isFocusEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setFocused
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-26 13:44:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setActionTag
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #int int
|
2014-05-26 13:44:22 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setTouchEnabled
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @function [parent=#Widget] setFlippedY
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setEnabled
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @function [parent=#Widget] getRightBoundary
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setBrightStyle
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #int brightstyle
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setLayoutParameter
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #ccui.LayoutParameter layoutparameter
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @function [parent=#Widget] clone
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setFocusEnabled
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-05-08 14:03:37 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @function [parent=#Widget] getBottomBoundary
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-05-26 13:44:22 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isBright
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-08-18 23:26:32 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isPropagateTouchEvents
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getCurrentFocusedWidget
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] requestFocus
|
|
|
|
-- @param self
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, size_table
|
|
|
|
-- @overload self
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#Widget] updateSizeAndPosition
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #size_table size
|
2014-03-25 16:13:42 +08:00
|
|
|
|
2014-06-09 11:15:50 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getTouchMovePosition
|
|
|
|
-- @param self
|
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getSizeType
|
|
|
|
-- @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-05-27 10:21:22 +08:00
|
|
|
--------------------------------
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @function [parent=#Widget] addTouchEventListener
|
2014-05-27 10:21:22 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #function func
|
2014-05-27 10:21:22 +08:00
|
|
|
|
2014-05-12 16:14:14 +08:00
|
|
|
--------------------------------
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @function [parent=#Widget] getTouchEndPosition
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param self
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-05-12 16:14:14 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getPositionPercent
|
|
|
|
-- @param self
|
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-08-22 19:25:33 +08:00
|
|
|
-- @function [parent=#Widget] addClickEventListener
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #function func
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#Widget] isFlippedX
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isFlippedY
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-06-09 11:15:50 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isClippingParentContainsPoint
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-06-09 11:15:50 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setSizeType
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #int sizetype
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setBright
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
2014-08-18 23:26:32 +08:00
|
|
|
-- @function [parent=#Widget] isSwallowTouches
|
2014-05-08 14:03:37 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-05-27 10:21:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] enableDpadNavigation
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #bool bool
|
2014-05-27 10:21:22 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] create
|
|
|
|
-- @param self
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-06-09 09:46:34 +08:00
|
|
|
-- @function [parent=#Widget] getDescription
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-06-09 09:46:34 +08:00
|
|
|
-- @return string#string ret (return value: string)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#Widget] setPosition
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-06-24 18:48:02 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setContentSize
|
|
|
|
-- @param self
|
2014-08-29 18:38:25 +08:00
|
|
|
-- @param #size_table size
|
2014-06-24 18:48:02 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] Widget
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|