2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module TextField
|
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
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setAttachWithIME
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool attach
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] getFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-09-09 14:43:49 +08:00
|
|
|
-- @function [parent=#TextField] getString
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-08-14 10:17:25 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-08-14 10:17:25 +08:00
|
|
|
-- @function [parent=#TextField] setPasswordStyleText
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #char styleText
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-08-14 10:17:25 +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=#TextField] getDeleteBackward
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] getPlaceHolder
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] getAttachWithIME
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setFontName
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string name
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] getInsertText
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setInsertText
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool insertText
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-09-09 14:43:49 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#TextField] setString
|
|
|
|
-- @param self
|
|
|
|
-- @param #string text
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-09-09 14:43:49 +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=#TextField] getDetachWithIME
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setTextVerticalAlignment
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int alignment
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-12 16:14:14 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @function [parent=#TextField] addEventListener
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #function callback
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-05-12 16:14:14 +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=#TextField] didNotSelectSelf
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] getFontName
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setTextAreaSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] attachWithIME
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-06-09 15:20:59 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-06-09 15:20:59 +08:00
|
|
|
-- @function [parent=#TextField] getStringLength
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
2015-01-21 10:10:47 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#TextField] getAutoRenderSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
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=#TextField] setPasswordEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-08-14 10:17:25 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-08-14 10:17:25 +08:00
|
|
|
-- @function [parent=#TextField] getPlaceHolderColor
|
|
|
|
-- @param self
|
|
|
|
-- @return color4b_table#color4b_table ret (return value: color4b_table)
|
|
|
|
|
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=#TextField] getPasswordStyleText
|
|
|
|
-- @param self
|
|
|
|
-- @return char#char ret (return value: char)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setMaxLengthEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-08-14 10:17:25 +08:00
|
|
|
-- @function [parent=#TextField] isPasswordEnabled
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-08-14 10:17:25 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
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=#TextField] setDeleteBackward
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool deleteBackward
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] setFontSize
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int size
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] setPlaceHolder
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string value
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-08-14 10:17:25 +08:00
|
|
|
-- @overload self, color4b_table
|
|
|
|
-- @overload self, color3b_table
|
|
|
|
-- @function [parent=#TextField] setPlaceHolderColor
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #color3b_table color
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-08-14 10:17:25 +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=#TextField] setTextHorizontalAlignment
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int alignment
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-08-14 10:17:25 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-08-14 10:17:25 +08:00
|
|
|
-- @function [parent=#TextField] setTextColor
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #color4b_table textColor
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-08-14 10:17:25 +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=#TextField] getMaxLength
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] isMaxLengthEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TextField] setDetachWithIME
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool detach
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] setTouchAreaEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] setMaxLength
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int length
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] setTouchSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
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=#TextField] getTouchSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, string, string, int
|
|
|
|
-- @overload self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @function [parent=#TextField] create
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string placeholder
|
|
|
|
-- @param #string fontName
|
|
|
|
-- @param #int fontSize
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return TextField#TextField ret (return value: ccui.TextField)
|
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=#TextField] 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=#TextField] getVirtualRenderer
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Returns the "class name" of widget.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#TextField] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#TextField] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#TextField] hitTest
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table pt
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @function [parent=#TextField] getVirtualRendererSize
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
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=#TextField] TextField
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return TextField#TextField self (return value: ccui.TextField)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|