2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Helper
|
2014-07-02 10:15:26 +08:00
|
|
|
-- @parent_module ccui
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-07-31 13:49:25 +08:00
|
|
|
--------------------------------
|
2014-08-29 16:12:40 +08:00
|
|
|
-- brief Get a UTF8 substring from a std::string with a given start position and length<br>
|
|
|
|
-- Sample: std::string str = "中国中国中国”; substr = getSubStringOfUTF8String(str,0,2) will = "中国"<br>
|
|
|
|
-- param start The start position of the substring.<br>
|
|
|
|
-- param length The length of the substring in UTF8 count<br>
|
|
|
|
-- return a UTF8 substring
|
2014-07-31 13:49:25 +08:00
|
|
|
-- @function [parent=#Helper] getSubStringOfUTF8String
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-08-29 16:12:40 +08:00
|
|
|
-- @param #unsigned long start
|
|
|
|
-- @param #unsigned long length
|
2014-07-31 13:49:25 +08:00
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-08-29 16:12:40 +08:00
|
|
|
-- Finds a widget whose tag equals to param tag from root widget.<br>
|
|
|
|
-- param root widget which will be seeked.<br>
|
|
|
|
-- tag tag value.<br>
|
|
|
|
-- return finded result.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Helper] seekWidgetByTag
|
|
|
|
-- @param self
|
2014-08-29 16:12:40 +08:00
|
|
|
-- @param #ccui.Widget root
|
|
|
|
-- @param #int tag
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-08-29 16:12:40 +08:00
|
|
|
--
|
2014-03-26 18:42:58 +08:00
|
|
|
-- @function [parent=#Helper] seekActionWidgetByActionTag
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-29 16:12:40 +08:00
|
|
|
-- @param #ccui.Widget root
|
|
|
|
-- @param #int tag
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-08-29 16:12:40 +08:00
|
|
|
-- Finds a widget whose name equals to param name from root widget.<br>
|
|
|
|
-- param root widget which will be seeked.<br>
|
|
|
|
-- name name value.<br>
|
|
|
|
-- return finded result.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Helper] seekWidgetByName
|
|
|
|
-- @param self
|
2014-08-29 16:12:40 +08:00
|
|
|
-- @param #ccui.Widget root
|
|
|
|
-- @param #string name
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
return nil
|