2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module LoadingBar
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Widget
|
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
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Changes the progress value of LoadingBar.<br>
|
|
|
|
-- param percent Percent value from 1 to 100.
|
2014-05-14 17:52:20 +08:00
|
|
|
-- @function [parent=#LoadingBar] setPercent
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float percent
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Load texture for LoadingBar.<br>
|
|
|
|
-- param texture File name of texture.<br>
|
|
|
|
-- param texType Texture resource type,@see TextureResType.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] loadTexture
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string texture
|
|
|
|
-- @param #int texType
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Change the progress direction of LoadingBar.<br>
|
|
|
|
-- see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- param direction Direction
|
2014-05-14 17:52:20 +08:00
|
|
|
-- @function [parent=#LoadingBar] setDirection
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @param #int direction
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Enable scale9 renderer.<br>
|
|
|
|
-- param enabled Set to true will use scale9 renderer, false otherwise.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] setScale9Enabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enabled
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Set capInsets for LoadingBar.<br>
|
|
|
|
-- This setting only take effect when enable scale9 renderer.<br>
|
|
|
|
-- param capInsets CapInset in `Rect`.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] setCapInsets
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #rect_table capInsets
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Get the progress direction of LoadingBar.<br>
|
|
|
|
-- see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br>
|
|
|
|
-- return LoadingBar progress direction.
|
2014-05-14 17:52:20 +08:00
|
|
|
-- @function [parent=#LoadingBar] getDirection
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @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-14 17:52:20 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Query LoadingBar's capInsets.<br>
|
|
|
|
-- return CapInsets of LoadingBar.
|
2014-05-14 17:52:20 +08:00
|
|
|
-- @function [parent=#LoadingBar] getCapInsets
|
|
|
|
-- @param self
|
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Query whether LoadingBar is using scale9 renderer or not.<br>
|
|
|
|
-- return Whether LoadingBar uses scale9 renderer or not.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] isScale9Enabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Get the progress value of LoadingBar.<br>
|
|
|
|
-- return Progress value from 1 to 100.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] getPercent
|
|
|
|
-- @param self
|
2014-05-13 15:03:12 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, string, float
|
|
|
|
-- @overload self
|
2014-12-16 18:44:15 +08:00
|
|
|
-- @overload self, string, int, float
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @function [parent=#LoadingBar] create
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string textureName
|
2014-12-16 18:44:15 +08:00
|
|
|
-- @param #int texType
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float percentage
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return LoadingBar#LoadingBar ret (return value: ccui.LoadingBar)
|
2014-04-04 18:45:34 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] createInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return Ref#Ref ret (return value: cc.Ref)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#LoadingBar] getVirtualRenderer
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#LoadingBar] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @function [parent=#LoadingBar] getVirtualRendererSize
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#LoadingBar] ignoreContentAdaptWithSize
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool ignore
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-31 12:01:57 +08:00
|
|
|
-- Default constructor.<br>
|
|
|
|
-- js ctor<br>
|
|
|
|
-- lua new
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LoadingBar] LoadingBar
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LoadingBar#LoadingBar self (return value: ccui.LoadingBar)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|