2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module LayoutComponent
|
|
|
|
-- @extend Component
|
|
|
|
-- @parent_module ccui
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle enable stretch width.<br>
|
|
|
|
-- param isUsed True if enable stretch width, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setStretchWidthEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change percent width of owner.<br>
|
|
|
|
-- param percentWidth Percent Width in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPercentWidth
|
|
|
|
-- @param self
|
|
|
|
-- @param #float percentWidth
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the anchor position.<br>
|
|
|
|
-- return Anchor position to it's parent
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getAnchorPosition
|
|
|
|
-- @param self
|
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle position percentX enabled.<br>
|
|
|
|
-- param isUsed True if enable position percentX, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPositionPercentXEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle enable stretch height.<br>
|
|
|
|
-- param isUsed True if stretch height is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setStretchHeightEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle active enabled of LayoutComponent's owner.<br>
|
|
|
|
-- param enable True if active layout component, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setActiveEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the right margin of owner relative to its parent.<br>
|
|
|
|
-- return Right margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getRightMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query owner's content size.<br>
|
|
|
|
-- return Owner's content size.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change the anchor position to it's parent.<br>
|
|
|
|
-- param point A value in (x,y) format.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setAnchorPosition
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table point
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Refresh layout of the owner.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] refreshLayout
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query whether percent width is enabled or not.<br>
|
|
|
|
-- return True if percent width is enabled, false, otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] isPercentWidthEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change element's vertical dock type.<br>
|
|
|
|
-- param vEage Vertical dock type @see `VerticalEdge`.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setVerticalEdge
|
|
|
|
-- @param self
|
|
|
|
-- @param #int vEage
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the top margin of owner relative to its parent.<br>
|
|
|
|
-- return Top margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getTopMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change content size width of owner.<br>
|
|
|
|
-- param width Content size width in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setSizeWidth
|
|
|
|
-- @param self
|
|
|
|
-- @param #float width
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the percent content size value.<br>
|
|
|
|
-- return Percet (x,y) in Vec2.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getPercentContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query element vertical dock type.<br>
|
|
|
|
-- return Vertical dock type.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getVerticalEdge
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle enable percent width.<br>
|
|
|
|
-- param isUsed True if percent width is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPercentWidthEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query whether stretch width is enabled or not.<br>
|
|
|
|
-- return True if stretch width is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] isStretchWidthEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change left margin of owner relative to its parent.<br>
|
|
|
|
-- param margin Margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setLeftMargin
|
|
|
|
-- @param self
|
|
|
|
-- @param #float margin
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query content size width of owner.<br>
|
|
|
|
-- return Content size width in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getSizeWidth
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle position percentY enabled.<br>
|
|
|
|
-- param isUsed True if position percentY is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPositionPercentYEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query size height of owner.<br>
|
|
|
|
-- return Size height in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getSizeHeight
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the position percentY Y value.<br>
|
|
|
|
-- return Position percent Y value in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getPositionPercentY
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the position percent X value.<br>
|
|
|
|
-- return Position percent X value in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getPositionPercentX
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change the top margin of owner relative to its parent.<br>
|
|
|
|
-- param margin Margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setTopMargin
|
|
|
|
-- @param self
|
|
|
|
-- @param #float margin
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query percent hieght of owner. <br>
|
|
|
|
-- return Percent height in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getPercentHeight
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query whether use percent content size or not.<br>
|
|
|
|
-- return True if using percent content size, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getUsingPercentContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change position percentY value.<br>
|
|
|
|
-- param percentMargin Margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPositionPercentY
|
|
|
|
-- @param self
|
|
|
|
-- @param #float percentMargin
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change position percent X value.<br>
|
|
|
|
-- param percentMargin Margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPositionPercentX
|
|
|
|
-- @param self
|
|
|
|
-- @param #float percentMargin
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change right margin of owner relative to its parent.<br>
|
|
|
|
-- param margin Margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setRightMargin
|
|
|
|
-- @param self
|
|
|
|
-- @param #float margin
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Whether position percentY is enabled or not.<br>
|
|
|
|
-- see `setPositionPercentYEnabled`<br>
|
|
|
|
-- return True if position percentY is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] isPositionPercentYEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change percent height value of owner.<br>
|
|
|
|
-- param percentHeight Percent height in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPercentHeight
|
|
|
|
-- @param self
|
|
|
|
-- @param #float percentHeight
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
2015-01-20 15:38:26 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle enable percent only.<br>
|
|
|
|
-- param enable True if percent only is enabled, false otherwise.
|
2015-01-20 15:38:26 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPercentOnlyEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-20 15:38:26 +08:00
|
|
|
|
2015-01-14 17:16:01 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change element's horizontal dock type.<br>
|
|
|
|
-- param hEage Horizontal dock type @see `HorizontalEdge`
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setHorizontalEdge
|
|
|
|
-- @param self
|
|
|
|
-- @param #int hEage
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change the position of component owner.<br>
|
|
|
|
-- param position A position in (x,y)
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPosition
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table position
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Percent content size is used to adapt node's content size based on parent's content size.<br>
|
|
|
|
-- If set to true then node's content size will be changed based on the value setted by @setPercentContentSize<br>
|
|
|
|
-- param isUsed True to enable percent content size, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setUsingPercentContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query left margin of owner relative to its parent.<br>
|
|
|
|
-- return Left margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getLeftMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the owner's position.<br>
|
|
|
|
-- return The owner's position.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getPosition
|
|
|
|
-- @param self
|
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change size height of owner.<br>
|
|
|
|
-- param height Size height in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setSizeHeight
|
|
|
|
-- @param self
|
|
|
|
-- @param #float height
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Whether position percentX is enabled or not. <br>
|
|
|
|
-- return True if position percertX is enable, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] isPositionPercentXEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query the bottom margin of owner relative to its parent.<br>
|
|
|
|
-- return Bottom margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getBottomMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Toggle enable percent height.<br>
|
|
|
|
-- param isUsed True if percent height is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPercentHeightEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isUsed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Set percent content size.<br>
|
|
|
|
-- The value should be [0-1], 0 means the child's content size will be 0<br>
|
|
|
|
-- and 1 means the child's content size is the same as its parents.<br>
|
|
|
|
-- param percent The percent (x,y) of the node in [0-1] scope.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setPercentContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table percent
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query whehter percent height is enabled or not.<br>
|
|
|
|
-- return True if percent height is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] isPercentHeightEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query percent width of owner.<br>
|
|
|
|
-- return percent width in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getPercentWidth
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query element horizontal dock type.<br>
|
|
|
|
-- return Horizontal dock type.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] getHorizontalEdge
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Query whether stretch height is enabled or not.<br>
|
|
|
|
-- return True if stretch height is enabled, false otherwise.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] isStretchHeightEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change the bottom margin of owner relative to its parent.<br>
|
|
|
|
-- param Margin in float.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setBottomMargin
|
|
|
|
-- @param self
|
|
|
|
-- @param #float margin
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change the content size of owner.<br>
|
|
|
|
-- param size Content size in @see `Size`.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] setSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#LayoutComponent] create
|
|
|
|
-- @param self
|
|
|
|
-- @return LayoutComponent#LayoutComponent ret (return value: ccui.LayoutComponent)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Bind a LayoutComponent to a specified node.<br>
|
|
|
|
-- If the node has already binded a LayoutComponent named __LAYOUT_COMPONENT_NAME, just return the LayoutComponent.<br>
|
|
|
|
-- Otherwise, create a new LayoutComponent and bind the LayoutComponent to the node.<br>
|
|
|
|
-- param node A Node* instance pointer.<br>
|
|
|
|
-- return The binded LayoutComponent instance pointer.
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] bindLayoutComponent
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @return LayoutComponent#LayoutComponent ret (return value: ccui.LayoutComponent)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#LayoutComponent] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Default constructor
|
2015-01-14 17:16:01 +08:00
|
|
|
-- @function [parent=#LayoutComponent] LayoutComponent
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayoutComponent#LayoutComponent self (return value: ccui.LayoutComponent)
|
2015-01-14 17:16:01 +08:00
|
|
|
|
|
|
|
return nil
|