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-05-27 14:31:18 +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-06-18 11:44:06 +08:00
|
|
|
-- @function [parent=#Widget] setFlippedY
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-06-18 11:44:06 +08:00
|
|
|
-- @param #bool bool
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setFlippedX
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
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-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-05-27 14:31:18 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +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
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setPositionType
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param #ccui.Widget::PositionType 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
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] findNextFocusedWidget
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget::FocusDirection focusdirection
|
|
|
|
-- @param #ccui.Widget widget
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] getPositionType
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @return Widget::PositionType#Widget::PositionType ret (return value: ccui.Widget::PositionType)
|
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-06-18 11:44:06 +08:00
|
|
|
-- @param #bool bool
|
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
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setFocused
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-05-26 13:44:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setActionTag
|
|
|
|
-- @param self
|
|
|
|
-- @param #int int
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setTouchEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
2014-06-18 11:44:06 +08:00
|
|
|
-- @function [parent=#Widget] getLeftBoundary
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-06-18 11:44:06 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
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-05-12 16:14:14 +08:00
|
|
|
-- @param #ccui.Widget::BrightStyle brightstyle
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setLayoutParameter
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.LayoutParameter layoutparameter
|
|
|
|
|
|
|
|
--------------------------------
|
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
|
|
|
|
-- @param #bool bool
|
|
|
|
|
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-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-03-25 16:13:42 +08:00
|
|
|
-- @param #size_table size
|
|
|
|
|
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-05-12 16:14:14 +08:00
|
|
|
-- @return Widget::SizeType#Widget::SizeType ret (return value: ccui.Widget::SizeType)
|
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-06-09 11:15:50 +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
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] hitTest
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
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
|
|
|
|
-- @param #vec2_table vec2
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setSizeType
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param #ccui.Widget::SizeType sizetype
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] setBright
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-05-08 14:03:37 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] isFocusEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-05-27 10:21:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] enableDpadNavigation
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
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-05-27 14:31:18 +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
|
|
|
|
-- @param #size_table size
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Widget] Widget
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|