axmol/cocos/scripting/lua-bindings/auto/api/Widget.lua

322 lines
9.0 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module Widget
-- @extend ProtectedNode,LayoutParameterProtocol
-- @parent_module ccui
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setSizePercent
-- @param self
-- @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)
--------------------------------
-- @function [parent=#Widget] getLeftBoundary
2014-03-10 14:04:58 +08:00
-- @param self
-- @return float#float ret (return value: float)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setFlippedX
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getVirtualRenderer
2014-03-10 14:04:58 +08:00
-- @param self
-- @return Node#Node ret (return value: cc.Node)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setPropagateTouchEvents
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getSizePercent
2014-03-10 14:04:58 +08:00
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setPositionPercent
-- @param self
-- @param #vec2_table vec2
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setSwallowTouches
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Widget] getLayoutSize
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
-- @function [parent=#Widget] setHighlighted
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setPositionType
-- @param self
-- @param #int positiontype
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] isIgnoreContentAdaptWithSize
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Widget] getVirtualRendererSize
2014-03-10 14:04:58 +08:00
-- @param self
-- @return size_table#size_table ret (return value: size_table)
2014-03-10 14:04:58 +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)
--------------------------------
-- @function [parent=#Widget] hitTest
-- @param self
-- @param #vec2_table vec2
-- @return bool#bool ret (return value: bool)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getPositionType
-- @param self
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getTopBoundary
-- @param self
-- @return float#float ret (return value: float)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] ignoreContentAdaptWithSize
2014-03-10 14:04:58 +08:00
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] findNextFocusedWidget
-- @param self
-- @param #int focusdirection
-- @param #ccui.Widget widget
-- @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)
--------------------------------
-- @function [parent=#Widget] isFocused
2014-03-10 14:04:58 +08:00
-- @param self
-- @return bool#bool ret (return value: bool)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getTouchBeganPosition
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] isTouchEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Widget] getActionTag
2014-03-10 14:04:58 +08:00
-- @param self
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getWorldPosition
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +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
-- @param #bool bool
2014-03-10 14:04:58 +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-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setFlippedY
2014-03-10 14:04:58 +08:00
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setEnabled
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getRightBoundary
2014-03-10 14:04:58 +08:00
-- @param self
-- @return float#float ret (return value: float)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setBrightStyle
-- @param self
-- @param #int brightstyle
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setLayoutParameter
-- @param self
-- @param #ccui.LayoutParameter layoutparameter
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] clone
2014-03-10 14:04:58 +08:00
-- @param self
-- @return Widget#Widget ret (return value: ccui.Widget)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setFocusEnabled
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getBottomBoundary
2014-03-10 14:04:58 +08:00
-- @param self
-- @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)
--------------------------------
-- @function [parent=#Widget] isPropagateTouchEvents
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @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
--------------------------------
-- @overload self, size_table
-- @overload self
-- @function [parent=#Widget] updateSizeAndPosition
2014-03-10 14:04:58 +08:00
-- @param self
-- @param #size_table size
--------------------------------
-- @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
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] addTouchEventListener
-- @param self
-- @param #function func
--------------------------------
-- @function [parent=#Widget] getTouchEndPosition
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] getPositionPercent
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] addClickEventListener
2014-03-10 14:04:58 +08:00
-- @param self
-- @param #function func
2014-03-10 14:04:58 +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)
--------------------------------
-- @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
-- @param #int sizetype
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] setBright
-- @param self
-- @param #bool bool
2014-03-10 14:04:58 +08:00
--------------------------------
-- @function [parent=#Widget] isSwallowTouches
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @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)
--------------------------------
-- @function [parent=#Widget] getDescription
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
-- @function [parent=#Widget] setPosition
-- @param self
-- @param #vec2_table vec2
--------------------------------
-- @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