mirror of https://github.com/axmolengine/axmol.git
310 lines
8.9 KiB
Lua
310 lines
8.9 KiB
Lua
|
|
--------------------------------
|
|
-- @module Widget
|
|
-- @extend ProtectedNode
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setSizePercent
|
|
-- @param self
|
|
-- @param #point_table point
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getCustomSize
|
|
-- @param self
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setFlippedY
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setFlippedX
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getLeftInParent
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getTouchEndPos
|
|
-- @param self
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setPositionPercent
|
|
-- @param self
|
|
-- @param #point_table point
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getLayoutSize
|
|
-- @param self
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setPositionType
|
|
-- @param self
|
|
-- @param #ccui.PositionType positiontype
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getName
|
|
-- @param self
|
|
-- @return char#char ret (return value: char)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] isIgnoreContentAdaptWithSize
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getBottomInParent
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getActionTag
|
|
-- @param self
|
|
-- @return int#int ret (return value: int)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getLayoutParameter
|
|
-- @param self
|
|
-- @param #ccui.LayoutParameterType layoutparametertype
|
|
-- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getPositionType
|
|
-- @param self
|
|
-- @return PositionType#PositionType ret (return value: ccui.PositionType)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getWidgetType
|
|
-- @param self
|
|
-- @return WidgetType#WidgetType ret (return value: ccui.WidgetType)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getChildByName
|
|
-- @param self
|
|
-- @param #char char
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] isEnabled
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] isFocused
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] isTouchEnabled
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getContentSize
|
|
-- @param self
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getWorldPosition
|
|
-- @param self
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] didNotSelectSelf
|
|
-- @param self
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setFocused
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setTouchEnabled
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] clone
|
|
-- @param self
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getTouchMovePos
|
|
-- @param self
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setEnabled
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getVirtualRenderer
|
|
-- @param self
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setBrightStyle
|
|
-- @param self
|
|
-- @param #ccui.BrightStyle brightstyle
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setName
|
|
-- @param self
|
|
-- @param #char char
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setLayoutParameter
|
|
-- @param self
|
|
-- @param #ccui.LayoutParameter layoutparameter
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getSizePercent
|
|
-- @param self
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getTouchStartPos
|
|
-- @param self
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setActionTag
|
|
-- @param self
|
|
-- @param #int int
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] isBright
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] clippingParentAreaContainPoint
|
|
-- @param self
|
|
-- @param #point_table point
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getTopInParent
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- overload function: updateSizeAndPosition(size_table)
|
|
--
|
|
-- overload function: updateSizeAndPosition()
|
|
--
|
|
-- @function [parent=#Widget] updateSizeAndPosition
|
|
-- @param self
|
|
-- @param #size_table size
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getSize
|
|
-- @param self
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getRightInParent
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getSizeType
|
|
-- @param self
|
|
-- @return SizeType#SizeType ret (return value: ccui.SizeType)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] ignoreContentAdaptWithSize
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getPositionPercent
|
|
-- @param self
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] hitTest
|
|
-- @param self
|
|
-- @param #point_table point
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] isFlippedX
|
|
-- @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] setSizeType
|
|
-- @param self
|
|
-- @param #ccui.SizeType sizetype
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] checkChildInfo
|
|
-- @param self
|
|
-- @param #int int
|
|
-- @param #ccui.Widget widget
|
|
-- @param #point_table point
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setSize
|
|
-- @param self
|
|
-- @param #size_table size
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setBright
|
|
-- @param self
|
|
-- @param #bool bool
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] create
|
|
-- @param self
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setColor
|
|
-- @param self
|
|
-- @param #color3B_table color3b
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getColor
|
|
-- @param self
|
|
-- @return color3B_table#color3B_table ret (return value: color3B_table)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setOpacity
|
|
-- @param self
|
|
-- @param #unsigned char char
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getOpacity
|
|
-- @param self
|
|
-- @return unsigned char#unsigned char ret (return value: unsigned char)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] setPosition
|
|
-- @param self
|
|
-- @param #point_table point
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] getDescription
|
|
-- @param self
|
|
-- @return string#string ret (return value: string)
|
|
|
|
--------------------------------
|
|
-- @function [parent=#Widget] Widget
|
|
-- @param self
|
|
|
|
return nil
|