diff options
author | CppCXY <812125110@qq.com> | 2024-02-22 20:29:13 +0800 |
---|---|---|
committer | CppCXY <812125110@qq.com> | 2024-02-22 20:29:13 +0800 |
commit | 9b6df71d97a70ee7179949ef9f15368cbf29dcbd (patch) | |
tree | bf7a7e62ed7c164a12bdce437c17262a5235bcec /meta/3rd/Cocos4.0/library/ccui | |
parent | 483fe246b6ae8c25d433aa15e43f04f0e71a74d5 (diff) | |
parent | 3e6fd3ce1f2f0528336ded939d776a29bbfaf2eb (diff) | |
download | lua-language-server-9b6df71d97a70ee7179949ef9f15368cbf29dcbd.zip |
Merge branch 'master' of github.com:CppCXY/lua-language-server
Diffstat (limited to 'meta/3rd/Cocos4.0/library/ccui')
38 files changed, 0 insertions, 4821 deletions
diff --git a/meta/3rd/Cocos4.0 b/meta/3rd/Cocos4.0 new file mode 160000 +Subproject c0b2259e0d367561fd4563ae114b029b4dfe3a8 diff --git a/meta/3rd/Cocos4.0/library/ccui/AbstractCheckButton.lua b/meta/3rd/Cocos4.0/library/ccui/AbstractCheckButton.lua deleted file mode 100644 index 2a2ae13c..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/AbstractCheckButton.lua +++ /dev/null @@ -1,133 +0,0 @@ ----@meta - ----@class ccui.AbstractCheckButton :ccui.Widget -local AbstractCheckButton={ } -ccui.AbstractCheckButton=AbstractCheckButton - - - - ----* ----@return cc.ResourceData -function AbstractCheckButton:getCrossDisabledFile () end ----* ----@return cc.ResourceData -function AbstractCheckButton:getBackDisabledFile () end ----* Load background selected state texture for check button.<br> ----* param backGroundSelected The background selected state image name.<br> ----* param texType @see `Widget::TextureResType` ----@param backGroundSelected string ----@param texType int ----@return self -function AbstractCheckButton:loadTextureBackGroundSelected (backGroundSelected,texType) end ----* Load background disabled state texture for checkbox.<br> ----* param backGroundDisabled The background disabled state texture name.<br> ----* param texType @see `Widget::TextureResType` ----@param backGroundDisabled string ----@param texType int ----@return self -function AbstractCheckButton:loadTextureBackGroundDisabled (backGroundDisabled,texType) end ----* ----@return cc.ResourceData -function AbstractCheckButton:getCrossNormalFile () end ----* Change CheckBox state.<br> ----* Set to true will cause the CheckBox's state to "selected", false otherwise.<br> ----* param selected Set to true will change CheckBox to selected state, false otherwise. ----@param selected boolean ----@return self -function AbstractCheckButton:setSelected (selected) end ----* ----@return cc.ResourceData -function AbstractCheckButton:getBackPressedFile () end ----* brief Return the sprite instance of front cross when disabled<br> ----* return the sprite instance of front cross when disabled ----@return cc.Sprite -function AbstractCheckButton:getRendererFrontCrossDisabled () end ----* brief Return the sprite instance of background<br> ----* return the sprite instance of background. ----@return cc.Sprite -function AbstractCheckButton:getRendererBackground () end ----* Load cross texture for check button.<br> ----* param crossTextureName The cross texture name.<br> ----* param texType @see `Widget::TextureResType` ----@param crossTextureName string ----@param texType int ----@return self -function AbstractCheckButton:loadTextureFrontCross (crossTextureName,texType) end ----* brief Return the sprite instance of background when disabled<br> ----* return the sprite instance of background when disabled ----@return cc.Sprite -function AbstractCheckButton:getRendererBackgroundDisabled () end ----* Query whether CheckBox is selected or not.<br> ----* return true means "selected", false otherwise. ----@return boolean -function AbstractCheckButton:isSelected () end ----* ----@param backGround string ----@param backGroundSelected string ----@param cross string ----@param backGroundDisabled string ----@param frontCrossDisabled string ----@param texType int ----@return boolean -function AbstractCheckButton:init (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end ----* ----@return cc.ResourceData -function AbstractCheckButton:getBackNormalFile () end ----* Load all textures for initializing a check button.<br> ----* param background The background image name.<br> ----* param backgroundSelected The background selected image name.<br> ----* param cross The cross image name.<br> ----* param backgroundDisabled The background disabled state texture.<br> ----* param frontCrossDisabled The front cross disabled state image name.<br> ----* param texType @see `Widget::TextureResType` ----@param background string ----@param backgroundSelected string ----@param cross string ----@param backgroundDisabled string ----@param frontCrossDisabled string ----@param texType int ----@return self -function AbstractCheckButton:loadTextures (background,backgroundSelected,cross,backgroundDisabled,frontCrossDisabled,texType) end ----* brief Return a zoom scale<br> ----* return A zoom scale of Checkbox.<br> ----* since v3.3 ----@return float -function AbstractCheckButton:getZoomScale () end ----* brief Return the sprite instance of front cross<br> ----* return the sprite instance of front cross ----@return cc.Sprite -function AbstractCheckButton:getRendererFrontCross () end ----* brief Return the sprite instance of background when selected<br> ----* return the sprite instance of background when selected ----@return cc.Sprite -function AbstractCheckButton:getRendererBackgroundSelected () end ----* Load background texture for check button.<br> ----* param backGround The background image name.<br> ----* param type @see `Widget::TextureResType` ----@param backGround string ----@param type int ----@return self -function AbstractCheckButton:loadTextureBackGround (backGround,type) end ----* When user pressed the CheckBox, the button will zoom to a scale.<br> ----* The final scale of the CheckBox equals (CheckBox original scale + _zoomScale)<br> ----* since v3.3 ----@param scale float ----@return self -function AbstractCheckButton:setZoomScale (scale) end ----* Load frontcross disabled texture for checkbox.<br> ----* param frontCrossDisabled The front cross disabled state texture name.<br> ----* param texType @see `Widget::TextureResType` ----@param frontCrossDisabled string ----@param texType int ----@return self -function AbstractCheckButton:loadTextureFrontCrossDisabled (frontCrossDisabled,texType) end ----* ----@return cc.Node -function AbstractCheckButton:getVirtualRenderer () end ----* ----@return boolean -function AbstractCheckButton:init () end ----* ----@return size_table -function AbstractCheckButton:getVirtualRendererSize () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Button.lua b/meta/3rd/Cocos4.0/library/ccui/Button.lua deleted file mode 100644 index 7d68bd91..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Button.lua +++ /dev/null @@ -1,226 +0,0 @@ ----@meta - ----@class ccui.Button :ccui.Widget -local Button={ } -ccui.Button=Button - - - - ----* ----@return size_table -function Button:getNormalTextureSize () end ----* Query the button title content.<br> ----* return Get the button's title content. ----@return string -function Button:getTitleText () end ----* replaces the current Label node with a new one ----@param label cc.Label ----@return self -function Button:setTitleLabel (label) end ----* Change the font size of button's title<br> ----* param size Title font size in float. ----@param size float ----@return self -function Button:setTitleFontSize (size) end ----* ----@return self -function Button:resetPressedRender () end ----* Enable scale9 renderer.<br> ----* param enable Set to true will use scale9 renderer, false otherwise. ----@param enable boolean ----@return self -function Button:setScale9Enabled (enable) end ----* ----@return self -function Button:resetDisabledRender () end ----* Return the inner title renderer of Button.<br> ----* return The button title.<br> ----* since v3.3 ----@return cc.Label -function Button:getTitleRenderer () end ----* brief Return the nine-patch sprite of clicked state<br> ----* return the nine-patch sprite of clicked state<br> ----* since v3.9 ----@return ccui.Scale9Sprite -function Button:getRendererClicked () end ----* ----@return cc.ResourceData -function Button:getDisabledFile () end ----* brief Return a zoom scale<br> ----* return the zoom scale in float<br> ----* since v3.3 ----@return float -function Button:getZoomScale () end ----* Return the capInsets of disabled state scale9sprite.<br> ----* return The disabled scale9 renderer capInsets. ----@return rect_table -function Button:getCapInsetsDisabledRenderer () end ----* Change the color of button's title.<br> ----* param color The title color in Color3B. ----@param color color3b_table ----@return self -function Button:setTitleColor (color) end ----* ----@return cc.ResourceData -function Button:getNormalFile () end ----* ----@return self -function Button:resetNormalRender () end ----* brief Return the nine-patch sprite of disabled state<br> ----* return the nine-patch sprite of disabled state<br> ----* since v3.9 ----@return ccui.Scale9Sprite -function Button:getRendererDisabled () end ----* Sets capInsets for button, only the disabled state scale9 renderer will be affected.<br> ----* param capInsets capInsets in Rect. ----@param capInsets rect_table ----@return self -function Button:setCapInsetsDisabledRenderer (capInsets) end ----* Sets capInsets for button.<br> ----* The capInset affects all button scale9 renderer only if `setScale9Enabled(true)` is called<br> ----* param capInsets capInset in Rect. ----@param capInsets rect_table ----@return self -function Button:setCapInsets (capInsets) end ----* Load disabled state texture for button.<br> ----* param disabled dark state texture.<br> ----* param texType @see `TextureResType` ----@param disabled string ----@param texType int ----@return self -function Button:loadTextureDisabled (disabled,texType) end ----* ----@param normalImage string ----@param selectedImage string ----@param disableImage string ----@param texType int ----@return boolean -function Button:init (normalImage,selectedImage,disableImage,texType) end ----* Change the content of button's title.<br> ----* param text The title in std::string. ----@param text string ----@return self -function Button:setTitleText (text) end ----* Sets capInsets for button, only the normal state scale9 renderer will be affected.<br> ----* param capInsets capInsets in Rect. ----@param capInsets rect_table ----@return self -function Button:setCapInsetsNormalRenderer (capInsets) end ----* Load selected state texture for button.<br> ----* param selected selected state texture.<br> ----* param texType @see `TextureResType` ----@param selected string ----@param texType int ----@return self -function Button:loadTexturePressed (selected,texType) end ----* Change the font name of button's title<br> ----* param fontName a font name string. ----@param fontName string ----@return self -function Button:setTitleFontName (fontName) end ----* Return the capInsets of normal state scale9sprite.<br> ----* return The normal scale9 renderer capInsets. ----@return rect_table -function Button:getCapInsetsNormalRenderer () end ----@overload fun(int:int,int:int):self ----@overload fun(int:int):self ----@param hAlignment int ----@param vAlignment int ----@return self -function Button:setTitleAlignment (hAlignment,vAlignment) end ----* Return the capInsets of pressed state scale9sprite.<br> ----* return The pressed scale9 renderer capInsets. ----@return rect_table -function Button:getCapInsetsPressedRenderer () end ----* Load textures for button.<br> ----* param normal normal state texture name.<br> ----* param selected selected state texture name.<br> ----* param disabled disabled state texture name.<br> ----* param texType @see `TextureResType` ----@param normal string ----@param selected string ----@param disabled string ----@param texType int ----@return self -function Button:loadTextures (normal,selected,disabled,texType) end ----* Query whether button is using scale9 renderer or not.<br> ----* return whether button use scale9 renderer or not. ----@return boolean -function Button:isScale9Enabled () end ----* Load normal state texture for button.<br> ----* param normal normal state texture.<br> ----* param texType @see `TextureResType` ----@param normal string ----@param texType int ----@return self -function Button:loadTextureNormal (normal,texType) end ----* Sets capInsets for button, only the pressed state scale9 renderer will be affected.<br> ----* param capInsets capInsets in Rect ----@param capInsets rect_table ----@return self -function Button:setCapInsetsPressedRenderer (capInsets) end ----* ----@return cc.ResourceData -function Button:getPressedFile () end ----* returns the current Label being used ----@return cc.Label -function Button:getTitleLabel () end ----* Query the font size of button title<br> ----* return font size in float. ----@return float -function Button:getTitleFontSize () end ----* brief Return the nine-patch sprite of normal state<br> ----* return the nine-patch sprite of normal state<br> ----* since v3.9 ----@return ccui.Scale9Sprite -function Button:getRendererNormal () end ----* Query the font name of button's title<br> ----* return font name in std::string ----@return string -function Button:getTitleFontName () end ----* Query the button title color.<br> ----* return Color3B of button title. ----@return color3b_table -function Button:getTitleColor () end ----* Enable zooming action when button is pressed.<br> ----* param enabled Set to true will enable zoom effect, false otherwise. ----@param enabled boolean ----@return self -function Button:setPressedActionEnabled (enabled) end ----* @brief When user pressed the button, the button will zoom to a scale.<br> ----* The final scale of the button equals (button original scale + _zoomScale)<br> ----* since v3.3 ----@param scale float ----@return self -function Button:setZoomScale (scale) end ----@overload fun(string:string,string:string,string:string,int:int):self ----@overload fun():self ----@param normalImage string ----@param selectedImage string ----@param disableImage string ----@param texType int ----@return self -function Button:create (normalImage,selectedImage,disableImage,texType) end ----* ----@return cc.Ref -function Button:createInstance () end ----* ----@return cc.Node -function Button:getVirtualRenderer () end ----* ----@return boolean -function Button:init () end ----* ----@return string -function Button:getDescription () end ----* ----@return size_table -function Button:getVirtualRendererSize () end ----* ----@param ignore boolean ----@return self -function Button:ignoreContentAdaptWithSize (ignore) end ----* Default constructor. ----@return self -function Button:Button () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/CheckBox.lua b/meta/3rd/Cocos4.0/library/ccui/CheckBox.lua deleted file mode 100644 index b4079bfb..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/CheckBox.lua +++ /dev/null @@ -1,35 +0,0 @@ ----@meta - ----@class ccui.CheckBox :ccui.AbstractCheckButton -local CheckBox={ } -ccui.CheckBox=CheckBox - - - - ----* Add a callback function which would be called when checkbox is selected or unselected.<br> ----* param callback A std::function with type @see `ccCheckBoxCallback` ----@param callback function ----@return self -function CheckBox:addEventListener (callback) end ----@overload fun(string:string,string:string,string:string,string:string,string:string,int:int):self ----@overload fun():self ----@overload fun(string:string,string:string,string2:int):self ----@param backGround string ----@param backGroundSelected string ----@param cross string ----@param backGroundDisabled string ----@param frontCrossDisabled string ----@param texType int ----@return self -function CheckBox:create (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end ----* ----@return cc.Ref -function CheckBox:createInstance () end ----* ----@return string -function CheckBox:getDescription () end ----* Default constructor.<br> ----* lua new ----@return self -function CheckBox:CheckBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/EditBox.lua b/meta/3rd/Cocos4.0/library/ccui/EditBox.lua deleted file mode 100644 index 1cd1fb9b..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/EditBox.lua +++ /dev/null @@ -1,323 +0,0 @@ ----@meta - ----@class ccui.EditBox :ccui.Widget@all parent class: Widget,IMEDelegate -local EditBox={ } -ccui.EditBox=EditBox - - - - ----* Get the font size.<br> ----* return The font size. ----@return int -function EditBox:getFontSize () end ----* js NA<br> ----* lua NA ----@param info cc.IMEKeyboardNotificationInfo ----@return self -function EditBox:keyboardDidShow (info) end ----* Sets the maximum input length of the edit box.<br> ----* Setting this value enables multiline input mode by default.<br> ----* Available on Android, iOS and Windows Phone.<br> ----* param maxLength The maximum length. ----@param maxLength int ----@return self -function EditBox:setMaxLength (maxLength) end ----* ----@return self -function EditBox:openKeyboard () end ----* Set the font size.<br> ----* param fontSize The font size. ----@param fontSize int ----@return self -function EditBox:setFontSize (fontSize) end ----* Get the text entered in the edit box.<br> ----* return The text entered in the edit box. ----@return char -function EditBox:getText () end ----* Get the input mode of the edit box.<br> ----* return One of the EditBox::InputMode constants. ----@return int -function EditBox:getInputMode () end ----@overload fun(size_table:size_table,ccui.Scale9Sprite:ccui.Scale9Sprite):self ----@overload fun(size_table:size_table,ccui.Scale9Sprite1:string,ccui.Scale9Sprite2:int):self ----@overload fun(size_table:size_table,ccui.Scale9Sprite:ccui.Scale9Sprite,ccui.Scale9Sprite:ccui.Scale9Sprite,ccui.Scale9Sprite:ccui.Scale9Sprite):self ----@param size size_table ----@param normalSprite ccui.Scale9Sprite ----@param pressedSprite ccui.Scale9Sprite ----@param disabledSprite ccui.Scale9Sprite ----@return boolean -function EditBox:initWithSizeAndBackgroundSprite (size,normalSprite,pressedSprite,disabledSprite) end ----* Get the placeholder's font name. only system font is allowed.<br> ----* return The font name. ----@return char -function EditBox:getPlaceholderFontName () end ----* js NA<br> ----* lua NA ----@param info cc.IMEKeyboardNotificationInfo ----@return self -function EditBox:keyboardDidHide (info) end ----* Set the placeholder's font name. only system font is allowed.<br> ----* param pFontName The font name. ----@param pFontName char ----@return self -function EditBox:setPlaceholderFontName (pFontName) end ----* Get the placeholder's font size.<br> ----* return The font size. ----@return int -function EditBox:getPlaceholderFontSize () end ----* Return the capInsets of disabled state scale9sprite.<br> ----* return The disabled scale9 renderer capInsets. ----@return rect_table -function EditBox:getCapInsetsDisabledRenderer () end ----* Get a text in the edit box that acts as a placeholder when an<br> ----* edit box is empty. ----@return char -function EditBox:getPlaceHolder () end ----* Set the font name. Only system font is allowed.<br> ----* param pFontName The font name. ----@param pFontName char ----@return self -function EditBox:setFontName (pFontName) end ----* Registers a script function that will be called for EditBox events.<br> ----* This handler will be removed automatically after onExit() called.<br> ----* code<br> ----* -- lua sample<br> ----* local function editboxEventHandler(eventType)<br> ----* if eventType == "began" then<br> ----* -- triggered when an edit box gains focus after keyboard is shown<br> ----* elseif eventType == "ended" then<br> ----* -- triggered when an edit box loses focus after keyboard is hidden.<br> ----* elseif eventType == "changed" then<br> ----* -- triggered when the edit box text was changed.<br> ----* elseif eventType == "return" then<br> ----* -- triggered when the return button was pressed or the outside area of keyboard was touched.<br> ----* end<br> ----* end<br> ----* local editbox = EditBox:create(Size(...), Scale9Sprite:create(...))<br> ----* editbox = registerScriptEditBoxHandler(editboxEventHandler)<br> ----* endcode<br> ----* param handler A number that indicates a lua function.<br> ----* js NA<br> ----* lua NA ----@param handler int ----@return self -function EditBox:registerScriptEditBoxHandler (handler) end ----* Sets capInsets for edit box, only the disabled state scale9 renderer will be affected.<br> ----* param capInsets capInsets in Rect. ----@param capInsets rect_table ----@return self -function EditBox:setCapInsetsDisabledRenderer (capInsets) end ----* Set the placeholder's font size.<br> ----* param fontSize The font size. ----@param fontSize int ----@return self -function EditBox:setPlaceholderFontSize (fontSize) end ----* Load disabled state texture for edit box.<br> ----* param disabled dark state texture.<br> ----* param texType @see `TextureResType` ----@param disabled string ----@param texType int ----@return self -function EditBox:loadTextureDisabled (disabled,texType) end ----* Set the input mode of the edit box.<br> ----* param inputMode One of the EditBox::InputMode constants. ----@param inputMode int ----@return self -function EditBox:setInputMode (inputMode) end ----* Unregisters a script function that will be called for EditBox events.<br> ----* js NA<br> ----* lua NA ----@return self -function EditBox:unregisterScriptEditBoxHandler () end ----* js NA<br> ----* lua NA ----@param info cc.IMEKeyboardNotificationInfo ----@return self -function EditBox:keyboardWillShow (info) end ----@overload fun(color3b_table0:color4b_table):self ----@overload fun(color3b_table:color3b_table):self ----@param color color3b_table ----@return self -function EditBox:setPlaceholderFontColor (color) end ----* Get the return type that are to be applied to the edit box.<br> ----* return One of the EditBox::KeyboardReturnType constants. ----@return int -function EditBox:getReturnType () end ----@overload fun(color3b_table0:color4b_table):self ----@overload fun(color3b_table:color3b_table):self ----@param color color3b_table ----@return self -function EditBox:setFontColor (color) end ----* Get the font name.<br> ----* return The font name. ----@return char -function EditBox:getFontName () end ----* js NA<br> ----* lua NA ----@param info cc.IMEKeyboardNotificationInfo ----@return self -function EditBox:keyboardWillHide (info) end ----* Sets capInsets for edit box, only the normal state scale9 renderer will be affected.<br> ----* param capInsets capInsets in Rect. ----@param capInsets rect_table ----@return self -function EditBox:setCapInsetsNormalRenderer (capInsets) end ----* Load pressed state texture for edit box.<br> ----* param pressed pressed state texture.<br> ----* param texType @see `TextureResType` ----@param pressed string ----@param texType int ----@return self -function EditBox:loadTexturePressed (pressed,texType) end ----* Get the font color of the widget's text. ----@return color4b_table -function EditBox:getFontColor () end ----* Get the input flags that are to be applied to the edit box.<br> ----* return One of the EditBox::InputFlag constants. ----@return int -function EditBox:getInputFlag () end ----* Init edit box with specified size. This method should be invoked right after constructor.<br> ----* param size The size of edit box.<br> ----* param normalImage normal state texture name.<br> ----* param pressedImage pressed state texture name.<br> ----* param disabledImage disabled state texture name.<br> ----* return Whether initialization is successfully or not. ----@param size size_table ----@param normalImage string ----@param pressedImage string ----@param disabledImage string ----@param texType int ----@return boolean -function EditBox:initWithSizeAndTexture (size,normalImage,pressedImage,disabledImage,texType) end ----* Get the text horizontal alignment. ----@return int -function EditBox:getTextHorizontalAlignment () end ----* Return the capInsets of normal state scale9sprite.<br> ----* return The normal scale9 renderer capInsets. ----@return rect_table -function EditBox:getCapInsetsNormalRenderer () end ----* Return the capInsets of pressed state scale9sprite.<br> ----* return The pressed scale9 renderer capInsets. ----@return rect_table -function EditBox:getCapInsetsPressedRenderer () end ----* get a script Handler<br> ----* js NA<br> ----* lua NA ----@return int -function EditBox:getScriptEditBoxHandler () end ----* Load textures for edit box.<br> ----* param normal normal state texture name.<br> ----* param pressed pressed state texture name.<br> ----* param disabled disabled state texture name.<br> ----* param texType @see `TextureResType` ----@param normal string ----@param pressed string ----@param disabled string ----@param texType int ----@return self -function EditBox:loadTextures (normal,pressed,disabled,texType) end ----* Set a text in the edit box that acts as a placeholder when an<br> ----* edit box is empty.<br> ----* param pText The given text. ----@param pText char ----@return self -function EditBox:setPlaceHolder (pText) end ----* Set the input flags that are to be applied to the edit box.<br> ----* param inputFlag One of the EditBox::InputFlag constants. ----@param inputFlag int ----@return self -function EditBox:setInputFlag (inputFlag) end ----* Set the return type that are to be applied to the edit box.<br> ----* param returnType One of the EditBox::KeyboardReturnType constants. ----@param returnType int ----@return self -function EditBox:setReturnType (returnType) end ----* Load normal state texture for edit box.<br> ----* param normal normal state texture.<br> ----* param texType @see `TextureResType` ----@param normal string ----@param texType int ----@return self -function EditBox:loadTextureNormal (normal,texType) end ----* Gets the maximum input length of the edit box.<br> ----* return Maximum input length. ----@return int -function EditBox:getMaxLength () end ----* Sets capInsets for edit box, only the pressed state scale9 renderer will be affected.<br> ----* param capInsets capInsets in Rect ----@param capInsets rect_table ----@return self -function EditBox:setCapInsetsPressedRenderer (capInsets) end ----* Set the text entered in the edit box.<br> ----* param pText The given text. ----@param pText char ----@return self -function EditBox:setText (pText) end ----* Set the placeholder's font. Only system font is allowed.<br> ----* param pFontName The font name.<br> ----* param fontSize The font size. ----@param pFontName char ----@param fontSize int ----@return self -function EditBox:setPlaceholderFont (pFontName,fontSize) end ----* Get the font color of the placeholder text when the edit box is empty. ----@return color4b_table -function EditBox:getPlaceholderFontColor () end ----* Sets capInsets for edit box.<br> ----* param capInsets capInset in Rect. ----@param capInsets rect_table ----@return self -function EditBox:setCapInsets (capInsets) end ----* Set the font. Only system font is allowed.<br> ----* param pFontName The font name.<br> ----* param fontSize The font size. ----@param pFontName char ----@param fontSize int ----@return self -function EditBox:setFont (pFontName,fontSize) end ----* Set the text horizontal alignment. ----@param alignment int ----@return self -function EditBox:setTextHorizontalAlignment (alignment) end ----@overload fun(size_table:size_table,string:string,string2:int):self ----@overload fun(size_table:size_table,string1:ccui.Scale9Sprite,string2:ccui.Scale9Sprite,string3:ccui.Scale9Sprite):self ----@overload fun(size_table:size_table,string:string,string:string,string:string,int:int):self ----@param size size_table ----@param normalImage string ----@param pressedImage string ----@param disabledImage string ----@param texType int ----@return self -function EditBox:create (size,normalImage,pressedImage,disabledImage,texType) end ----* ----@param anchorPoint vec2_table ----@return self -function EditBox:setAnchorPoint (anchorPoint) end ----* js NA<br> ----* lua NA ----@param renderer cc.Renderer ----@param parentTransform mat4_table ----@param parentFlags unsigned_int ----@return self -function EditBox:draw (renderer,parentTransform,parentFlags) end ----* Returns the "class name" of widget. ----@return string -function EditBox:getDescription () end ----* ----@param pos vec2_table ----@return self -function EditBox:setPosition (pos) end ----* ----@param visible boolean ----@return self -function EditBox:setVisible (visible) end ----* ----@param size size_table ----@return self -function EditBox:setContentSize (size) end ----* Constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function EditBox:EditBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/HBox.lua b/meta/3rd/Cocos4.0/library/ccui/HBox.lua deleted file mode 100644 index 1bf9ae87..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/HBox.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@class ccui.HBox :ccui.Layout -local HBox={ } -ccui.HBox=HBox - - - - ----* ----@param size size_table ----@return boolean -function HBox:initWithSize (size) end ----@overload fun(size_table:size_table):self ----@overload fun():self ----@param size size_table ----@return self -function HBox:create (size) end ----* ----@return boolean -function HBox:init () end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function HBox:HBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Helper.lua b/meta/3rd/Cocos4.0/library/ccui/Helper.lua deleted file mode 100644 index 742cdcce..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Helper.lua +++ /dev/null @@ -1,73 +0,0 @@ ----@meta - ----@class ccui.Helper -local Helper={ } -ccui.Helper=Helper - - - - ----* 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 str The source string.<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<br> ----* js NA ----@param str string ----@param start unsigned_int ----@param length unsigned_int ----@return string -function Helper:getSubStringOfUTF8String (str,start,length) end ----* brief Convert a node's boundingBox rect into screen coordinates.<br> ----* param node Any node pointer.<br> ----* return A Rect in screen coordinates. ----@param node cc.Node ----@return rect_table -function Helper:convertBoundingBoxToScreen (node) end ----* Change the active property of Layout's @see `LayoutComponent`<br> ----* param active A boolean value. ----@param active boolean ----@return self -function Helper:changeLayoutSystemActiveState (active) end ----* Find a widget with a specific action tag from root widget<br> ----* This search will be recursive through all child widgets.<br> ----* param root The be searched root widget.<br> ----* param tag The widget action's tag.<br> ----* return Widget instance pointer. ----@param root ccui.Widget ----@param tag int ----@return ccui.Widget -function Helper:seekActionWidgetByActionTag (root,tag) end ----* Find a widget with a specific name from root widget.<br> ----* This search will be recursive through all child widgets.<br> ----* param root The be searched root widget.<br> ----* param name The widget name.<br> ----* return Widget instance pointer. ----@param root ccui.Widget ----@param name string ----@return ccui.Widget -function Helper:seekWidgetByName (root,name) end ----* Find a widget with a specific tag from root widget.<br> ----* This search will be recursive through all child widgets.<br> ----* param root The be searched root widget.<br> ----* param tag The widget tag.<br> ----* return Widget instance pointer. ----@param root ccui.Widget ----@param tag int ----@return ccui.Widget -function Helper:seekWidgetByTag (root,tag) end ----* brief restrict capInsetSize, when the capInsets's width is larger than the textureSize, it will restrict to 0,<br> ----* the height goes the same way as width.<br> ----* param capInsets A user defined capInsets.<br> ----* param textureSize The size of a scale9enabled texture<br> ----* return a restricted capInset. ----@param capInsets rect_table ----@param textureSize size_table ----@return rect_table -function Helper:restrictCapInsetRect (capInsets,textureSize) end ----* Refresh object and it's children layout state<br> ----* param rootNode A Node* or Node* descendant instance pointer. ----@param rootNode cc.Node ----@return self -function Helper:doLayout (rootNode) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/ImageView.lua b/meta/3rd/Cocos4.0/library/ccui/ImageView.lua deleted file mode 100644 index 0297e1ae..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/ImageView.lua +++ /dev/null @@ -1,92 +0,0 @@ ----@meta - ----@class ccui.ImageView :ccui.Widget@all parent class: Widget,BlendProtocol -local ImageView={ } -ccui.ImageView=ImageView - - - - ----* Returns the blending function that is currently being used.<br> ----* return A BlendFunc structure with source and destination factor which specified pixel arithmetic.<br> ----* js NA<br> ----* lua NA ----@return cc.BlendFunc -function ImageView:getBlendFunc () end ----* Load texture for imageview.<br> ----* param fileName file name of texture.<br> ----* param texType @see `Widget::TextureResType` ----@param fileName string ----@param texType int ----@return self -function ImageView:loadTexture (fileName,texType) end ----* Sets the source blending function.<br> ----* param blendFunc A structure with source and destination factor to specify pixel arithmetic. e.g. {BlendFactor::ONE, BlendFactor::ONE}, {BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA}.<br> ----* js NA<br> ----* lua NA ----@param blendFunc cc.BlendFunc ----@return self -function ImageView:setBlendFunc (blendFunc) end ----* ----@param imageFileName string ----@param texType int ----@return boolean -function ImageView:init (imageFileName,texType) end ----* Enable scale9 renderer.<br> ----* param enabled Set to true will use scale9 renderer, false otherwise. ----@param enabled boolean ----@return self -function ImageView:setScale9Enabled (enabled) end ----* Updates the texture rect of the ImageView in points.<br> ----* It will call setTextureRect:rotated:untrimmedSize with rotated = NO, and utrimmedSize = rect.size. ----@param rect rect_table ----@return self -function ImageView:setTextureRect (rect) end ----* Sets capInsets for imageview.<br> ----* The capInsets affects the ImageView's renderer only if `setScale9Enabled(true)` is called.<br> ----* param capInsets capinsets for imageview ----@param capInsets rect_table ----@return self -function ImageView:setCapInsets (capInsets) end ----* ----@return cc.ResourceData -function ImageView:getRenderFile () end ----* Get ImageView's capInsets size.<br> ----* return Query capInsets size in Rect<br> ----* see `setCapInsets(const Rect&)` ----@return rect_table -function ImageView:getCapInsets () end ----* Query whether button is using scale9 renderer or not.<br> ----* return whether button use scale9 renderer or not. ----@return boolean -function ImageView:isScale9Enabled () end ----@overload fun(string:string,int:int):self ----@overload fun():self ----@param imageFileName string ----@param texType int ----@return self -function ImageView:create (imageFileName,texType) end ----* ----@return cc.Ref -function ImageView:createInstance () end ----* ----@return cc.Node -function ImageView:getVirtualRenderer () end ----* ----@return boolean -function ImageView:init () end ----* ----@return string -function ImageView:getDescription () end ----* ----@return size_table -function ImageView:getVirtualRendererSize () end ----* ----@param ignore boolean ----@return self -function ImageView:ignoreContentAdaptWithSize (ignore) end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function ImageView:ImageView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Layout.lua b/meta/3rd/Cocos4.0/library/ccui/Layout.lua deleted file mode 100644 index ca634f28..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Layout.lua +++ /dev/null @@ -1,220 +0,0 @@ ----@meta - ----@class ccui.Layout :ccui.Widget@all parent class: Widget,LayoutProtocol -local Layout={ } -ccui.Layout=Layout - - - - ----* Sets background color vector for layout.<br> ----* This setting only take effect when layout's color type is BackGroundColorType::GRADIENT<br> ----* param vector The color vector in `Vec2`. ----@param vector vec2_table ----@return self -function Layout:setBackGroundColorVector (vector) end ----* Change the clipping type of layout.<br> ----* On default, the clipping type is `ClippingType::STENCIL`.<br> ----* see `ClippingType`<br> ----* param type The clipping type of layout. ----@param type int ----@return self -function Layout:setClippingType (type) end ----* Sets Color Type for layout's background<br> ----* param type @see `BackGroundColorType` ----@param type int ----@return self -function Layout:setBackGroundColorType (type) end ----* If a layout is loop focused which means that the focus movement will be inside the layout<br> ----* param loop pass true to let the focus movement loop inside the layout ----@param loop boolean ----@return self -function Layout:setLoopFocus (loop) end ----* Set layout's background image color.<br> ----* param color Background color value in `Color3B`. ----@param color color3b_table ----@return self -function Layout:setBackGroundImageColor (color) end ----* Get the layout's background color vector.<br> ----* return Background color vector. ----@return vec2_table -function Layout:getBackGroundColorVector () end ----* see `setClippingType(ClippingType)` ----@return int -function Layout:getClippingType () end ----* ----@return cc.ResourceData -function Layout:getRenderFile () end ----* return If focus loop is enabled, then it will return true, otherwise it returns false. The default value is false. ----@return boolean -function Layout:isLoopFocus () end ----* Remove the background image of layout. ----@return self -function Layout:removeBackGroundImage () end ----* Get the layout's background color opacity.<br> ----* return Background color opacity value. ----@return unsigned_char -function Layout:getBackGroundColorOpacity () end ----* Gets if layout is clipping enabled.<br> ----* return if layout is clipping enabled. ----@return boolean -function Layout:isClippingEnabled () end ----* Set opacity of background image.<br> ----* param opacity Background image opacity in GLubyte. ----@param opacity unsigned_char ----@return self -function Layout:setBackGroundImageOpacity (opacity) end ----* Sets a background image for layout.<br> ----* param fileName image file path.<br> ----* param texType @see TextureResType. ----@param fileName string ----@param texType int ----@return self -function Layout:setBackGroundImage (fileName,texType) end ----@overload fun(color3b_table:color3b_table,color3b_table:color3b_table):self ----@overload fun(color3b_table:color3b_table):self ----@param startColor color3b_table ----@param endColor color3b_table ----@return self -function Layout:setBackGroundColor (startColor,endColor) end ----* request to refresh widget layout ----@return self -function Layout:requestDoLayout () end ----* Query background image's capInsets size.<br> ----* return The background image capInsets. ----@return rect_table -function Layout:getBackGroundImageCapInsets () end ----* Query the layout's background color.<br> ----* return Background color in Color3B. ----@return color3b_table -function Layout:getBackGroundColor () end ----* Toggle layout clipping.<br> ----* If you do need clipping, you pass true to this function.<br> ----* param enabled Pass true to enable clipping, false otherwise. ----@param enabled boolean ----@return self -function Layout:setClippingEnabled (enabled) end ----* Get color of layout's background image.<br> ----* return Layout's background image color. ----@return color3b_table -function Layout:getBackGroundImageColor () end ----* Query background image scale9 enable status.<br> ----* return Whether background image is scale9 enabled or not. ----@return boolean -function Layout:isBackGroundImageScale9Enabled () end ----* Query the layout's background color type.<br> ----* return The layout's background color type. ----@return int -function Layout:getBackGroundColorType () end ----* Get the gradient background end color.<br> ----* return Gradient background end color value. ----@return color3b_table -function Layout:getBackGroundEndColor () end ----* Sets background color opacity of layout.<br> ----* param opacity The opacity in `GLubyte`. ----@param opacity unsigned_char ----@return self -function Layout:setBackGroundColorOpacity (opacity) end ----* Get the opacity of layout's background image.<br> ----* return The opacity of layout's background image. ----@return unsigned_char -function Layout:getBackGroundImageOpacity () end ----* return To query whether the layout will pass the focus to its children or not. The default value is true ----@return boolean -function Layout:isPassFocusToChild () end ----* Sets a background image capinsets for layout, it only affects the scale9 enabled background image<br> ----* param capInsets The capInsets in Rect. ----@param capInsets rect_table ----@return self -function Layout:setBackGroundImageCapInsets (capInsets) end ----* Gets background image texture size.<br> ----* return background image texture size. ----@return size_table -function Layout:getBackGroundImageTextureSize () end ----* force refresh widget layout ----@return self -function Layout:forceDoLayout () end ----* Query layout type.<br> ----* return Get the layout type. ----@return int -function Layout:getLayoutType () end ----* param pass To specify whether the layout pass its focus to its child ----@param pass boolean ----@return self -function Layout:setPassFocusToChild (pass) end ----* Get the gradient background start color.<br> ----* return Gradient background start color value. ----@return color3b_table -function Layout:getBackGroundStartColor () end ----* Enable background image scale9 rendering.<br> ----* param enabled True means enable scale9 rendering for background image, false otherwise. ----@param enabled boolean ----@return self -function Layout:setBackGroundImageScale9Enabled (enabled) end ----* Change the layout type.<br> ----* param type Layout type. ----@param type int ----@return self -function Layout:setLayoutType (type) end ----* Create a empty layout. ----@return self -function Layout:create () end ----* ----@return cc.Ref -function Layout:createInstance () end ----@overload fun(cc.Node:cc.Node,int:int):self ----@overload fun(cc.Node:cc.Node):self ----@overload fun(cc.Node:cc.Node,int:int,string2:int):self ----@overload fun(cc.Node:cc.Node,int:int,string:string):self ----@param child cc.Node ----@param localZOrder int ----@param name string ----@return self -function Layout:addChild (child,localZOrder,name) end ----* Returns the "class name" of widget. ----@return string -function Layout:getDescription () end ----* Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter.<br> ----* param cleanup true if all running actions on all children nodes should be cleanup, false otherwise.<br> ----* js removeAllChildren<br> ----* lua removeAllChildren ----@param cleanup boolean ----@return self -function Layout:removeAllChildrenWithCleanup (cleanup) end ----* Removes all children from the container with a cleanup.<br> ----* see `removeAllChildrenWithCleanup(bool)` ----@return self -function Layout:removeAllChildren () end ----* When a widget is in a layout, you could call this method to get the next focused widget within a specified direction.<br> ----* If the widget is not in a layout, it will return itself<br> ----* param direction the direction to look for the next focused widget in a layout<br> ----* param current the current focused widget<br> ----* return the next focused widget in a layout ----@param direction int ----@param current ccui.Widget ----@return ccui.Widget -function Layout:findNextFocusedWidget (direction,current) end ----* ----@param child cc.Node ----@param cleanup boolean ----@return self -function Layout:removeChild (child,cleanup) end ----* ----@return boolean -function Layout:init () end ----* Override function. Set camera mask, the node is visible by the camera whose camera flag & node's camera mask is true. <br> ----* param mask Mask being set<br> ----* param applyChildren If true call this function recursively from this node to its children. ----@param mask unsigned short ----@param applyChildren boolean ----@return self -function Layout:setCameraMask (mask,applyChildren) end ----* ----@param globalZOrder float ----@return self -function Layout:setGlobalZOrder (globalZOrder) end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function Layout:Layout () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/LayoutComponent.lua b/meta/3rd/Cocos4.0/library/ccui/LayoutComponent.lua deleted file mode 100644 index 32f71986..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/LayoutComponent.lua +++ /dev/null @@ -1,251 +0,0 @@ ----@meta - ----@class ccui.LayoutComponent :cc.Component -local LayoutComponent={ } -ccui.LayoutComponent=LayoutComponent - - - - ----* Toggle enable stretch width.<br> ----* param isUsed True if enable stretch width, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setStretchWidthEnabled (isUsed) end ----* Change percent width of owner.<br> ----* param percentWidth Percent Width in float. ----@param percentWidth float ----@return self -function LayoutComponent:setPercentWidth (percentWidth) end ----* Query the anchor position.<br> ----* return Anchor position to it's parent ----@return vec2_table -function LayoutComponent:getAnchorPosition () end ----* Toggle position percentX enabled.<br> ----* param isUsed True if enable position percentX, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setPositionPercentXEnabled (isUsed) end ----* Toggle enable stretch height.<br> ----* param isUsed True if stretch height is enabled, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setStretchHeightEnabled (isUsed) end ----* Toggle active enabled of LayoutComponent's owner.<br> ----* param enable True if active layout component, false otherwise. ----@param enable boolean ----@return self -function LayoutComponent:setActiveEnabled (enable) end ----* Query the right margin of owner relative to its parent.<br> ----* return Right margin in float. ----@return float -function LayoutComponent:getRightMargin () end ----* Query owner's content size.<br> ----* return Owner's content size. ----@return size_table -function LayoutComponent:getSize () end ----* Change the anchor position to it's parent.<br> ----* param point A value in (x,y) format. ----@param point vec2_table ----@return self -function LayoutComponent:setAnchorPosition (point) end ----* Refresh layout of the owner. ----@return self -function LayoutComponent:refreshLayout () end ----* Query whether percent width is enabled or not.<br> ----* return True if percent width is enabled, false, otherwise. ----@return boolean -function LayoutComponent:isPercentWidthEnabled () end ----* Change element's vertical dock type.<br> ----* param vEage Vertical dock type @see `VerticalEdge`. ----@param vEage int ----@return self -function LayoutComponent:setVerticalEdge (vEage) end ----* Query the top margin of owner relative to its parent.<br> ----* return Top margin in float. ----@return float -function LayoutComponent:getTopMargin () end ----* Change content size width of owner.<br> ----* param width Content size width in float. ----@param width float ----@return self -function LayoutComponent:setSizeWidth (width) end ----* Query the percent content size value.<br> ----* return Percent (x,y) in Vec2. ----@return vec2_table -function LayoutComponent:getPercentContentSize () end ----* Query element vertical dock type.<br> ----* return Vertical dock type. ----@return int -function LayoutComponent:getVerticalEdge () end ----* Toggle enable percent width.<br> ----* param isUsed True if percent width is enabled, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setPercentWidthEnabled (isUsed) end ----* Query whether stretch width is enabled or not.<br> ----* return True if stretch width is enabled, false otherwise. ----@return boolean -function LayoutComponent:isStretchWidthEnabled () end ----* Change left margin of owner relative to its parent.<br> ----* param margin Margin in float. ----@param margin float ----@return self -function LayoutComponent:setLeftMargin (margin) end ----* Query content size width of owner.<br> ----* return Content size width in float. ----@return float -function LayoutComponent:getSizeWidth () end ----* Toggle position percentY enabled.<br> ----* param isUsed True if position percentY is enabled, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setPositionPercentYEnabled (isUsed) end ----* Query size height of owner.<br> ----* return Size height in float. ----@return float -function LayoutComponent:getSizeHeight () end ----* Query the position percentY Y value.<br> ----* return Position percent Y value in float. ----@return float -function LayoutComponent:getPositionPercentY () end ----* Query the position percent X value.<br> ----* return Position percent X value in float. ----@return float -function LayoutComponent:getPositionPercentX () end ----* Change the top margin of owner relative to its parent.<br> ----* param margin Margin in float. ----@param margin float ----@return self -function LayoutComponent:setTopMargin (margin) end ----* Query percent height of owner. <br> ----* return Percent height in float. ----@return float -function LayoutComponent:getPercentHeight () end ----* Query whether use percent content size or not.<br> ----* return True if using percent content size, false otherwise. ----@return boolean -function LayoutComponent:getUsingPercentContentSize () end ----* Change position percentY value.<br> ----* param percentMargin Margin in float. ----@param percentMargin float ----@return self -function LayoutComponent:setPositionPercentY (percentMargin) end ----* Change position percent X value.<br> ----* param percentMargin Margin in float. ----@param percentMargin float ----@return self -function LayoutComponent:setPositionPercentX (percentMargin) end ----* Change right margin of owner relative to its parent.<br> ----* param margin Margin in float. ----@param margin float ----@return self -function LayoutComponent:setRightMargin (margin) end ----* Whether position percentY is enabled or not.<br> ----* see `setPositionPercentYEnabled`<br> ----* return True if position percentY is enabled, false otherwise. ----@return boolean -function LayoutComponent:isPositionPercentYEnabled () end ----* Change percent height value of owner.<br> ----* param percentHeight Percent height in float. ----@param percentHeight float ----@return self -function LayoutComponent:setPercentHeight (percentHeight) end ----* Toggle enable percent only.<br> ----* param enable True if percent only is enabled, false otherwise. ----@param enable boolean ----@return self -function LayoutComponent:setPercentOnlyEnabled (enable) end ----* Change element's horizontal dock type.<br> ----* param hEage Horizontal dock type @see `HorizontalEdge` ----@param hEage int ----@return self -function LayoutComponent:setHorizontalEdge (hEage) end ----* Change the position of component owner.<br> ----* param position A position in (x,y) ----@param position vec2_table ----@return self -function LayoutComponent:setPosition (position) end ----* 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 set by @see setPercentContentSize<br> ----* param isUsed True to enable percent content size, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setUsingPercentContentSize (isUsed) end ----* Query left margin of owner relative to its parent.<br> ----* return Left margin in float. ----@return float -function LayoutComponent:getLeftMargin () end ----* Query the owner's position.<br> ----* return The owner's position. ----@return vec2_table -function LayoutComponent:getPosition () end ----* Change size height of owner.<br> ----* param height Size height in float. ----@param height float ----@return self -function LayoutComponent:setSizeHeight (height) end ----* Whether position percentX is enabled or not. <br> ----* return True if position percentX is enable, false otherwise. ----@return boolean -function LayoutComponent:isPositionPercentXEnabled () end ----* Query the bottom margin of owner relative to its parent.<br> ----* return Bottom margin in float. ----@return float -function LayoutComponent:getBottomMargin () end ----* Toggle enable percent height.<br> ----* param isUsed True if percent height is enabled, false otherwise. ----@param isUsed boolean ----@return self -function LayoutComponent:setPercentHeightEnabled (isUsed) end ----* 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. ----@param percent vec2_table ----@return self -function LayoutComponent:setPercentContentSize (percent) end ----* Query whether percent height is enabled or not.<br> ----* return True if percent height is enabled, false otherwise. ----@return boolean -function LayoutComponent:isPercentHeightEnabled () end ----* Query percent width of owner.<br> ----* return percent width in float. ----@return float -function LayoutComponent:getPercentWidth () end ----* Query element horizontal dock type.<br> ----* return Horizontal dock type. ----@return int -function LayoutComponent:getHorizontalEdge () end ----* Query whether stretch height is enabled or not.<br> ----* return True if stretch height is enabled, false otherwise. ----@return boolean -function LayoutComponent:isStretchHeightEnabled () end ----* Change the bottom margin of owner relative to its parent.<br> ----* param margin in float. ----@param margin float ----@return self -function LayoutComponent:setBottomMargin (margin) end ----* Change the content size of owner.<br> ----* param size Content size in @see `Size`. ----@param size size_table ----@return self -function LayoutComponent:setSize (size) end ----* ----@return self -function LayoutComponent:create () end ----* 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. ----@param node cc.Node ----@return self -function LayoutComponent:bindLayoutComponent (node) end ----* ----@return boolean -function LayoutComponent:init () end ----* Default constructor<br> ----* lua new ----@return self -function LayoutComponent:LayoutComponent () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/LayoutParameter.lua b/meta/3rd/Cocos4.0/library/ccui/LayoutParameter.lua deleted file mode 100644 index 72769f8e..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/LayoutParameter.lua +++ /dev/null @@ -1,35 +0,0 @@ ----@meta - ----@class ccui.LayoutParameter :cc.Ref -local LayoutParameter={ } -ccui.LayoutParameter=LayoutParameter - - - - ----* Create a copy of original LayoutParameter.<br> ----* return A LayoutParameter pointer. ----@return self -function LayoutParameter:clone () end ----* Gets LayoutParameterType of LayoutParameter.<br> ----* see LayoutParameterType.<br> ----* return LayoutParameterType ----@return int -function LayoutParameter:getLayoutType () end ----* Create a cloned instance of LayoutParameter.<br> ----* return A LayoutParameter pointer. ----@return self -function LayoutParameter:createCloneInstance () end ----* Copy all the member field from argument LayoutParameter to self.<br> ----* param model A LayoutParameter instance. ----@param model ccui.LayoutParameter ----@return self -function LayoutParameter:copyProperties (model) end ----* Create a empty LayoutParameter.<br> ----* return A autorelease LayoutParameter instance. ----@return self -function LayoutParameter:create () end ----* Default constructor.<br> ----* lua new ----@return self -function LayoutParameter:LayoutParameter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/LinearLayoutParameter.lua b/meta/3rd/Cocos4.0/library/ccui/LinearLayoutParameter.lua deleted file mode 100644 index 10adc000..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/LinearLayoutParameter.lua +++ /dev/null @@ -1,35 +0,0 @@ ----@meta - ----@class ccui.LinearLayoutParameter :ccui.LayoutParameter -local LinearLayoutParameter={ } -ccui.LinearLayoutParameter=LinearLayoutParameter - - - - ----* Sets LinearGravity parameter for LayoutParameter.<br> ----* see LinearGravity<br> ----* param gravity Gravity in LinearGravity. ----@param gravity int ----@return self -function LinearLayoutParameter:setGravity (gravity) end ----* Gets LinearGravity parameter for LayoutParameter.<br> ----* see LinearGravity<br> ----* return LinearGravity ----@return int -function LinearLayoutParameter:getGravity () end ----* Create a empty LinearLayoutParameter instance.<br> ----* return A initialized LayoutParameter which is marked as "autorelease". ----@return self -function LinearLayoutParameter:create () end ----* ----@return ccui.LayoutParameter -function LinearLayoutParameter:createCloneInstance () end ----* ----@param model ccui.LayoutParameter ----@return self -function LinearLayoutParameter:copyProperties (model) end ----* Default constructor.<br> ----* lua new ----@return self -function LinearLayoutParameter:LinearLayoutParameter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/ListView.lua b/meta/3rd/Cocos4.0/library/ccui/ListView.lua deleted file mode 100644 index 56bd28d4..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/ListView.lua +++ /dev/null @@ -1,305 +0,0 @@ ----@meta - ----@class ccui.ListView :ccui.ScrollView -local ListView={ } -ccui.ListView=ListView - - - - ----* Set the gravity of ListView.<br> ----* see `ListViewGravity` ----@param gravity int ----@return self -function ListView:setGravity (gravity) end ----* Removes the last item of ListView. ----@return self -function ListView:removeLastItem () end ----* Get the left padding in ListView<br> ----* return Left padding in float ----@return float -function ListView:getLeftPadding () end ----* brief Query the center item<br> ----* return An item instance. ----@return ccui.Widget -function ListView:getCenterItemInCurrentView () end ----* brief Query current selected widget's index.<br> ----* return An index of a selected item. ----@return int -function ListView:getCurSelectedIndex () end ----* Get the time in seconds to scroll between items.<br> ----* return The time in seconds to scroll between items<br> ----* see setScrollDuration(float) ----@return float -function ListView:getScrollDuration () end ----* Query whether the magnetic out of boundary is allowed. ----@return boolean -function ListView:getMagneticAllowedOutOfBoundary () end ----* brief Query margin between each item in ListView.<br> ----* return A margin in float. ----@return float -function ListView:getItemsMargin () end ----@overload fun(int:int,vec2_table:vec2_table,vec2_table:vec2_table,float:float):self ----@overload fun(int:int,vec2_table:vec2_table,vec2_table:vec2_table):self ----@param itemIndex int ----@param positionRatioInView vec2_table ----@param itemAnchorPoint vec2_table ----@param timeInSec float ----@return self -function ListView:scrollToItem (itemIndex,positionRatioInView,itemAnchorPoint,timeInSec) end ----* brief Jump to specific item<br> ----* param itemIndex Specifies the item's index<br> ----* param positionRatioInView Specifies the position with ratio in list view's content size.<br> ----* param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance. ----@param itemIndex int ----@param positionRatioInView vec2_table ----@param itemAnchorPoint vec2_table ----@return self -function ListView:jumpToItem (itemIndex,positionRatioInView,itemAnchorPoint) end ----* Change padding with top padding<br> ----* param t Top padding in float ----@param t float ----@return self -function ListView:setTopPadding (t) end ----* Return the index of specified widget.<br> ----* param item A widget pointer.<br> ----* return The index of a given widget in ListView. ----@param item ccui.Widget ----@return int -function ListView:getIndex (item) end ----* Insert a custom item into the end of ListView.<br> ----* param item An item in `Widget*`. ----@param item ccui.Widget ----@return self -function ListView:pushBackCustomItem (item) end ----* brief Set current selected widget's index and call TouchEventType::ENDED event.<br> ----* param itemIndex A index of a selected item. ----@param itemIndex int ----@return self -function ListView:setCurSelectedIndex (itemIndex) end ----* Insert a default item(create by cloning model) into listview at a give index.<br> ----* param index An index in ssize_t. ----@param index int ----@return self -function ListView:insertDefaultItem (index) end ----* Set magnetic type of ListView.<br> ----* see `MagneticType` ----@param magneticType int ----@return self -function ListView:setMagneticType (magneticType) end ----* Set magnetic allowed out of boundary. ----@param magneticAllowedOutOfBoundary boolean ----@return self -function ListView:setMagneticAllowedOutOfBoundary (magneticAllowedOutOfBoundary) end ----* Add an event click callback to ListView, then one item of Listview is clicked, the callback will be called.<br> ----* param callback A callback function with type of `ccListViewCallback`. ----@param callback function ----@return self -function ListView:addEventListener (callback) end ----* ----@return self -function ListView:doLayout () end ----* brief Query the topmost item in horizontal list<br> ----* return An item instance. ----@return ccui.Widget -function ListView:getTopmostItemInCurrentView () end ----* Change padding with left, top, right, and bottom padding.<br> ----* param l Left padding in float.<br> ----* param t Top margin in float.<br> ----* param r Right margin in float.<br> ----* param b Bottom margin in float. ----@param l float ----@param t float ----@param r float ----@param b float ----@return self -function ListView:setPadding (l,t,r,b) end ----* brief Remove all items in current ListView. ----@return self -function ListView:removeAllItems () end ----* Get the right padding in ListView<br> ----* return Right padding in float ----@return float -function ListView:getRightPadding () end ----* brief Query the bottommost item in horizontal list<br> ----* return An item instance. ----@return ccui.Widget -function ListView:getBottommostItemInCurrentView () end ----* Return all items in a ListView.<br> ----* returns A vector of widget pointers. ----@return array_table -function ListView:getItems () end ----* brief Query the leftmost item in horizontal list<br> ----* return An item instance. ----@return ccui.Widget -function ListView:getLeftmostItemInCurrentView () end ----* Set the margin between each item in ListView.<br> ----* param margin A margin in float. ----@param margin float ----@return self -function ListView:setItemsMargin (margin) end ----* Get magnetic type of ListView. ----@return int -function ListView:getMagneticType () end ----* Return an item at a given index.<br> ----* param index A given index in ssize_t.<br> ----* return A widget instance. ----@param index int ----@return ccui.Widget -function ListView:getItem (index) end ----* Remove an item at given index.<br> ----* param index A given index in ssize_t. ----@param index int ----@return self -function ListView:removeItem (index) end ----* Get the top padding in ListView<br> ----* return Top padding in float ----@return float -function ListView:getTopPadding () end ----* Insert a default item(create by a cloned model) at the end of the listview. ----@return self -function ListView:pushBackDefaultItem () end ----* Change padding with left padding<br> ----* param l Left padding in float. ----@param l float ----@return self -function ListView:setLeftPadding (l) end ----* brief Query the closest item to a specific position in inner container.<br> ----* param targetPosition Specifies the target position in inner container's coordinates.<br> ----* param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.<br> ----* return An item instance if list view is not empty. Otherwise, returns null. ----@param targetPosition vec2_table ----@param itemAnchorPoint vec2_table ----@return ccui.Widget -function ListView:getClosestItemToPosition (targetPosition,itemAnchorPoint) end ----* Change padding with bottom padding<br> ----* param b Bottom padding in float ----@param b float ----@return self -function ListView:setBottomPadding (b) end ----* Set the time in seconds to scroll between items.<br> ----* Subsequent calls of function 'scrollToItem', will take 'time' seconds for scrolling.<br> ----* param time The seconds needed to scroll between two items. 'time' must be >= 0<br> ----* see scrollToItem(ssize_t, const Vec2&, const Vec2&) ----@param time float ----@return self -function ListView:setScrollDuration (time) end ----* brief Query the closest item to a specific position in current view.<br> ----* For instance, to find the item in the center of view, call 'getClosestItemToPositionInCurrentView(Vec2::ANCHOR_MIDDLE, Vec2::ANCHOR_MIDDLE)'.<br> ----* param positionRatioInView Specifies the target position with ratio in list view's content size.<br> ----* param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.<br> ----* return An item instance if list view is not empty. Otherwise, returns null. ----@param positionRatioInView vec2_table ----@param itemAnchorPoint vec2_table ----@return ccui.Widget -function ListView:getClosestItemToPositionInCurrentView (positionRatioInView,itemAnchorPoint) end ----* brief Query the rightmost item in horizontal list<br> ----* return An item instance. ----@return ccui.Widget -function ListView:getRightmostItemInCurrentView () end ----* Change padding with right padding<br> ----* param r Right padding in float ----@param r float ----@return self -function ListView:setRightPadding (r) end ----* Set an item model for listview.<br> ----* When calling `pushBackDefaultItem`, the model will be used as a blueprint and new model copy will be inserted into ListView.<br> ----* param model Model in `Widget*`. ----@param model ccui.Widget ----@return self -function ListView:setItemModel (model) end ----* Get the bottom padding in ListView<br> ----* return Bottom padding in float ----@return float -function ListView:getBottomPadding () end ----* brief Insert a custom widget into ListView at a given index.<br> ----* param item A widget pointer to be inserted.<br> ----* param index A given index in ssize_t. ----@param item ccui.Widget ----@param index int ----@return self -function ListView:insertCustomItem (item,index) end ----* Create an empty ListView.<br> ----* return A ListView instance. ----@return self -function ListView:create () end ----* ----@return cc.Ref -function ListView:createInstance () end ----@overload fun(cc.Node:cc.Node,int:int):self ----@overload fun(cc.Node:cc.Node):self ----@overload fun(cc.Node:cc.Node,int:int,string2:int):self ----@overload fun(cc.Node:cc.Node,int:int,string:string):self ----@param child cc.Node ----@param zOrder int ----@param name string ----@return self -function ListView:addChild (child,zOrder,name) end ----* Override functions ----@return self -function ListView:jumpToBottom () end ----* ----@return boolean -function ListView:init () end ----* Changes scroll direction of scrollview.<br> ----* Direction Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll.<br> ----* param dir Set the list view's scroll direction. ----@param dir int ----@return self -function ListView:setDirection (dir) end ----* ----@return self -function ListView:jumpToTopRight () end ----* ----@return self -function ListView:jumpToLeft () end ----* ----@param cleanup boolean ----@return self -function ListView:removeAllChildrenWithCleanup (cleanup) end ----* ----@return self -function ListView:requestDoLayout () end ----* ----@return self -function ListView:removeAllChildren () end ----* ----@return self -function ListView:jumpToTopLeft () end ----* ----@param child cc.Node ----@param cleanup boolean ----@return self -function ListView:removeChild (child,cleanup) end ----* ----@return self -function ListView:jumpToBottomRight () end ----* ----@return self -function ListView:jumpToTop () end ----* ----@return self -function ListView:jumpToBottomLeft () end ----* ----@param percent vec2_table ----@return self -function ListView:jumpToPercentBothDirection (percent) end ----* ----@param percent float ----@return self -function ListView:jumpToPercentHorizontal (percent) end ----* ----@return self -function ListView:jumpToRight () end ----* ----@return string -function ListView:getDescription () end ----* ----@param percent float ----@return self -function ListView:jumpToPercentVertical (percent) end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function ListView:ListView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua b/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua deleted file mode 100644 index 9f2cfbf4..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua +++ /dev/null @@ -1,87 +0,0 @@ ----@meta - ----@class ccui.LoadingBar :ccui.Widget -local LoadingBar={ } -ccui.LoadingBar=LoadingBar - - - - ----* Changes the progress value of LoadingBar.<br> ----* param percent Percent value from 1 to 100. ----@param percent float ----@return self -function LoadingBar:setPercent (percent) end ----* Load texture for LoadingBar.<br> ----* param texture File name of texture.<br> ----* param texType Texture resource type,@see TextureResType. ----@param texture string ----@param texType int ----@return self -function LoadingBar:loadTexture (texture,texType) end ----* Change the progress direction of LoadingBar.<br> ----* see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br> ----* param direction Direction ----@param direction int ----@return self -function LoadingBar:setDirection (direction) end ----* ----@return cc.ResourceData -function LoadingBar:getRenderFile () end ----* Enable scale9 renderer.<br> ----* param enabled Set to true will use scale9 renderer, false otherwise. ----@param enabled boolean ----@return self -function LoadingBar:setScale9Enabled (enabled) end ----* Set capInsets for LoadingBar.<br> ----* This setting only take effect when enable scale9 renderer.<br> ----* param capInsets CapInset in `Rect`. ----@param capInsets rect_table ----@return self -function LoadingBar:setCapInsets (capInsets) end ----* Get the progress direction of LoadingBar.<br> ----* see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br> ----* return LoadingBar progress direction. ----@return int -function LoadingBar:getDirection () end ----* brief Query LoadingBar's capInsets.<br> ----* return CapInsets of LoadingBar. ----@return rect_table -function LoadingBar:getCapInsets () end ----* brief Query whether LoadingBar is using scale9 renderer or not.<br> ----* return Whether LoadingBar uses scale9 renderer or not. ----@return boolean -function LoadingBar:isScale9Enabled () end ----* Get the progress value of LoadingBar.<br> ----* return Progress value from 1 to 100. ----@return float -function LoadingBar:getPercent () end ----@overload fun(string:string,int1:float):self ----@overload fun():self ----@overload fun(string:string,int:int,float:float):self ----@param textureName string ----@param texType int ----@param percentage float ----@return self -function LoadingBar:create (textureName,texType,percentage) end ----* ----@return cc.Ref -function LoadingBar:createInstance () end ----* ----@return cc.Node -function LoadingBar:getVirtualRenderer () end ----* ----@return string -function LoadingBar:getDescription () end ----* ----@return size_table -function LoadingBar:getVirtualRendererSize () end ----* ----@param ignore boolean ----@return self -function LoadingBar:ignoreContentAdaptWithSize (ignore) end ----* Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function LoadingBar:LoadingBar () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/PageView.lua b/meta/3rd/Cocos4.0/library/ccui/PageView.lua deleted file mode 100644 index 98f6b6a3..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/PageView.lua +++ /dev/null @@ -1,180 +0,0 @@ ----@meta - ----@class ccui.PageView :ccui.ListView -local PageView={ } -ccui.PageView=PageView - - - - ----* brief Set space between page indicator's index nodes.<br> ----* param spaceBetweenIndexNodes Space between nodes in pixel. ----@param spaceBetweenIndexNodes float ----@return self -function PageView:setIndicatorSpaceBetweenIndexNodes (spaceBetweenIndexNodes) end ----* Insert a page into PageView at a given index.<br> ----* param page Page to be inserted.<br> ----* param idx A given index. ----@param page ccui.Widget ----@param idx int ----@return self -function PageView:insertPage (page,idx) end ----* brief Set opacity of page indicator's index nodes.<br> ----* param opacity New indicator node opacity. ----@param opacity unsigned_char ----@return self -function PageView:setIndicatorIndexNodesOpacity (opacity) end ----* brief Set opacity of page indicator's selected index.<br> ----* param color New opacity for selected (current) index. ----@param opacity unsigned_char ----@return self -function PageView:setIndicatorSelectedIndexOpacity (opacity) end ----* brief Remove all pages of the PageView. ----@return self -function PageView:removeAllPages () end ----* ----@param epsilon float ----@return self -function PageView:setAutoScrollStopEpsilon (epsilon) end ----* brief Set scale of page indicator's index nodes.<br> ----* param indexNodesScale Scale of index nodes. ----@param indexNodesScale float ----@return self -function PageView:setIndicatorIndexNodesScale (indexNodesScale) end ----* brief Toggle page indicator enabled.<br> ----* param enabled True if enable page indicator, false otherwise. ----@param enabled boolean ----@return self -function PageView:setIndicatorEnabled (enabled) end ----* brief Set color of page indicator's selected index.<br> ----* param color New color for selected (current) index. ----@param color color3b_table ----@return self -function PageView:setIndicatorSelectedIndexColor (color) end ----* brief Add a page turn callback to PageView, then when one page is turning, the callback will be called.<br> ----* param callback A page turning callback. ----@param callback function ----@return self -function PageView:addEventListener (callback) end ----* brief Get the page indicator's position.<br> ----* return positionAsAnchorPoint ----@return vec2_table -function PageView:getIndicatorPosition () end ----* Jump to a page with a given index without scrolling.<br> ----* This is the different between scrollToPage.<br> ----* param index A given index in PageView. Index start from 0 to pageCount -1. ----@param index int ----@return self -function PageView:setCurrentPageIndex (index) end ----* brief Get the color of page indicator's index nodes.<br> ----* return color ----@return color3b_table -function PageView:getIndicatorIndexNodesColor () end ----* brief Get the color of page indicator's selected index.<br> ----* return color ----@return color3b_table -function PageView:getIndicatorSelectedIndexColor () end ----* brief Get scale of page indicator's index nodes.<br> ----* return indexNodesScale ----@return float -function PageView:getIndicatorIndexNodesScale () end ----* brief Set the page indicator's position in page view.<br> ----* param position The position in page view ----@param position vec2_table ----@return self -function PageView:setIndicatorPosition (position) end ----* brief Get the opacity of page indicator's selected index.<br> ----* return opacity ----@return unsigned_char -function PageView:getIndicatorSelectedIndexOpacity () end ----@overload fun(int:int,float:float):self ----@overload fun(int:int):self ----@param idx int ----@param time float ----@return self -function PageView:scrollToPage (idx,time) end ----* brief Set the page indicator's position using anchor point.<br> ----* param positionAsAnchorPoint The position as anchor point. ----@param positionAsAnchorPoint vec2_table ----@return self -function PageView:setIndicatorPositionAsAnchorPoint (positionAsAnchorPoint) end ----@overload fun(int:int,float:float):self ----@overload fun(int:int):self ----@param idx int ----@param time float ----@return self -function PageView:scrollToItem (idx,time) end ----* brief Set color of page indicator's index nodes.<br> ----* param color New indicator node color. ----@param color color3b_table ----@return self -function PageView:setIndicatorIndexNodesColor (color) end ----* brief Get the opacity of page indicator's index nodes.<br> ----* return opacity ----@return unsigned_char -function PageView:getIndicatorIndexNodesOpacity () end ----* brief Get the page indicator's position as anchor point.<br> ----* return positionAsAnchorPoint ----@return vec2_table -function PageView:getIndicatorPositionAsAnchorPoint () end ----* Gets current displayed page index.<br> ----* return current page index. ----@return int -function PageView:getCurrentPageIndex () end ----* Remove a page of PageView.<br> ----* param page Page to be removed. ----@param page ccui.Widget ----@return self -function PageView:removePage (page) end ----* sets texture for index nodes.<br> ----* param fileName File name of texture.<br> ----* param resType @see TextureResType . ----@param texName string ----@param texType int ----@return self -function PageView:setIndicatorIndexNodesTexture (texName,texType) end ----* brief Query page indicator state.<br> ----* return True if page indicator is enabled, false otherwise. ----@return boolean -function PageView:getIndicatorEnabled () end ----* Remove a page at a given index of PageView.<br> ----* param index A given index. ----@param index int ----@return self -function PageView:removePageAtIndex (index) end ----* brief Get the space between page indicator's index nodes.<br> ----* return spaceBetweenIndexNodes ----@return float -function PageView:getIndicatorSpaceBetweenIndexNodes () end ----* Insert a page into the end of PageView.<br> ----* param page Page to be inserted. ----@param page ccui.Widget ----@return self -function PageView:addPage (page) end ----* Create an empty PageView.<br> ----* return A PageView instance. ----@return self -function PageView:create () end ----* ----@return cc.Ref -function PageView:createInstance () end ----* ----@return self -function PageView:doLayout () end ----* ----@return boolean -function PageView:init () end ----* ----@return string -function PageView:getDescription () end ----* Changes direction<br> ----* Direction Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll.<br> ----* param direction Set the page view's scroll direction. ----@param direction int ----@return self -function PageView:setDirection (direction) end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function PageView:PageView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RadioButton.lua b/meta/3rd/Cocos4.0/library/ccui/RadioButton.lua deleted file mode 100644 index 10b6c137..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RadioButton.lua +++ /dev/null @@ -1,35 +0,0 @@ ----@meta - ----@class ccui.RadioButton :ccui.AbstractCheckButton -local RadioButton={ } -ccui.RadioButton=RadioButton - - - - ----* Add a callback function which would be called when radio button is selected or unselected.<br> ----* param callback A std::function with type @see `ccRadioButtonCallback` ----@param callback function ----@return self -function RadioButton:addEventListener (callback) end ----@overload fun(string:string,string:string,string:string,string:string,string:string,int:int):self ----@overload fun():self ----@overload fun(string:string,string:string,string2:int):self ----@param backGround string ----@param backGroundSelected string ----@param cross string ----@param backGroundDisabled string ----@param frontCrossDisabled string ----@param texType int ----@return self -function RadioButton:create (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end ----* ----@return cc.Ref -function RadioButton:createInstance () end ----* ----@return string -function RadioButton:getDescription () end ----* Default constructor.<br> ----* lua new ----@return self -function RadioButton:RadioButton () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RadioButtonGroup.lua b/meta/3rd/Cocos4.0/library/ccui/RadioButtonGroup.lua deleted file mode 100644 index 2dab4ebc..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RadioButtonGroup.lua +++ /dev/null @@ -1,73 +0,0 @@ ----@meta - ----@class ccui.RadioButtonGroup :ccui.Widget -local RadioButtonGroup={ } -ccui.RadioButtonGroup=RadioButtonGroup - - - - ----* Remove a radio button from this group.<br> ----* param radio button instance ----@param radioButton ccui.RadioButton ----@return self -function RadioButtonGroup:removeRadioButton (radioButton) end ----* Query whether no-selection is allowed or not.<br> ----* param true means no-selection is allowed, false means no-selection is not allowed. ----@return boolean -function RadioButtonGroup:isAllowedNoSelection () end ----* Get the index of selected radio button.<br> ----* return the selected button's index. Returns -1 if no button is selected. ----@return int -function RadioButtonGroup:getSelectedButtonIndex () end ----* Set a flag for allowing no-selection feature.<br> ----* If it is allowed, no radio button can be selected.<br> ----* If it is not allowed, one radio button must be selected all time except it is empty.<br> ----* Default is not allowed.<br> ----* param true means allowing no-selection, false means disallowing no-selection. ----@param allowedNoSelection boolean ----@return self -function RadioButtonGroup:setAllowedNoSelection (allowedNoSelection) end ----@overload fun(int0:ccui.RadioButton):self ----@overload fun(int:int):self ----@param index int ----@return self -function RadioButtonGroup:setSelectedButtonWithoutEvent (index) end ----* Add a callback function which would be called when radio button is selected or unselected.<br> ----* param callback A std::function with type @see `ccRadioButtonGroupCallback` ----@param callback function ----@return self -function RadioButtonGroup:addEventListener (callback) end ----* Remove all radio button from this group. ----@return self -function RadioButtonGroup:removeAllRadioButtons () end ----* Get a radio button in this group by index.<br> ----* param index of the radio button<br> ----* return radio button instance. Returns nullptr if out of index. ----@param index int ----@return ccui.RadioButton -function RadioButtonGroup:getRadioButtonByIndex (index) end ----* Get the number of radio buttons in this group.<br> ----* return the number of radio buttons in this group ----@return int -function RadioButtonGroup:getNumberOfRadioButtons () end ----* Add a radio button into this group.<br> ----* param radio button instance ----@param radioButton ccui.RadioButton ----@return self -function RadioButtonGroup:addRadioButton (radioButton) end ----@overload fun(int0:ccui.RadioButton):self ----@overload fun(int:int):self ----@param index int ----@return self -function RadioButtonGroup:setSelectedButton (index) end ----* Create and return a empty RadioButtonGroup instance pointer. ----@return self -function RadioButtonGroup:create () end ----* ----@return string -function RadioButtonGroup:getDescription () end ----* Default constructor.<br> ----* lua new ----@return self -function RadioButtonGroup:RadioButtonGroup () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RelativeBox.lua b/meta/3rd/Cocos4.0/library/ccui/RelativeBox.lua deleted file mode 100644 index f4845c69..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RelativeBox.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@class ccui.RelativeBox :ccui.Layout -local RelativeBox={ } -ccui.RelativeBox=RelativeBox - - - - ----* ----@param size size_table ----@return boolean -function RelativeBox:initWithSize (size) end ----@overload fun(size_table:size_table):self ----@overload fun():self ----@param size size_table ----@return self -function RelativeBox:create (size) end ----* ----@return boolean -function RelativeBox:init () end ----* Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RelativeBox:RelativeBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RelativeLayoutParameter.lua b/meta/3rd/Cocos4.0/library/ccui/RelativeLayoutParameter.lua deleted file mode 100644 index 2a46c3a9..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RelativeLayoutParameter.lua +++ /dev/null @@ -1,53 +0,0 @@ ----@meta - ----@class ccui.RelativeLayoutParameter :ccui.LayoutParameter -local RelativeLayoutParameter={ } -ccui.RelativeLayoutParameter=RelativeLayoutParameter - - - - ----* Sets RelativeAlign parameter for LayoutParameter.<br> ----* see RelativeAlign<br> ----* param align Relative align in `RelativeAlign`. ----@param align int ----@return self -function RelativeLayoutParameter:setAlign (align) end ----* Set widget name your widget want to relative to.<br> ----* param name Relative widget name. ----@param name string ----@return self -function RelativeLayoutParameter:setRelativeToWidgetName (name) end ----* Get a name of LayoutParameter in Relative Layout.<br> ----* return name Relative name in string. ----@return string -function RelativeLayoutParameter:getRelativeName () end ----* Get the relative widget name.<br> ----* return name A relative widget name in string. ----@return string -function RelativeLayoutParameter:getRelativeToWidgetName () end ----* Set a name for LayoutParameter in Relative Layout.<br> ----* param name A string name. ----@param name string ----@return self -function RelativeLayoutParameter:setRelativeName (name) end ----* Get RelativeAlign parameter for LayoutParameter.<br> ----* see RelativeAlign<br> ----* return A RelativeAlign variable. ----@return int -function RelativeLayoutParameter:getAlign () end ----* Create a RelativeLayoutParameter instance.<br> ----* return A initialized LayoutParameter which is marked as "autorelease". ----@return self -function RelativeLayoutParameter:create () end ----* ----@return ccui.LayoutParameter -function RelativeLayoutParameter:createCloneInstance () end ----* ----@param model ccui.LayoutParameter ----@return self -function RelativeLayoutParameter:copyProperties (model) end ----* Default constructor<br> ----* lua new ----@return self -function RelativeLayoutParameter:RelativeLayoutParameter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RichElement.lua b/meta/3rd/Cocos4.0/library/ccui/RichElement.lua deleted file mode 100644 index 6e303f70..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RichElement.lua +++ /dev/null @@ -1,32 +0,0 @@ ----@meta - ----@class ccui.RichElement :cc.Ref -local RichElement={ } -ccui.RichElement=RichElement - - - - ----* ----@param type int ----@return boolean -function RichElement:equalType (type) end ----* brief Initialize a rich element with different arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in @see `Color3B`.<br> ----* param opacity A opacity value in `GLubyte`.<br> ----* return True if initialize success, false otherwise. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@return boolean -function RichElement:init (tag,color,opacity) end ----* ----@param color color3b_table ----@return self -function RichElement:setColor (color) end ----* brief Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RichElement:RichElement () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RichElementCustomNode.lua b/meta/3rd/Cocos4.0/library/ccui/RichElementCustomNode.lua deleted file mode 100644 index c9f03fb4..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RichElementCustomNode.lua +++ /dev/null @@ -1,38 +0,0 @@ ----@meta - ----@class ccui.RichElementCustomNode :ccui.RichElement -local RichElementCustomNode={ } -ccui.RichElementCustomNode=RichElementCustomNode - - - - ----* brief Initialize a RichElementCustomNode with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* param customNode A custom node pointer.<br> ----* return True if initialize success, false otherwise. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@param customNode cc.Node ----@return boolean -function RichElementCustomNode:init (tag,color,opacity,customNode) end ----* brief Create a RichElementCustomNode with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* param customNode A custom node pointer.<br> ----* return A RichElementCustomNode instance. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@param customNode cc.Node ----@return self -function RichElementCustomNode:create (tag,color,opacity,customNode) end ----* brief Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RichElementCustomNode:RichElementCustomNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RichElementImage.lua b/meta/3rd/Cocos4.0/library/ccui/RichElementImage.lua deleted file mode 100644 index fc14a694..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RichElementImage.lua +++ /dev/null @@ -1,58 +0,0 @@ ----@meta - ----@class ccui.RichElementImage :ccui.RichElement -local RichElementImage={ } -ccui.RichElementImage=RichElementImage - - - - ----* ----@param height int ----@return self -function RichElementImage:setHeight (height) end ----* brief Initialize a RichElementImage with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* param filePath A image file name.<br> ----* param url uniform resource locator<br> ----* param texType texture type, may be a valid file path, or a sprite frame name<br> ----* return True if initialize success, false otherwise. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@param filePath string ----@param url string ----@param texType int ----@return boolean -function RichElementImage:init (tag,color,opacity,filePath,url,texType) end ----* ----@param width int ----@return self -function RichElementImage:setWidth (width) end ----* ----@param url string ----@return self -function RichElementImage:setUrl (url) end ----* brief Create a RichElementImage with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* param filePath A image file name.<br> ----* param url uniform resource locator<br> ----* param texType texture type, may be a valid file path, or a sprite frame name<br> ----* return A RichElementImage instance. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@param filePath string ----@param url string ----@param texType int ----@return self -function RichElementImage:create (tag,color,opacity,filePath,url,texType) end ----* brief Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RichElementImage:RichElementImage () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RichElementNewLine.lua b/meta/3rd/Cocos4.0/library/ccui/RichElementNewLine.lua deleted file mode 100644 index 58f49462..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RichElementNewLine.lua +++ /dev/null @@ -1,24 +0,0 @@ ----@meta - ----@class ccui.RichElementNewLine :ccui.RichElement -local RichElementNewLine={ } -ccui.RichElementNewLine=RichElementNewLine - - - - ----* brief Create a RichElementNewLine with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* return A RichElementNewLine instance. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@return self -function RichElementNewLine:create (tag,color,opacity) end ----* brief Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RichElementNewLine:RichElementNewLine () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RichElementText.lua b/meta/3rd/Cocos4.0/library/ccui/RichElementText.lua deleted file mode 100644 index 77d0aff0..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RichElementText.lua +++ /dev/null @@ -1,78 +0,0 @@ ----@meta - ----@class ccui.RichElementText :ccui.RichElement -local RichElementText={ } -ccui.RichElementText=RichElementText - - - - ----* brief Initialize a RichElementText with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* param text Content string.<br> ----* param fontName Content font name.<br> ----* param fontSize Content font size.<br> ----* param flags italics, bold, underline, strikethrough, url, outline, shadow or glow<br> ----* param url uniform resource locator<br> ----* param outlineColor the color of the outline<br> ----* param outlineSize the outline effect size value<br> ----* param shadowColor the shadow effect color value<br> ----* param shadowOffset shadow effect offset value<br> ----* param shadowBlurRadius the shadow effect blur radius<br> ----* param glowColor glow color<br> ----* return True if initialize success, false otherwise. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@param text string ----@param fontName string ----@param fontSize float ----@param flags unsigned_int ----@param url string ----@param outlineColor color3b_table ----@param outlineSize int ----@param shadowColor color3b_table ----@param shadowOffset size_table ----@param shadowBlurRadius int ----@param glowColor color3b_table ----@return boolean -function RichElementText:init (tag,color,opacity,text,fontName,fontSize,flags,url,outlineColor,outlineSize,shadowColor,shadowOffset,shadowBlurRadius,glowColor) end ----* brief Create a RichElementText with various arguments.<br> ----* param tag A integer tag value.<br> ----* param color A color in Color3B.<br> ----* param opacity A opacity in GLubyte.<br> ----* param text Content string.<br> ----* param fontName Content font name.<br> ----* param fontSize Content font size.<br> ----* param flags italics, bold, underline, strikethrough, url, outline, shadow or glow<br> ----* param url uniform resource locator<br> ----* param outlineColor the color of the outline<br> ----* param outlineSize the outline effect size value<br> ----* param shadowColor the shadow effect color value<br> ----* param shadowOffset shadow effect offset value<br> ----* param shadowBlurRadius the shadow effect blur radius<br> ----* param glowColor glow color<br> ----* return RichElementText instance. ----@param tag int ----@param color color3b_table ----@param opacity unsigned_char ----@param text string ----@param fontName string ----@param fontSize float ----@param flags unsigned_int ----@param url string ----@param outlineColor color3b_table ----@param outlineSize int ----@param shadowColor color3b_table ----@param shadowOffset size_table ----@param shadowBlurRadius int ----@param glowColor color3b_table ----@return self -function RichElementText:create (tag,color,opacity,text,fontName,fontSize,flags,url,outlineColor,outlineSize,shadowColor,shadowOffset,shadowBlurRadius,glowColor) end ----* brief Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RichElementText:RichElementText () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/RichText.lua b/meta/3rd/Cocos4.0/library/ccui/RichText.lua deleted file mode 100644 index c00940fa..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/RichText.lua +++ /dev/null @@ -1,211 +0,0 @@ ----@meta - ----@class ccui.RichText :ccui.Widget -local RichText={ } -ccui.RichText=RichText - - - - ----* brief Insert a RichElement at a given index.<br> ----* param element A RichElement type.<br> ----* param index A given index. ----@param element ccui.RichElement ----@param index int ----@return self -function RichText:insertElement (element,index) end ----* @brief enable the outline of a-tag ----@param enable boolean ----@param outlineColor color3b_table ----@param outlineSize int ----@return self -function RichText:setAnchorTextOutline (enable,outlineColor,outlineSize) end ----* ----@return float -function RichText:getFontSize () end ----* brief Add a RichElement at the end of RichText.<br> ----* param element A RichElement instance. ----@param element ccui.RichElement ----@return self -function RichText:pushBackElement (element) end ----* ----@param enable boolean ----@return self -function RichText:setAnchorTextBold (enable) end ----* ----@return string -function RichText:getAnchorFontColor () end ----* ----@return int -function RichText:getAnchorTextShadowBlurRadius () end ----* @brief enable the shadow of a-tag ----@param enable boolean ----@param shadowColor color3b_table ----@param offset size_table ----@param blurRadius int ----@return self -function RichText:setAnchorTextShadow (enable,shadowColor,offset,blurRadius) end ----* ----@return boolean -function RichText:isAnchorTextItalicEnabled () end ----* ----@param color string ----@return self -function RichText:setAnchorFontColor (color) end ----* ----@param face string ----@return self -function RichText:setFontFace (face) end ----* ----@param enable boolean ----@param glowColor color3b_table ----@return self -function RichText:setAnchorTextGlow (enable,glowColor) end ----* ----@return int -function RichText:getHorizontalAlignment () end ----* ----@param a int ----@return self -function RichText:setHorizontalAlignment (a) end ----* ----@param enable boolean ----@return self -function RichText:setAnchorTextDel (enable) end ----* ----@return color3b_table -function RichText:getAnchorTextOutlineColor3B () end ----* ----@param color4b color4b_table ----@return string -function RichText:stringWithColor4B (color4b) end ----* ----@param xml string ----@param defaults map_table ----@param handleOpenUrl function ----@return boolean -function RichText:initWithXML (xml,defaults,handleOpenUrl) end ----* ----@return color3b_table -function RichText:getAnchorFontColor3B () end ----* brief Rearrange all RichElement in the RichText.<br> ----* It's usually called internally. ----@return self -function RichText:formatText () end ----* ----@return color3b_table -function RichText:getAnchorTextGlowColor3B () end ----* ----@param url string ----@return self -function RichText:openUrl (url) end ----* ----@return string -function RichText:getFontFace () end ----* ----@param color string ----@return self -function RichText:setFontColor (color) end ----* ----@return boolean -function RichText:isAnchorTextGlowEnabled () end ----* ----@return map_table -function RichText:getDefaults () end ----* ----@return boolean -function RichText:isAnchorTextUnderlineEnabled () end ----* ----@return string -function RichText:getFontColor () end ----* ----@return boolean -function RichText:isAnchorTextShadowEnabled () end ----* ----@return int -function RichText:getAnchorTextOutlineSize () end ----* brief Set vertical space between each RichElement.<br> ----* param space Point in float. ----@param space float ----@return self -function RichText:setVerticalSpace (space) end ----* ----@return boolean -function RichText:isAnchorTextDelEnabled () end ----* ----@param defaults map_table ----@return self -function RichText:setDefaults (defaults) end ----* ----@param wrapMode int ----@return self -function RichText:setWrapMode (wrapMode) end ----* ----@param size float ----@return self -function RichText:setFontSize (size) end ----@overload fun(int0:ccui.RichElement):self ----@overload fun(int:int):self ----@param index int ----@return self -function RichText:removeElement (index) end ----* ----@param enable boolean ----@return self -function RichText:setAnchorTextItalic (enable) end ----* ----@return size_table -function RichText:getAnchorTextShadowOffset () end ----* ----@return boolean -function RichText:isAnchorTextBoldEnabled () end ----* ----@return color3b_table -function RichText:getAnchorTextShadowColor3B () end ----* ----@param color3b color3b_table ----@return string -function RichText:stringWithColor3B (color3b) end ----* ----@return boolean -function RichText:isAnchorTextOutlineEnabled () end ----* ----@return color3b_table -function RichText:getFontColor3B () end ----* ----@return int -function RichText:getWrapMode () end ----* ----@param enable boolean ----@return self -function RichText:setAnchorTextUnderline (enable) end ----* ----@param color string ----@return color3b_table -function RichText:color3BWithString (color) end ----* brief Create a empty RichText.<br> ----* return RichText instance. ----@return self -function RichText:create () end ----* brief Create a RichText from an XML<br> ----* return RichText instance. ----@param xml string ----@param defaults map_table ----@param handleOpenUrl function ----@return self -function RichText:createWithXML (xml,defaults,handleOpenUrl) end ----* ----@return boolean -function RichText:init () end ----* ----@return string -function RichText:getDescription () end ----* ----@param ignore boolean ----@return self -function RichText:ignoreContentAdaptWithSize (ignore) end ----* brief Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function RichText:RichText () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Scale9Sprite.lua b/meta/3rd/Cocos4.0/library/ccui/Scale9Sprite.lua deleted file mode 100644 index 56442b04..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Scale9Sprite.lua +++ /dev/null @@ -1,225 +0,0 @@ ----@meta - ----@class ccui.Scale9Sprite :cc.Sprite -local Scale9Sprite={ } -ccui.Scale9Sprite=Scale9Sprite - - - - ----@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table,rect_table:rect_table):self ----@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table3:rect_table):self ----@param sprite cc.Sprite ----@param rect rect_table ----@param rotated boolean ----@param offset vec2_table ----@param originalSize size_table ----@param capInsets rect_table ----@return boolean -function Scale9Sprite:updateWithSprite (sprite,rect,rotated,offset,originalSize,capInsets) end ----* Creates and returns a new sprite object with the specified cap insets.<br> ----* You use this method to add cap insets to a sprite or to change the existing<br> ----* cap insets of a sprite. In both cases, you get back a new image and the<br> ----* original sprite remains untouched.<br> ----* param capInsets The values to use for the cap insets.<br> ----* return A Scale9Sprite instance. ----@param capInsets rect_table ----@return self -function Scale9Sprite:resizableSpriteWithCapInsets (capInsets) end ----* Returns the Cap Insets ----@return rect_table -function Scale9Sprite:getCapInsets () end ----* Change the state of 9-slice sprite.<br> ----* see `State`<br> ----* param state A enum value in State.<br> ----* since v3.4 ----@param state int ----@return self -function Scale9Sprite:setState (state) end ----* brief Change the bottom sprite's cap inset.<br> ----* param bottomInset The values to use for the cap inset. ----@param bottomInset float ----@return self -function Scale9Sprite:setInsetBottom (bottomInset) end ----* Initializes a 9-slice sprite with an sprite frame name and with the specified<br> ----* cap insets.<br> ----* Once the sprite is created, you can then call its "setContentSize:" method<br> ----* to resize the sprite will all it's 9-slice goodness interact.<br> ----* It respects the anchorPoint too.<br> ----* param spriteFrameName The sprite frame name.<br> ----* param capInsets The values to use for the cap insets.<br> ----* return True if initializes success, false otherwise. ----@param spriteFrameName string ----@param capInsets rect_table ----@return boolean -function Scale9Sprite:initWithSpriteFrameName (spriteFrameName,capInsets) end ----* brief Get the original no 9-sliced sprite<br> ----* return A sprite instance. ----@return cc.Sprite -function Scale9Sprite:getSprite () end ----* brief Change the top sprite's cap inset.<br> ----* param topInset The values to use for the cap inset. ----@param topInset float ----@return self -function Scale9Sprite:setInsetTop (topInset) end ----* Set the slice sprite rendering type.<br> ----* When setting to SIMPLE, only 4 vertexes is used to rendering.<br> ----* otherwise 16 vertexes will be used to rendering.<br> ----* see RenderingType ----@param type int ----@return self -function Scale9Sprite:setRenderingType (type) end ----@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean2:rect_table):self ----@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table3:rect_table):self ----@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table,rect_table:rect_table):self ----@param sprite cc.Sprite ----@param rect rect_table ----@param rotated boolean ----@param offset vec2_table ----@param originalSize size_table ----@param capInsets rect_table ----@return boolean -function Scale9Sprite:init (sprite,rect,rotated,offset,originalSize,capInsets) end ----* brief Change the preferred size of Scale9Sprite.<br> ----* param size A delimitation zone. ----@param size size_table ----@return self -function Scale9Sprite:setPreferredSize (size) end ----* brief copies self to copy ----@param copy ccui.Scale9Sprite ----@return self -function Scale9Sprite:copyTo (copy) end ----* brief Change inner sprite's sprite frame.<br> ----* param spriteFrame A sprite frame pointer.<br> ----* param capInsets The values to use for the cap insets. ----@param spriteFrame cc.SpriteFrame ----@param capInsets rect_table ----@return self -function Scale9Sprite:setSpriteFrame (spriteFrame,capInsets) end ----* Query the current bright state.<br> ----* return @see `State`<br> ----* since v3.7 ----@return int -function Scale9Sprite:getState () end ----* brief Query the bottom sprite's cap inset.<br> ----* return The bottom sprite's cap inset. ----@return float -function Scale9Sprite:getInsetBottom () end ----* brief Toggle 9-slice feature.<br> ----* If Scale9Sprite is 9-slice disabled, the Scale9Sprite will rendered as a normal sprite.<br> ----* warning: Don't use setScale9Enabled(false), use setRenderingType(RenderingType::SIMPLE) instead.<br> ----* The setScale9Enabled(false) is kept only for back back compatibility.<br> ----* param enabled True to enable 9-slice, false otherwise.<br> ----* js NA ----@param enabled boolean ----@return self -function Scale9Sprite:setScale9Enabled (enabled) end ----* brief Query whether the Scale9Sprite is enable 9-slice or not.<br> ----* return True if 9-slice is enabled, false otherwise.<br> ----* js NA ----@return boolean -function Scale9Sprite:isScale9Enabled () end ----* ----@return self -function Scale9Sprite:resetRender () end ----* Return the slice sprite rendering type. ----@return int -function Scale9Sprite:getRenderingType () end ----* brief Query the right sprite's cap inset.<br> ----* return The right sprite's cap inset. ----@return float -function Scale9Sprite:getInsetRight () end ----* brief Query the sprite's original size.<br> ----* return Sprite size. ----@return size_table -function Scale9Sprite:getOriginalSize () end ----@overload fun(string0:rect_table,rect_table1:string):self ----@overload fun(string:string,rect_table:rect_table,rect_table:rect_table):self ----@param file string ----@param rect rect_table ----@param capInsets rect_table ----@return boolean -function Scale9Sprite:initWithFile (file,rect,capInsets) end ----* brief Query the top sprite's cap inset.<br> ----* return The top sprite's cap inset. ----@return float -function Scale9Sprite:getInsetTop () end ----* brief Change the left sprite's cap inset.<br> ----* param leftInset The values to use for the cap inset. ----@param leftInset float ----@return self -function Scale9Sprite:setInsetLeft (leftInset) end ----* Initializes a 9-slice sprite with an sprite frame and with the specified<br> ----* cap insets.<br> ----* Once the sprite is created, you can then call its "setContentSize:" method<br> ----* to resize the sprite will all it's 9-slice goodness interact.<br> ----* It respects the anchorPoint too.<br> ----* param spriteFrame The sprite frame object.<br> ----* param capInsets The values to use for the cap insets.<br> ----* return True if initializes success, false otherwise. ----@param spriteFrame cc.SpriteFrame ----@param capInsets rect_table ----@return boolean -function Scale9Sprite:initWithSpriteFrame (spriteFrame,capInsets) end ----* brief Query the Scale9Sprite's preferred size.<br> ----* return Scale9Sprite's preferred size. ----@return size_table -function Scale9Sprite:getPreferredSize () end ----* Set the Cap Insets in Points using the untrimmed size as reference ----@param insets rect_table ----@return self -function Scale9Sprite:setCapInsets (insets) end ----* brief Query the left sprite's cap inset.<br> ----* return The left sprite's cap inset. ----@return float -function Scale9Sprite:getInsetLeft () end ----* brief Change the right sprite's cap inset.<br> ----* param rightInset The values to use for the cap inset. ----@param rightInset float ----@return self -function Scale9Sprite:setInsetRight (rightInset) end ----@overload fun(string:string,rect_table:rect_table,rect_table:rect_table):self ----@overload fun():self ----@overload fun(string0:rect_table,rect_table1:string):self ----@overload fun(string:string,rect_table:rect_table):self ----@overload fun(string:string):self ----@param file string ----@param rect rect_table ----@param capInsets rect_table ----@return self -function Scale9Sprite:create (file,rect,capInsets) end ----@overload fun(string:string,rect_table:rect_table):self ----@overload fun(string:string):self ----@param spriteFrameName string ----@param capInsets rect_table ----@return self -function Scale9Sprite:createWithSpriteFrameName (spriteFrameName,capInsets) end ----@overload fun(cc.SpriteFrame:cc.SpriteFrame,rect_table:rect_table):self ----@overload fun(cc.SpriteFrame:cc.SpriteFrame):self ----@param spriteFrame cc.SpriteFrame ----@param capInsets rect_table ----@return self -function Scale9Sprite:createWithSpriteFrame (spriteFrame,capInsets) end ----* Initializes a 9-slice sprite with an sprite frame name.<br> ----* Once the sprite is created, you can then call its "setContentSize:" method<br> ----* to resize the sprite will all it's 9-slice goodness interact.<br> ----* It respects the anchorPoint too.<br> ----* param spriteFrameName The sprite frame name.<br> ----* return True if initializes success, false otherwise. ----@param spriteFrameName string ----@return boolean -function Scale9Sprite:initWithSpriteFrameName (spriteFrameName) end ----@overload fun(string:string):self ----@overload fun(string:string,rect_table:rect_table):self ----@param file string ----@param rect rect_table ----@return boolean -function Scale9Sprite:initWithFile (file,rect) end ----* ----@return boolean -function Scale9Sprite:init () end ----* Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function Scale9Sprite:Scale9Sprite () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/ScrollView.lua b/meta/3rd/Cocos4.0/library/ccui/ScrollView.lua deleted file mode 100644 index afa425d8..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/ScrollView.lua +++ /dev/null @@ -1,378 +0,0 @@ ----@meta - ----@class ccui.ScrollView :ccui.Layout -local ScrollView={ } -ccui.ScrollView=ScrollView - - - - ----* Scroll inner container to top boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToTop (timeInSec,attenuated) end ----* Scroll inner container to horizontal percent position of scrollview.<br> ----* param percent A value between 0 and 100.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param percent float ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToPercentHorizontal (percent,timeInSec,attenuated) end ----* brief Set the scroll bar's opacity<br> ----* param the scroll bar's opacity ----@param opacity unsigned_char ----@return self -function ScrollView:setScrollBarOpacity (opacity) end ----* brief Toggle scroll bar enabled.<br> ----* param enabled True if enable scroll bar, false otherwise. ----@param enabled boolean ----@return self -function ScrollView:setScrollBarEnabled (enabled) end ----* brief Query inertia scroll state.<br> ----* return True if inertia is enabled, false otherwise. ----@return boolean -function ScrollView:isInertiaScrollEnabled () end ----* Scroll inner container to bottom boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToBottom (timeInSec,attenuated) end ----* return How far the scroll view is scrolled in both axes, combined as a Vec2 ----@return vec2_table -function ScrollView:getScrolledPercentBothDirection () end ----* Query scroll direction of scrollview.<br> ----* see `Direction` Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll<br> ----* return Scrollview scroll direction. ----@return int -function ScrollView:getDirection () end ----* brief Set the scroll bar's color<br> ----* param the scroll bar's color ----@param color color3b_table ----@return self -function ScrollView:setScrollBarColor (color) end ----* Scroll inner container to bottom and left boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToBottomLeft (timeInSec,attenuated) end ----* Get inner container of scrollview.<br> ----* Inner container is a child of scrollview.<br> ----* return Inner container pointer. ----@return ccui.Layout -function ScrollView:getInnerContainer () end ----* Move inner container to bottom boundary of scrollview. ----@return self -function ScrollView:jumpToBottom () end ----* Set inner container position<br> ----* param pos Inner container position. ----@param pos vec2_table ----@return self -function ScrollView:setInnerContainerPosition (pos) end ----* Changes scroll direction of scrollview.<br> ----* see `Direction`<br> ----* param dir Scroll direction enum. ----@param dir int ----@return self -function ScrollView:setDirection (dir) end ----* Scroll inner container to top and left boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToTopLeft (timeInSec,attenuated) end ----* Move inner container to top and right boundary of scrollview. ----@return self -function ScrollView:jumpToTopRight () end ----* Scroll inner container to both direction percent position of scrollview.<br> ----* param percent A value between 0 and 100.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param percent vec2_table ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToPercentBothDirection (percent,timeInSec,attenuated) end ----* Change inner container size of scrollview.<br> ----* Inner container size must be larger than or equal scrollview's size.<br> ----* param size Inner container size. ----@param size size_table ----@return self -function ScrollView:setInnerContainerSize (size) end ----* Get inner container position<br> ----* return The inner container position. ----@return vec2_table -function ScrollView:getInnerContainerPosition () end ----* Move inner container to top boundary of scrollview. ----@return self -function ScrollView:jumpToTop () end ----* return How far the scroll view is scrolled in the vertical axis ----@return float -function ScrollView:getScrolledPercentVertical () end ----* brief Query bounce state.<br> ----* return True if bounce is enabled, false otherwise. ----@return boolean -function ScrollView:isBounceEnabled () end ----* Move inner container to vertical percent position of scrollview.<br> ----* param percent A value between 0 and 100. ----@param percent float ----@return self -function ScrollView:jumpToPercentVertical (percent) end ----* Add callback function which will be called when scrollview event triggered.<br> ----* param callback A callback function with type of `ccScrollViewCallback`. ----@param callback function ----@return self -function ScrollView:addEventListener (callback) end ----* brief Set scroll bar auto hide time<br> ----* param scroll bar auto hide time ----@param autoHideTime float ----@return self -function ScrollView:setScrollBarAutoHideTime (autoHideTime) end ----* Immediately stops inner container scroll (auto scrolling is not affected). ----@return self -function ScrollView:stopScroll () end ----* brief Set the horizontal scroll bar position from left-bottom corner.<br> ----* param positionFromCorner The position from left-bottom corner ----@param positionFromCorner vec2_table ----@return self -function ScrollView:setScrollBarPositionFromCornerForHorizontal (positionFromCorner) end ----* brief Toggle whether enable scroll inertia while scrolling.<br> ----* param enabled True if enable inertia, false otherwise. ----@param enabled boolean ----@return self -function ScrollView:setInertiaScrollEnabled (enabled) end ----* brief Set scroll bar auto hide state<br> ----* param scroll bar auto hide state ----@param autoHideEnabled boolean ----@return self -function ScrollView:setScrollBarAutoHideEnabled (autoHideEnabled) end ----* brief Get the scroll bar's color<br> ----* return the scroll bar's color ----@return color3b_table -function ScrollView:getScrollBarColor () end ----* Move inner container to top and left boundary of scrollview. ----@return self -function ScrollView:jumpToTopLeft () end ----* brief Query scroll bar state.<br> ----* return True if scroll bar is enabled, false otherwise. ----@return boolean -function ScrollView:isScrollBarEnabled () end ----* return Whether the ScrollView is currently scrolling because of a bounceback or inertia slowdown. ----@return boolean -function ScrollView:isAutoScrolling () end ----* Move inner container to bottom and right boundary of scrollview. ----@return self -function ScrollView:jumpToBottomRight () end ----* brief Set the touch total time threshold<br> ----* param the touch total time threshold ----@param touchTotalTimeThreshold float ----@return self -function ScrollView:setTouchTotalTimeThreshold (touchTotalTimeThreshold) end ----* brief Get the touch total time threshold<br> ----* return the touch total time threshold ----@return float -function ScrollView:getTouchTotalTimeThreshold () end ----* brief Get the horizontal scroll bar's position from right-top corner.<br> ----* return positionFromCorner ----@return vec2_table -function ScrollView:getScrollBarPositionFromCornerForHorizontal () end ----* return How far the scroll view is scrolled in the horizontal axis ----@return float -function ScrollView:getScrolledPercentHorizontal () end ----* brief Toggle bounce enabled when scroll to the edge.<br> ----* param enabled True if enable bounce, false otherwise. ----@param enabled boolean ----@return self -function ScrollView:setBounceEnabled (enabled) end ----* Immediately stops inner container scroll initiated by any of the "scrollTo*" member functions ----@return self -function ScrollView:stopAutoScroll () end ----* Scroll inner container to top and right boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToTopRight (timeInSec,attenuated) end ----* return Whether the user is currently dragging the ScrollView to scroll it ----@return boolean -function ScrollView:isScrolling () end ----* Scroll inner container to left boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToLeft (timeInSec,attenuated) end ----* Move inner container to both direction percent position of scrollview.<br> ----* param percent A value between 0 and 100. ----@param percent vec2_table ----@return self -function ScrollView:jumpToPercentBothDirection (percent) end ----* Immediately stops inner container scroll if any. ----@return self -function ScrollView:stopOverallScroll () end ----* Scroll inner container to vertical percent position of scrollview.<br> ----* param percent A value between 0 and 100.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param percent float ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToPercentVertical (percent,timeInSec,attenuated) end ----* brief Set the scroll bar's width<br> ----* param width The scroll bar's width ----@param width float ----@return self -function ScrollView:setScrollBarWidth (width) end ----* brief Get the scroll bar's opacity<br> ----* return the scroll bar's opacity ----@return unsigned_char -function ScrollView:getScrollBarOpacity () end ----* Scroll inner container to bottom and right boundary of scrollview.<br> ----* param timeInSec Time in seconds<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToBottomRight (timeInSec,attenuated) end ----* brief Set the scroll bar positions from the left-bottom corner (horizontal) and right-top corner (vertical).<br> ----* param positionFromCorner The position from the left-bottom corner (horizontal) and right-top corner (vertical). ----@param positionFromCorner vec2_table ----@return self -function ScrollView:setScrollBarPositionFromCorner (positionFromCorner) end ----* brief Set the vertical scroll bar position from right-top corner.<br> ----* param positionFromCorner The position from right-top corner ----@param positionFromCorner vec2_table ----@return self -function ScrollView:setScrollBarPositionFromCornerForVertical (positionFromCorner) end ----* brief Get the scroll bar's auto hide time<br> ----* return the scroll bar's auto hide time ----@return float -function ScrollView:getScrollBarAutoHideTime () end ----* Move inner container to left boundary of scrollview. ----@return self -function ScrollView:jumpToLeft () end ----* Scroll inner container to right boundary of scrollview.<br> ----* param timeInSec Time in seconds.<br> ----* param attenuated Whether scroll speed attenuate or not. ----@param timeInSec float ----@param attenuated boolean ----@return self -function ScrollView:scrollToRight (timeInSec,attenuated) end ----* brief Get the vertical scroll bar's position from right-top corner.<br> ----* return positionFromCorner ----@return vec2_table -function ScrollView:getScrollBarPositionFromCornerForVertical () end ----* brief Get the scroll bar's width<br> ----* return the scroll bar's width ----@return float -function ScrollView:getScrollBarWidth () end ----* brief Query scroll bar auto hide state<br> ----* return True if scroll bar auto hide is enabled, false otherwise. ----@return boolean -function ScrollView:isScrollBarAutoHideEnabled () end ----* Move inner container to bottom and left boundary of scrollview. ----@return self -function ScrollView:jumpToBottomLeft () end ----* Move inner container to right boundary of scrollview. ----@return self -function ScrollView:jumpToRight () end ----* Get inner container size of scrollview.<br> ----* Inner container size must be larger than or equal scrollview's size.<br> ----* return The inner container size. ----@return size_table -function ScrollView:getInnerContainerSize () end ----* Move inner container to horizontal percent position of scrollview.<br> ----* param percent A value between 0 and 100. ----@param percent float ----@return self -function ScrollView:jumpToPercentHorizontal (percent) end ----* Create an empty ScrollView.<br> ----* return A ScrollView instance. ----@return self -function ScrollView:create () end ----* ----@return cc.Ref -function ScrollView:createInstance () end ----@overload fun(cc.Node:cc.Node,int:int):self ----@overload fun(cc.Node:cc.Node):self ----@overload fun(cc.Node:cc.Node,int:int,string2:int):self ----@overload fun(cc.Node:cc.Node,int:int,string:string):self ----@param child cc.Node ----@param localZOrder int ----@param name string ----@return self -function ScrollView:addChild (child,localZOrder,name) end ----* ----@return boolean -function ScrollView:init () end ----* ----@param name string ----@return cc.Node -function ScrollView:getChildByName (name) end ----* Return the "class name" of widget. ----@return string -function ScrollView:getDescription () end ----* ----@param dt float ----@return self -function ScrollView:update (dt) end ----* Get the layout type for scrollview.<br> ----* see `Layout::Type`<br> ----* return LayoutType ----@return int -function ScrollView:getLayoutType () end ----* ----@param cleanup boolean ----@return self -function ScrollView:removeAllChildrenWithCleanup (cleanup) end ----* ----@return self -function ScrollView:removeAllChildren () end ----* When a widget is in a layout, you could call this method to get the next focused widget within a specified direction.<br> ----* If the widget is not in a layout, it will return itself<br> ----* param direction the direction to look for the next focused widget in a layout<br> ----* param current the current focused widget<br> ----* return the next focused widget in a layout ----@param direction int ----@param current ccui.Widget ----@return ccui.Widget -function ScrollView:findNextFocusedWidget (direction,current) end ----* ----@param child cc.Node ----@param cleanup boolean ----@return self -function ScrollView:removeChild (child,cleanup) end ----@overload fun():self ----@overload fun():self ----@return array_table -function ScrollView:getChildren () end ----* ----@param tag int ----@return cc.Node -function ScrollView:getChildByTag (tag) end ----* ----@return int -function ScrollView:getChildrenCount () end ----* Set layout type for scrollview.<br> ----* see `Layout::Type`<br> ----* param type Layout type enum. ----@param type int ----@return self -function ScrollView:setLayoutType (type) end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function ScrollView:ScrollView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Slider.lua b/meta/3rd/Cocos4.0/library/ccui/Slider.lua deleted file mode 100644 index cc9c92ff..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Slider.lua +++ /dev/null @@ -1,191 +0,0 @@ ----@meta - ----@class ccui.Slider :ccui.Widget -local Slider={ } -ccui.Slider=Slider - - - - ----* Changes the progress direction of slider.<br> ----* param percent Percent value from 1 to 100. ----@param percent int ----@return self -function Slider:setPercent (percent) end ----* Query the maximum percent of Slider. The default value is 100.<br> ----* since v3.7<br> ----* return The maximum percent of the Slider. ----@return int -function Slider:getMaxPercent () end ----* Load normal state texture for slider ball.<br> ----* param normal Normal state texture.<br> ----* param resType @see TextureResType . ----@param normal string ----@param resType int ----@return self -function Slider:loadSlidBallTextureNormal (normal,resType) end ----* Load dark state texture for slider progress bar.<br> ----* param fileName File path of texture.<br> ----* param resType @see TextureResType . ----@param fileName string ----@param resType int ----@return self -function Slider:loadProgressBarTexture (fileName,resType) end ----* ----@return cc.ResourceData -function Slider:getBallNormalFile () end ----* ----@return cc.Sprite -function Slider:getSlidBallDisabledRenderer () end ----* Sets if slider is using scale9 renderer.<br> ----* param able True that using scale9 renderer, false otherwise. ----@param able boolean ----@return self -function Slider:setScale9Enabled (able) end ----* ----@return cc.ResourceData -function Slider:getBallPressedFile () end ----* brief Return a zoom scale<br> ----* since v3.3 ----@return float -function Slider:getZoomScale () end ----* Sets capinsets for progress bar slider, if slider is using scale9 renderer.<br> ----* param capInsets Capinsets for progress bar slider.<br> ----* js NA ----@param capInsets rect_table ----@return self -function Slider:setCapInsetProgressBarRenderer (capInsets) end ----* Load textures for slider ball.<br> ----* param normal Normal state texture.<br> ----* param pressed Pressed state texture.<br> ----* param disabled Disabled state texture.<br> ----* param texType @see TextureResType . ----@param normal string ----@param pressed string ----@param disabled string ----@param texType int ----@return self -function Slider:loadSlidBallTextures (normal,pressed,disabled,texType) end ----* ----@return cc.Node -function Slider:getSlidBallRenderer () end ----* Add call back function called when slider's percent has changed to slider.<br> ----* param callback An given call back function called when slider's percent has changed to slider. ----@param callback function ----@return self -function Slider:addEventListener (callback) end ----* Set a large value could give more control to the precision.<br> ----* since v3.7<br> ----* param percent The max percent of Slider. ----@param percent int ----@return self -function Slider:setMaxPercent (percent) end ----* Load texture for slider bar.<br> ----* param fileName File name of texture.<br> ----* param resType @see TextureResType . ----@param fileName string ----@param resType int ----@return self -function Slider:loadBarTexture (fileName,resType) end ----* ----@return cc.ResourceData -function Slider:getProgressBarFile () end ----* Gets capinsets for bar slider, if slider is using scale9 renderer.<br> ----* return capInsets Capinsets for bar slider. ----@return rect_table -function Slider:getCapInsetsBarRenderer () end ----* Updates the visual elements of the slider. ----@return self -function Slider:updateVisualSlider () end ----* Gets capinsets for progress bar slider, if slider is using scale9 renderer.<br> ----* return Capinsets for progress bar slider.<br> ----* js NA ----@return rect_table -function Slider:getCapInsetsProgressBarRenderer () end ----* ----@return cc.Sprite -function Slider:getSlidBallPressedRenderer () end ----* Load pressed state texture for slider ball.<br> ----* param pressed Pressed state texture.<br> ----* param resType @see TextureResType . ----@param pressed string ----@param resType int ----@return self -function Slider:loadSlidBallTexturePressed (pressed,resType) end ----* ----@return cc.ResourceData -function Slider:getBackFile () end ----* Gets If slider is using scale9 renderer.<br> ----* return True that using scale9 renderer, false otherwise. ----@return boolean -function Slider:isScale9Enabled () end ----* ----@return cc.ResourceData -function Slider:getBallDisabledFile () end ----* Sets capinsets for bar slider, if slider is using scale9 renderer.<br> ----* param capInsets Capinsets for bar slider. ----@param capInsets rect_table ----@return self -function Slider:setCapInsetsBarRenderer (capInsets) end ----* Gets the progress direction of slider.<br> ----* return percent Percent value from 1 to 100. ----@return int -function Slider:getPercent () end ----* Sets capinsets for slider, if slider is using scale9 renderer.<br> ----* param capInsets Capinsets for slider. ----@param capInsets rect_table ----@return self -function Slider:setCapInsets (capInsets) end ----* Load disabled state texture for slider ball.<br> ----* param disabled Disabled state texture.<br> ----* param resType @see TextureResType . ----@param disabled string ----@param resType int ----@return self -function Slider:loadSlidBallTextureDisabled (disabled,resType) end ----* ----@return cc.Sprite -function Slider:getSlidBallNormalRenderer () end ----* When user pressed the button, the button will zoom to a scale.<br> ----* The final scale of the button equals (button original scale + _zoomScale)<br> ----* since v3.3 ----@param scale float ----@return self -function Slider:setZoomScale (scale) end ----@overload fun(string:string,string:string,int:int):self ----@overload fun():self ----@param barTextureName string ----@param normalBallTextureName string ----@param resType int ----@return self -function Slider:create (barTextureName,normalBallTextureName,resType) end ----* ----@return cc.Ref -function Slider:createInstance () end ----* ----@return cc.Node -function Slider:getVirtualRenderer () end ----* ----@param ignore boolean ----@return self -function Slider:ignoreContentAdaptWithSize (ignore) end ----* Returns the "class name" of widget. ----@return string -function Slider:getDescription () end ----* ----@param pt vec2_table ----@param camera cc.Camera ----@param p vec3_table ----@return boolean -function Slider:hitTest (pt,camera,p) end ----* ----@return boolean -function Slider:init () end ----* ----@return size_table -function Slider:getVirtualRendererSize () end ----* Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function Slider:Slider () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/TabControl.lua b/meta/3rd/Cocos4.0/library/ccui/TabControl.lua deleted file mode 100644 index 98cb14ab..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/TabControl.lua +++ /dev/null @@ -1,104 +0,0 @@ ----@meta - ----@class ccui.TabControl :ccui.Widget -local TabControl={ } -ccui.TabControl=TabControl - - - - ----* set header width, affect all tab<br> ----* param headerWidth each tab header's width ----@param headerWidth float ----@return self -function TabControl:setHeaderWidth (headerWidth) end ----* remove the tab from this TabControl<br> ----* param index The index of tab ----@param index int ----@return self -function TabControl:removeTab (index) end ----* get the count of tabs in this TabControl<br> ----* return the count of tabs ----@return unsigned_int -function TabControl:getTabCount () end ----* ----@return int -function TabControl:getHeaderDockPlace () end ----* get current selected tab's index<br> ----* return the current selected tab index ----@return int -function TabControl:getSelectedTabIndex () end ----* insert tab, and init the position of header and container<br> ----* param index The index tab should be<br> ----* param header The header Button, will be a protected child in TabControl<br> ----* param container The container, will be a protected child in TabControl ----@param index int ----@param header ccui.TabHeader ----@param container ccui.Layout ----@return self -function TabControl:insertTab (index,header,container) end ----* ignore the textures' size in header, scale them with _headerWidth and _headerHeight<br> ----* param ignore is `true`, the header's texture scale with _headerWidth and _headerHeight<br> ----* ignore is `false`, use the texture's size, do not scale them ----@param ignore boolean ----@return self -function TabControl:ignoreHeadersTextureSize (ignore) end ----* get tab header's width<br> ----* return header's width ----@return float -function TabControl:getHeaderWidth () end ----* the header dock place of header in TabControl<br> ----* param dockPlace The strip place ----@param dockPlace int ----@return self -function TabControl:setHeaderDockPlace (dockPlace) end ----@overload fun(int0:ccui.TabHeader):self ----@overload fun(int:int):self ----@param index int ----@return self -function TabControl:setSelectTab (index) end ----* get TabHeader<br> ----* param index The index of tab ----@param index int ----@return ccui.TabHeader -function TabControl:getTabHeader (index) end ----* get whether ignore the textures' size in header, scale them with _headerWidth and _headerHeight<br> ----* return whether ignore the textures' size in header ----@return boolean -function TabControl:isIgnoreHeadersTextureSize () end ----* Add a callback function which would be called when selected tab changed<br> ----* param callback A std::function with type @see `ccTabControlCallback` ----@param callback function ----@return self -function TabControl:setTabChangedEventListener (callback) end ----* set the delta zoom of selected tab<br> ----* param zoom The delta zoom ----@param zoom float ----@return self -function TabControl:setHeaderSelectedZoom (zoom) end ----* set header height, affect all tab<br> ----* param headerHeight each tab header's height ----@param headerHeight float ----@return self -function TabControl:setHeaderHeight (headerHeight) end ----* get the index of tabCell in TabView, return -1 if not exists in.<br> ----* return the index of tabCell in TabView, `-1` means not exists in. ----@param tabCell ccui.TabHeader ----@return int -function TabControl:indexOfTabHeader (tabCell) end ----* get Container<br> ----* param index The index of tab ----@param index int ----@return ccui.Layout -function TabControl:getTabContainer (index) end ----* get the delta zoom of selected tab<br> ----* return zoom, the delta zoom ----@return float -function TabControl:getHeaderSelectedZoom () end ----* get tab header's height<br> ----* return header's height ----@return int -function TabControl:getHeaderHeight () end ----* ----@return self -function TabControl:create () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/TabHeader.lua b/meta/3rd/Cocos4.0/library/ccui/TabHeader.lua deleted file mode 100644 index 9377970b..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/TabHeader.lua +++ /dev/null @@ -1,65 +0,0 @@ ----@meta - ----@class ccui.TabHeader :ccui.AbstractCheckButton -local TabHeader={ } -ccui.TabHeader=TabHeader - - - - ----* get the index this header in the TabControl<br> ----* return -1 means not in any TabControl ----@return int -function TabHeader:getIndexInTabControl () end ----* get the TabHeader text<br> ----* return he TabHeader text ----@return string -function TabHeader:getTitleText () end ----* Change the font size of TabHeader text<br> ----* param size TabHeader text's font size in float. ----@param size float ----@return self -function TabHeader:setTitleFontSize (size) end ----* Change the font name of TabHeader text<br> ----* param fontName a font name string. ----@param fontName string ----@return self -function TabHeader:setTitleFontName (fontName) end ----* get the font size of TabHeader text<br> ----* return TabHeader text's font size in float. ----@return float -function TabHeader:getTitleFontSize () end ----* get the font name of TabHeader text<br> ----* return font name in std::string ----@return string -function TabHeader:getTitleFontName () end ----* get the TabHeader text color.<br> ----* return Color4B of TabHeader text. ----@return color4b_table -function TabHeader:getTitleColor () end ----* Return the inner Label renderer of TabHeader.<br> ----* return The TabHeader Label. ----@return cc.Label -function TabHeader:getTitleRenderer () end ----* Change the content of Header's text.<br> ----* param text The Header's text. ----@param text string ----@return self -function TabHeader:setTitleText (text) end ----* Change the color of he TabHeader text<br> ----* param color The he TabHeader text's color in Color4B. ----@param color color4b_table ----@return self -function TabHeader:setTitleColor (color) end ----@overload fun(string:string,string:string,string:string,string3:int):self ----@overload fun():self ----@overload fun(string:string,string:string,string:string,string:string,string:string,string:string,int:int):self ----@param titleStr string ----@param backGround string ----@param backGroundSelected string ----@param cross string ----@param backGroundDisabled string ----@param frontCrossDisabled string ----@param texType int ----@return self -function TabHeader:create (titleStr,backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Text.lua b/meta/3rd/Cocos4.0/library/ccui/Text.lua deleted file mode 100644 index a82addf3..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Text.lua +++ /dev/null @@ -1,206 +0,0 @@ ----@meta - ----@class ccui.Text :ccui.Widget@all parent class: Widget,BlendProtocol -local Text={ } -ccui.Text=Text - - - - ----* Enable shadow for the label.<br> ----* todo support blur for shadow effect<br> ----* param shadowColor The color of shadow effect.<br> ----* param offset The offset of shadow effect.<br> ----* param blurRadius The blur radius of shadow effect. ----@return self -function Text:enableShadow () end ----* Gets the font size of label.<br> ----* return The font size. ----@return float -function Text:getFontSize () end ----* Gets the string value of label.<br> ----* return String value. ----@return string -function Text:getString () end ----@overload fun(int:int):self ----@overload fun():self ----@param effect int ----@return self -function Text:disableEffect (effect) end ----* Return current effect type. ----@return int -function Text:getLabelEffectType () end ----* Gets text color.<br> ----* return Text color. ----@return color4b_table -function Text:getTextColor () end ----* Returns the blending function that is currently being used.<br> ----* return A BlendFunc structure with source and destination factor which specified pixel arithmetic.<br> ----* js NA<br> ----* lua NA ----@return cc.BlendFunc -function Text:getBlendFunc () end ----* Sets text vertical alignment.<br> ----* param alignment vertical text alignment type ----@param alignment int ----@return self -function Text:setTextVerticalAlignment (alignment) end ----* Sets the font name of label.<br> ----* If you are trying to use a system font, you could just pass a font name<br> ----* If you are trying to use a TTF, you should pass a file path to the TTF file<br> ----* Usage:<br> ----* code<br> ----* create a system font UIText<br> ----* Text *text = Text::create("Hello", "Arial", 20);<br> ----* it will change the font to system font no matter the previous font type is TTF or system font<br> ----* text->setFontName("Marfelt");<br> ----* it will change the font to TTF font no matter the previous font type is TTF or system font<br> ----* text->setFontName("xxxx/xxx.ttf");<br> ----* endcode<br> ----* param name Font name. ----@param name string ----@return self -function Text:setFontName (name) end ----* Sets the touch scale enabled of label.<br> ----* param enabled Touch scale enabled of label. ----@param enabled boolean ----@return self -function Text:setTouchScaleChangeEnabled (enabled) end ----* Return shadow effect offset value. ----@return size_table -function Text:getShadowOffset () end ----* Changes the string value of label.<br> ----* param text String value. ----@param text string ----@return self -function Text:setString (text) end ----* Return the outline effect size value. ----@return int -function Text:getOutlineSize () end ----* ----@param textContent string ----@param fontName string ----@param fontSize float ----@return boolean -function Text:init (textContent,fontName,fontSize) end ----* Return the shadow effect blur radius. ----@return float -function Text:getShadowBlurRadius () end ----* Gets the touch scale enabled of label.<br> ----* return Touch scale enabled of label. ----@return boolean -function Text:isTouchScaleChangeEnabled () end ----* Gets the font name.<br> ----* return Font name. ----@return string -function Text:getFontName () end ----* Sets the rendering size of the text, you should call this method<br> ----* along with calling `ignoreContentAdaptWithSize(false)`, otherwise the text area<br> ----* size is calculated by the real size of the text content.<br> ----* param size The text rendering area size. ----@param size size_table ----@return self -function Text:setTextAreaSize (size) end ----* Gets the string length of the label.<br> ----* Note: This length will be larger than the raw string length,<br> ----* if you want to get the raw string length,<br> ----* you should call this->getString().size() instead.<br> ----* return String length. ----@return int -function Text:getStringLength () end ----* Gets the render size in auto mode.<br> ----* return The size of render size in auto mode. ----@return size_table -function Text:getAutoRenderSize () end ----* Enable outline for the label.<br> ----* It only works on IOS and Android when you use System fonts.<br> ----* param outlineColor The color of outline.<br> ----* param outlineSize The size of outline. ----@param outlineColor color4b_table ----@param outlineSize int ----@return self -function Text:enableOutline (outlineColor,outlineSize) end ----* Return current effect color value. ----@return color4b_table -function Text:getEffectColor () end ----* Gets the font type.<br> ----* return The font type. ----@return int -function Text:getType () end ----* Gets text horizontal alignment.<br> ----* return Horizontal text alignment type ----@return int -function Text:getTextHorizontalAlignment () end ----* Return whether the shadow effect is enabled. ----@return boolean -function Text:isShadowEnabled () end ----* Sets the font size of label.<br> ----* param size The font size. ----@param size float ----@return self -function Text:setFontSize (size) end ----* Return the shadow effect color value. ----@return color4b_table -function Text:getShadowColor () end ----* Sets text color.<br> ----* param color Text color. ----@param color color4b_table ----@return self -function Text:setTextColor (color) end ----* Only support for TTF.<br> ----* param glowColor The color of glow. ----@param glowColor color4b_table ----@return self -function Text:enableGlow (glowColor) end ----* Provides a way to treat each character like a Sprite.<br> ----* warning No support system font. ----@param lettetIndex int ----@return cc.Sprite -function Text:getLetter (lettetIndex) end ----* Sets the source blending function.<br> ----* param blendFunc A structure with source and destination factor to specify pixel arithmetic. e.g. {BlendFactor::ONE, BlendFactor::ONE}, {BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA}.<br> ----* js NA<br> ----* lua NA ----@param blendFunc cc.BlendFunc ----@return self -function Text:setBlendFunc (blendFunc) end ----* Gets text vertical alignment.<br> ----* return Vertical text alignment type ----@return int -function Text:getTextVerticalAlignment () end ----* Return the text rendering area size.<br> ----* return The text rendering area size. ----@return size_table -function Text:getTextAreaSize () end ----* Sets text horizontal alignment.<br> ----* param alignment Horizontal text alignment type ----@param alignment int ----@return self -function Text:setTextHorizontalAlignment (alignment) end ----@overload fun(string:string,string:string,float:float):self ----@overload fun():self ----@param textContent string ----@param fontName string ----@param fontSize float ----@return self -function Text:create (textContent,fontName,fontSize) end ----* ----@return cc.Ref -function Text:createInstance () end ----* ----@return cc.Node -function Text:getVirtualRenderer () end ----* ----@return boolean -function Text:init () end ----* Returns the "class name" of widget. ----@return string -function Text:getDescription () end ----* ----@return size_table -function Text:getVirtualRendererSize () end ----* Default constructor.<br> ----* js ctor<br> ----* lua new ----@return self -function Text:Text () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua b/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua deleted file mode 100644 index 9f9170ba..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua +++ /dev/null @@ -1,68 +0,0 @@ ----@meta - ----@class ccui.TextAtlas :ccui.Widget -local TextAtlas={ } -ccui.TextAtlas=TextAtlas - - - - ----* Gets the string length of the label.<br> ----* Note: This length will be larger than the raw string length,<br> ----* if you want to get the raw string length, you should call this->getString().size() instead<br> ----* return string length. ----@return int -function TextAtlas:getStringLength () end ----* Get string value for labelatlas.<br> ----* return The string value of TextAtlas. ----@return string -function TextAtlas:getString () end ----* Set string value for labelatlas.<br> ----* param value A given string needs to be displayed. ----@param value string ----@return self -function TextAtlas:setString (value) end ----* ----@return cc.ResourceData -function TextAtlas:getRenderFile () end ----* Initializes the LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas.<br> ----* param stringValue A given string needs to be displayed.<br> ----* param charMapFile A given char map file name.<br> ----* param itemWidth The element width.<br> ----* param itemHeight The element height.<br> ----* param startCharMap The starting char of the atlas. ----@param stringValue string ----@param charMapFile string ----@param itemWidth int ----@param itemHeight int ----@param startCharMap string ----@return self -function TextAtlas:setProperty (stringValue,charMapFile,itemWidth,itemHeight,startCharMap) end ----* js NA ----@return self -function TextAtlas:adaptRenderers () end ----@overload fun(string:string,string:string,int:int,int:int,string:string):self ----@overload fun():self ----@param stringValue string ----@param charMapFile string ----@param itemWidth int ----@param itemHeight int ----@param startCharMap string ----@return self -function TextAtlas:create (stringValue,charMapFile,itemWidth,itemHeight,startCharMap) end ----* ----@return cc.Ref -function TextAtlas:createInstance () end ----* ----@return cc.Node -function TextAtlas:getVirtualRenderer () end ----* Returns the "class name" of widget. ----@return string -function TextAtlas:getDescription () end ----* ----@return size_table -function TextAtlas:getVirtualRendererSize () end ----* Default constructor.<br> ----* lua new ----@return self -function TextAtlas:TextAtlas () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/TextBMFont.lua b/meta/3rd/Cocos4.0/library/ccui/TextBMFont.lua deleted file mode 100644 index 8f535439..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/TextBMFont.lua +++ /dev/null @@ -1,55 +0,0 @@ ----@meta - ----@class ccui.TextBMFont :ccui.Widget -local TextBMFont={ } -ccui.TextBMFont=TextBMFont - - - - ----* Gets the string length of the label.<br> ----* Note: This length will be larger than the raw string length,<br> ----* if you want to get the raw string length, you should call this->getString().size() instead<br> ----* return string length. ----@return int -function TextBMFont:getStringLength () end ----* get string value for labelbmfont ----@return string -function TextBMFont:getString () end ----* set string value for labelbmfont ----@param value string ----@return self -function TextBMFont:setString (value) end ----* ----@return cc.ResourceData -function TextBMFont:getRenderFile () end ----* init a bitmap font atlas with an initial string and the FNT file ----@param fileName string ----@return self -function TextBMFont:setFntFile (fileName) end ----* reset TextBMFont inner label ----@return self -function TextBMFont:resetRender () end ----@overload fun(string:string,string:string):self ----@overload fun():self ----@param text string ----@param filename string ----@return self -function TextBMFont:create (text,filename) end ----* ----@return cc.Ref -function TextBMFont:createInstance () end ----* ----@return cc.Node -function TextBMFont:getVirtualRenderer () end ----* Returns the "class name" of widget. ----@return string -function TextBMFont:getDescription () end ----* ----@return size_table -function TextBMFont:getVirtualRendererSize () end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function TextBMFont:TextBMFont () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/TextField.lua b/meta/3rd/Cocos4.0/library/ccui/TextField.lua deleted file mode 100644 index 8b1c2f61..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/TextField.lua +++ /dev/null @@ -1,248 +0,0 @@ ----@meta - ----@class ccui.TextField :ccui.Widget -local TextField={ } -ccui.TextField=TextField - - - - ----* brief Toggle attach with IME.<br> ----* param attach True if attach with IME, false otherwise. ----@param attach boolean ----@return self -function TextField:setAttachWithIME (attach) end ----* brief Query the font size.<br> ----* return The integer font size. ----@return int -function TextField:getFontSize () end ----* Query the content of TextField.<br> ----* return The string value of TextField. ----@return string -function TextField:getString () end ----* brief Change password style text.<br> ----* param styleText The styleText for password mask, the default value is "*". ----@param styleText char ----@return self -function TextField:setPasswordStyleText (styleText) end ----* brief Whether it is ready to delete backward in TextField.<br> ----* return True is the delete backward is enabled, false otherwise. ----@return boolean -function TextField:getDeleteBackward () end ----* brief Query the text string color.<br> ----* return The color of the text. ----@return color4b_table -function TextField:getTextColor () end ----* brief Get the placeholder of TextField.<br> ----* return A placeholder string. ----@return string -function TextField:getPlaceHolder () end ----* brief Query whether the IME is attached or not.<br> ----* return True if IME is attached, false otherwise. ----@return boolean -function TextField:getAttachWithIME () end ----* brief Change the font name of TextField.<br> ----* param name The font name string. ----@param name string ----@return self -function TextField:setFontName (name) end ----* brief Whether it is ready to get the inserted text or not.<br> ----* return True if the insert text is ready, false otherwise. ----@return boolean -function TextField:getInsertText () end ----* brief Toggle enable insert text mode<br> ----* param insertText True if enable insert text, false otherwise. ----@param insertText boolean ----@return self -function TextField:setInsertText (insertText) end ----* Change content of TextField.<br> ----* param text A string content. ----@param text string ----@return self -function TextField:setString (text) end ----* brief Query whether IME is detached or not.<br> ----* return True if IME is detached, false otherwise. ----@return boolean -function TextField:getDetachWithIME () end ----* brief Change the vertical text alignment.<br> ----* param alignment A alignment arguments in @see `TextVAlignment`. ----@param alignment int ----@return self -function TextField:setTextVerticalAlignment (alignment) end ----* Add a event listener to TextField, when some predefined event happens, the callback will be called.<br> ----* param callback A callback function with type of `ccTextFieldCallback`. ----@param callback function ----@return self -function TextField:addEventListener (callback) end ----* brief Detach the IME. ----@return self -function TextField:didNotSelectSelf () end ----* brief Query the TextField's font name.<br> ----* return The font name string. ----@return string -function TextField:getFontName () end ----* brief Change the text area size.<br> ----* param size A delimitation zone. ----@param size size_table ----@return self -function TextField:setTextAreaSize (size) end ----* brief Attach the IME for inputing. ----@return self -function TextField:attachWithIME () end ----* brief Query the input string length.<br> ----* return A integer length value. ----@return int -function TextField:getStringLength () end ----* brief Get the renderer size in auto mode.<br> ----* return A delimitation zone. ----@return size_table -function TextField:getAutoRenderSize () end ----* brief Toggle enable password input mode.<br> ----* param enable True if enable password input mode, false otherwise. ----@param enable boolean ----@return self -function TextField:setPasswordEnabled (enable) end ----* brief Query the placeholder string color.<br> ----* return The color of placeholder. ----@return color4b_table -function TextField:getPlaceHolderColor () end ----* brief Query the password style text.<br> ----* return A password style text. ----@return char -function TextField:getPasswordStyleText () end ----* brief Toggle maximize length enable<br> ----* param enable True if enable maximize length, false otherwise. ----@param enable boolean ----@return self -function TextField:setMaxLengthEnabled (enable) end ----* brief Query whether password is enabled or not.<br> ----* return True if password is enabled, false otherwise. ----@return boolean -function TextField:isPasswordEnabled () end ----* brief Toggle enable delete backward mode.<br> ----* param deleteBackward True is delete backward is enabled, false otherwise. ----@param deleteBackward boolean ----@return self -function TextField:setDeleteBackward (deleteBackward) end ----* Set cursor position, if enabled<br> ----* js NA ----@param cursorPosition unsigned_int ----@return self -function TextField:setCursorPosition (cursorPosition) end ----* brief Inquire the horizontal alignment<br> ----* return The horizontal alignment ----@return int -function TextField:getTextHorizontalAlignment () end ----* brief Change font size of TextField.<br> ----* param size The integer font size. ----@param size int ----@return self -function TextField:setFontSize (size) end ----* brief Set placeholder of TextField.<br> ----* param value The string value of placeholder. ----@param value string ----@return self -function TextField:setPlaceHolder (value) end ----* Set cursor position to hit letter, if enabled<br> ----* js NA ----@param point vec2_table ----@param camera cc.Camera ----@return self -function TextField:setCursorFromPoint (point,camera) end ----@overload fun(color3b_table0:color4b_table):self ----@overload fun(color3b_table:color3b_table):self ----@param color color3b_table ----@return self -function TextField:setPlaceHolderColor (color) end ----* brief Change horizontal text alignment.<br> ----* param alignment A alignment arguments in @see `TextHAlignment`. ----@param alignment int ----@return self -function TextField:setTextHorizontalAlignment (alignment) end ----* brief Change the text color.<br> ----* param textColor The color value in `Color4B`. ----@param textColor color4b_table ----@return self -function TextField:setTextColor (textColor) end ----* Set char showing cursor.<br> ----* js NA ----@param cursor char ----@return self -function TextField:setCursorChar (cursor) end ----* brief Query maximize input length of TextField.<br> ----* return The integer value of maximize input length. ----@return int -function TextField:getMaxLength () end ----* brief Query whether max length is enabled or not.<br> ----* return True if maximize length is enabled, false otherwise. ----@return boolean -function TextField:isMaxLengthEnabled () end ----* brief Toggle detach with IME.<br> ----* param detach True if detach with IME, false otherwise. ----@param detach boolean ----@return self -function TextField:setDetachWithIME (detach) end ----* brief Inquire the horizontal alignment<br> ----* return The horizontal alignment ----@return int -function TextField:getTextVerticalAlignment () end ----* brief Toggle enable touch area.<br> ----* param enable True if enable touch area, false otherwise. ----@param enable boolean ----@return self -function TextField:setTouchAreaEnabled (enable) end ----* brief Change maximize input length limitation.<br> ----* param length A character count in integer. ----@param length int ----@return self -function TextField:setMaxLength (length) end ----* Set enable cursor use.<br> ----* js NA ----@param enabled boolean ----@return self -function TextField:setCursorEnabled (enabled) end ----* brief Set the touch size<br> ----* The touch size is used for @see `hitTest`.<br> ----* param size A delimitation zone. ----@param size size_table ----@return self -function TextField:setTouchSize (size) end ----* brief Get current touch size of TextField.<br> ----* return The TextField's touch size. ----@return size_table -function TextField:getTouchSize () end ----@overload fun(string:string,string:string,int:int):self ----@overload fun():self ----@param placeholder string ----@param fontName string ----@param fontSize int ----@return self -function TextField:create (placeholder,fontName,fontSize) end ----* ----@return cc.Ref -function TextField:createInstance () end ----* ----@return cc.Node -function TextField:getVirtualRenderer () end ----* Returns the "class name" of widget. ----@return string -function TextField:getDescription () end ----* ----@param dt float ----@return self -function TextField:update (dt) end ----* ----@param pt vec2_table ----@param camera cc.Camera ----@param p vec3_table ----@return boolean -function TextField:hitTest (pt,camera,p) end ----* ----@return boolean -function TextField:init () end ----* ----@return size_table -function TextField:getVirtualRendererSize () end ----* brief Default constructor. ----@return self -function TextField:TextField () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/VBox.lua b/meta/3rd/Cocos4.0/library/ccui/VBox.lua deleted file mode 100644 index 8fbea878..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/VBox.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@class ccui.VBox :ccui.Layout -local VBox={ } -ccui.VBox=VBox - - - - ----* ----@param size size_table ----@return boolean -function VBox:initWithSize (size) end ----@overload fun(size_table:size_table):self ----@overload fun():self ----@param size size_table ----@return self -function VBox:create (size) end ----* ----@return boolean -function VBox:init () end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function VBox:VBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/VideoPlayer.lua b/meta/3rd/Cocos4.0/library/ccui/VideoPlayer.lua deleted file mode 100644 index c976116f..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/VideoPlayer.lua +++ /dev/null @@ -1,114 +0,0 @@ ----@meta - ----@class ccui.VideoPlayer :ccui.Widget -local VideoPlayer={ } -ccui.VideoPlayer=VideoPlayer - - - - ----* brief Get the local video file name.<br> ----* return The video file name. ----@return string -function VideoPlayer:getFileName () end ----* brief Get the URL of remoting video source.<br> ----* return A remoting URL address. ----@return string -function VideoPlayer:getURL () end ----* Starts playback. ----@return self -function VideoPlayer:play () end ----* Checks whether the VideoPlayer is set to listen user input to resume and pause the video<br> ----* return true if the videoplayer user input is set, false otherwise. ----@return boolean -function VideoPlayer:isUserInputEnabled () end ----* Causes the video player to keep aspect ratio or no when displaying the video.<br> ----* param enable Specify true to keep aspect ratio or false to scale the video until <br> ----* both dimensions fit the visible bounds of the view exactly. ----@param enable boolean ----@return self -function VideoPlayer:setKeepAspectRatioEnabled (enable) end ----* Stops playback. ----@return self -function VideoPlayer:stop () end ----* Causes the video player to enter or exit full-screen mode.<br> ----* param fullscreen Specify true to enter full-screen mode or false to exit full-screen mode. ----@param fullscreen boolean ----@return self -function VideoPlayer:setFullScreenEnabled (fullscreen) end ----* Sets a file path as a video source for VideoPlayer. ----@param videoPath string ----@return self -function VideoPlayer:setFileName (videoPath) end ----* Sets a URL as a video source for VideoPlayer. ----@param _videoURL string ----@return self -function VideoPlayer:setURL (_videoURL) end ----* Set the style of the player<br> ----* param style The corresponding style ----@param style int ----@return self -function VideoPlayer:setStyle (style) end ----* Seeks to specified time position.<br> ----* param sec The offset in seconds from the start to seek to. ----@param sec float ----@return self -function VideoPlayer:seekTo (sec) end ----* Indicates whether the video player keep aspect ratio when displaying the video. ----@return boolean -function VideoPlayer:isKeepAspectRatioEnabled () end ----* brief A function which will be called when video is playing.<br> ----* param event @see VideoPlayer::EventType. ----@param event int ----@return self -function VideoPlayer:onPlayEvent (event) end ----* Indicates whether the video player is in full-screen mode.<br> ----* return True if the video player is in full-screen mode, false otherwise. ----@return boolean -function VideoPlayer:isFullScreenEnabled () end ----* Checks whether the VideoPlayer is set with looping mode.<br> ----* return true if the videoplayer is set to loop, false otherwise. ----@return boolean -function VideoPlayer:isLooping () end ----* Checks whether the VideoPlayer is playing.<br> ----* return True if currently playing, false otherwise. ----@return boolean -function VideoPlayer:isPlaying () end ----* brief Set if playback is done in loop mode<br> ----* param looping the video will or not automatically restart at the end ----@param looping boolean ----@return self -function VideoPlayer:setLooping (looping) end ----* Set if the player will enable user input for basic pause and resume of video<br> ----* param enableInput If true, input will be handled for basic functionality (pause/resume) ----@param enableInput boolean ----@return self -function VideoPlayer:setUserInputEnabled (enableInput) end ----* ----@return self -function VideoPlayer:create () end ----* ----@param renderer cc.Renderer ----@param transform mat4_table ----@param flags unsigned_int ----@return self -function VideoPlayer:draw (renderer,transform,flags) end ----* Pauses playback. ----@return self -function VideoPlayer:pause () end ----* ----@return self -function VideoPlayer:onEnter () end ----* ----@return self -function VideoPlayer:onExit () end ----* Resumes playback. ----@return self -function VideoPlayer:resume () end ----* ----@param visible boolean ----@return self -function VideoPlayer:setVisible (visible) end ----* ----@return self -function VideoPlayer:VideoPlayer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/WebView.lua b/meta/3rd/Cocos4.0/library/ccui/WebView.lua deleted file mode 100644 index b89cfbd1..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/WebView.lua +++ /dev/null @@ -1,93 +0,0 @@ ----@meta - ----@class ccui.WebView :ccui.Widget -local WebView={ } -ccui.WebView=WebView - - - - ----* SetOpacity of webview. ----@param opacity float ----@return self -function WebView:setOpacityWebView (opacity) end ----* Gets whether this WebView has a back history item.<br> ----* return WebView has a back history item. ----@return boolean -function WebView:canGoBack () end ----* Sets the main page content and base URL.<br> ----* param string The content for the main page.<br> ----* param baseURL The base URL for the content. ----@param string string ----@param baseURL string ----@return self -function WebView:loadHTMLString (string,baseURL) end ----* Goes forward in the history. ----@return self -function WebView:goForward () end ----* Goes back in the history. ----@return self -function WebView:goBack () end ----* Set WebView should support zooming. The default value is false. ----@param scalesPageToFit boolean ----@return self -function WebView:setScalesPageToFit (scalesPageToFit) end ----* Loads the given fileName.<br> ----* param fileName Content fileName. ----@param fileName string ----@return self -function WebView:loadFile (fileName) end ----@overload fun(string:string,boolean:boolean):self ----@overload fun(string:string):self ----@param url string ----@param cleanCachedData boolean ----@return self -function WebView:loadURL (url,cleanCachedData) end ----* Set whether the webview bounces at end of scroll of WebView. ----@param bounce boolean ----@return self -function WebView:setBounces (bounce) end ----* Evaluates JavaScript in the context of the currently displayed page. ----@param js string ----@return self -function WebView:evaluateJS (js) end ----* set the background transparent ----@return self -function WebView:setBackgroundTransparent () end ----* Get the Javascript callback. ----@return function -function WebView:getOnJSCallback () end ----* Gets whether this WebView has a forward history item.<br> ----* return WebView has a forward history item. ----@return boolean -function WebView:canGoForward () end ----* Stops the current load. ----@return self -function WebView:stopLoading () end ----* getOpacity of webview. ----@return float -function WebView:getOpacityWebView () end ----* Reloads the current URL. ----@return self -function WebView:reload () end ----* Set javascript interface scheme.<br> ----* see WebView::setOnJSCallback() ----@param scheme string ----@return self -function WebView:setJavascriptInterfaceScheme (scheme) end ----* Allocates and initializes a WebView. ----@return self -function WebView:create () end ----* ----@return self -function WebView:onEnter () end ----* Toggle visibility of WebView. ----@param visible boolean ----@return self -function WebView:setVisible (visible) end ----* ----@return self -function WebView:onExit () end ----* Default constructor. ----@return self -function WebView:WebView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/library/ccui/Widget.lua b/meta/3rd/Cocos4.0/library/ccui/Widget.lua deleted file mode 100644 index 44c79f9b..00000000 --- a/meta/3rd/Cocos4.0/library/ccui/Widget.lua +++ /dev/null @@ -1,399 +0,0 @@ ----@meta - ----@class ccui.Widget :cc.ProtectedNode@all parent class: ProtectedNode,LayoutParameterProtocol -local Widget={ } -ccui.Widget=Widget - - - - ----* Toggle layout component enable.<br> ----* param enable Layout Component of a widget ----@param enable boolean ----@return self -function Widget:setLayoutComponentEnabled (enable) end ----* Changes the percent that is widget's percent size<br> ----* param percent that is widget's percent size ----@param percent vec2_table ----@return self -function Widget:setSizePercent (percent) end ----* Get the user defined widget size.<br> ----* return User defined size. ----@return size_table -function Widget:getCustomSize () end ----* Gets the left boundary position of this widget in parent's coordination system.<br> ----* return The left boundary position of this widget. ----@return float -function Widget:getLeftBoundary () end ----* Sets whether the widget should be flipped horizontally or not.<br> ----* param flippedX true if the widget should be flipped horizontally, false otherwise. ----@param flippedX boolean ----@return self -function Widget:setFlippedX (flippedX) end ----* Set callback name.<br> ----* param callbackName A string representation of callback name. ----@param callbackName string ----@return self -function Widget:setCallbackName (callbackName) end ----* Gets the inner Renderer node of widget.<br> ----* For example, a button's Virtual Renderer is it's texture renderer.<br> ----* return Node pointer. ----@return cc.Node -function Widget:getVirtualRenderer () end ----* brief Allow widget touch events to propagate to its parents. Set false will disable propagation<br> ----* param isPropagate True to allow propagation, false otherwise.<br> ----* since v3.3 ----@param isPropagate boolean ----@return self -function Widget:setPropagateTouchEvents (isPropagate) end ----* Query whether unify size enable state. <br> ----* return true represent the widget use Unify Size, false represent the widget couldn't use Unify Size ----@return boolean -function Widget:isUnifySizeEnabled () end ----* Get size percent of widget.<br> ----* return Percent size. ----@return vec2_table -function Widget:getSizePercent () end ----* Set the percent(x,y) of the widget in OpenGL coordinates<br> ----* param percent The percent (x,y) of the widget in OpenGL coordinates ----@param percent vec2_table ----@return self -function Widget:setPositionPercent (percent) end ----* Toggle widget swallow touch option.<br> ----* brief Specify widget to swallow touches or not<br> ----* param swallow True to swallow touch, false otherwise.<br> ----* since v3.3 ----@param swallow boolean ----@return self -function Widget:setSwallowTouches (swallow) end ----* Get the content size of widget.<br> ----* warning This API exists mainly for keeping back compatibility.<br> ----* return ----@return size_table -function Widget:getLayoutSize () end ----* Sets whether the widget is highlighted<br> ----* The default value is false, a widget is default to not highlighted<br> ----* param highlight true if the widget is highlighted, false if the widget is not highlighted. ----@param highlight boolean ----@return self -function Widget:setHighlighted (highlight) end ----* Changes the position type of the widget<br> ----* see `PositionType`<br> ----* param type the position type of widget ----@param type int ----@return self -function Widget:setPositionType (type) end ----* Query whether the widget ignores user defined content size or not<br> ----* return True means ignore user defined content size, false otherwise. ----@return boolean -function Widget:isIgnoreContentAdaptWithSize () end ----* Get the virtual renderer's size<br> ----* return Widget virtual renderer size. ----@return size_table -function Widget:getVirtualRendererSize () end ----* Determines if the widget is highlighted<br> ----* return true if the widget is highlighted, false if the widget is not highlighted. ----@return boolean -function Widget:isHighlighted () end ----* Gets LayoutParameter of widget.<br> ----* see LayoutParameter<br> ----* return LayoutParameter ----@return ccui.LayoutParameter -function Widget:getLayoutParameter () end ----* Gets the position type of the widget<br> ----* see `PositionType`<br> ----* return type the position type of widget ----@return int -function Widget:getPositionType () end ----* Gets the top boundary position of this widget in parent's coordination system.<br> ----* return The top boundary position of this widget. ----@return float -function Widget:getTopBoundary () end ----* Toggle whether ignore user defined content size for widget.<br> ----* Set true will ignore user defined content size which means <br> ----* the widget size is always equal to the return value of `getVirtualRendererSize`.<br> ----* param ignore set member variable _ignoreSize to ignore ----@param ignore boolean ----@return self -function Widget:ignoreContentAdaptWithSize (ignore) end ----* When a widget is in a layout, you could call this method to get the next focused widget within a specified direction. <br> ----* If the widget is not in a layout, it will return itself<br> ----* param direction the direction to look for the next focused widget in a layout<br> ----* param current the current focused widget<br> ----* return the next focused widget in a layout ----@param direction int ----@param current ccui.Widget ----@return self -function Widget:findNextFocusedWidget (direction,current) end ----* Determines if the widget is enabled or not.<br> ----* return true if the widget is enabled, false if the widget is disabled. ----@return boolean -function Widget:isEnabled () end ----* Query whether widget is focused or not.<br> ----* return whether the widget is focused or not ----@return boolean -function Widget:isFocused () end ----* Gets the touch began point of widget when widget is selected.<br> ----* return the touch began point. ----@return vec2_table -function Widget:getTouchBeganPosition () end ----* Determines if the widget is touch enabled<br> ----* return true if the widget is touch enabled, false if the widget is touch disabled. ----@return boolean -function Widget:isTouchEnabled () end ----* Query callback name.<br> ----* return The callback name. ----@return string -function Widget:getCallbackName () end ----* Get the action tag.<br> ----* return Action tag. ----@return int -function Widget:getActionTag () end ----* Gets position of widget in world space.<br> ----* return Position of widget in world space. ----@return vec2_table -function Widget:getWorldPosition () end ----* Query widget's focus enable state.<br> ----* return true represent the widget could accept focus, false represent the widget couldn't accept focus ----@return boolean -function Widget:isFocusEnabled () end ----* Toggle widget focus status.<br> ----* param focus pass true to let the widget get focus or pass false to let the widget lose focus ----@param focus boolean ----@return self -function Widget:setFocused (focus) end ----* Set the tag of action.<br> ----* param tag A integer tag value. ----@param tag int ----@return self -function Widget:setActionTag (tag) end ----* Sets whether the widget is touch enabled.<br> ----* The default value is false, a widget is default to touch disabled.<br> ----* param enabled True if the widget is touch enabled, false if the widget is touch disabled. ----@param enabled boolean ----@return self -function Widget:setTouchEnabled (enabled) end ----* Sets whether the widget should be flipped vertically or not.<br> ----* param flippedY true if the widget should be flipped vertically, false otherwise. ----@param flippedY boolean ----@return self -function Widget:setFlippedY (flippedY) end ----* Sets whether the widget is enabled<br> ----* true if the widget is enabled, widget may be touched , false if the widget is disabled, widget cannot be touched.<br> ----* Note: If you want to change the widget's appearance to disabled state, you should also call `setBright(false)`.<br> ----* The default value is true, a widget is default to enable touch.<br> ----* param enabled Set to true to enable touch, false otherwise. ----@param enabled boolean ----@return self -function Widget:setEnabled (enabled) end ----* Gets the right boundary position of this widget in parent's coordination system.<br> ----* return The right boundary position of this widget. ----@return float -function Widget:getRightBoundary () end ----* To set the bright style of widget.<br> ----* see BrightStyle<br> ----* param style BrightStyle::NORMAL means the widget is in normal state, BrightStyle::HIGHLIGHT means the widget is in highlight state. ----@param style int ----@return self -function Widget:setBrightStyle (style) end ----* Sets a LayoutParameter to widget.<br> ----* see LayoutParameter<br> ----* param parameter LayoutParameter pointer ----@param parameter ccui.LayoutParameter ----@return self -function Widget:setLayoutParameter (parameter) end ----* Create a new widget copy of the original one.<br> ----* return A cloned widget copy of original. ----@return self -function Widget:clone () end ----* Allow widget to accept focus.<br> ----* param enable pass true/false to enable/disable the focus ability of a widget ----@param enable boolean ----@return self -function Widget:setFocusEnabled (enable) end ----* Gets the bottom boundary position of this widget in parent's coordination system.<br> ----* return The bottom boundary position of this widget. ----@return float -function Widget:getBottomBoundary () end ----* Determines if the widget is bright<br> ----* return true if the widget is bright, false if the widget is dark. ----@return boolean -function Widget:isBright () end ----* Dispatch a EventFocus through a EventDispatcher<br> ----* param widgetLoseFocus The widget which lose its focus<br> ----* param widgetGetFocus he widget which get its focus ----@param widgetLoseFocus ccui.Widget ----@param widgetGetFocus ccui.Widget ----@return self -function Widget:dispatchFocusEvent (widgetLoseFocus,widgetGetFocus) end ----* Toggle use unify size.<br> ----* param enable True to use unify size, false otherwise. ----@param enable boolean ----@return self -function Widget:setUnifySizeEnabled (enable) end ----* Return whether the widget is propagate touch events to its parents or not<br> ----* return whether touch event propagation is allowed or not.<br> ----* since v3.3 ----@return boolean -function Widget:isPropagateTouchEvents () end ----* Checks a point is in widget's content space.<br> ----* This function is used for determining touch area of widget.<br> ----* param pt The point in `Vec2`.<br> ----* param camera The camera look at widget, used to convert GL screen point to near/far plane.<br> ----* param p Point to a Vec3 for store the intersect point, if don't need them set to nullptr.<br> ----* return true if the point is in widget's content space, false otherwise. ----@param pt vec2_table ----@param camera cc.Camera ----@param p vec3_table ----@return boolean -function Widget:hitTest (pt,camera,p) end ----* Query whether layout component is enabled or not. <br> ----* return true represent the widget use Layout Component, false represent the widget couldn't use Layout Component. ----@return boolean -function Widget:isLayoutComponentEnabled () end ----* when a widget calls this method, it will get focus immediately. ----@return self -function Widget:requestFocus () end ----@overload fun(size_table:size_table):self ----@overload fun():self ----@param parentSize size_table ----@return self -function Widget:updateSizeAndPosition (parentSize) end ----* This method is called when a focus change event happens<br> ----* param widgetLostFocus The widget which lose its focus<br> ----* param widgetGetFocus The widget which get its focus ----@param widgetLostFocus ccui.Widget ----@param widgetGetFocus ccui.Widget ----@return self -function Widget:onFocusChange (widgetLostFocus,widgetGetFocus) end ----* ----@return vec2_table -function Widget:getTouchMovePosition () end ----* Gets the size type of widget.<br> ----* see `SizeType` ----@return int -function Widget:getSizeType () end ----* Query callback type.<br> ----* return Callback type string. ----@return string -function Widget:getCallbackType () end ----* ----@return vec2_table -function Widget:getTouchEndPosition () end ----* Gets the percent (x,y) of the widget in OpenGL coordinates<br> ----* see setPosition(const Vec2&)<br> ----* return The percent (x,y) of the widget in OpenGL coordinates ----@return vec2_table -function Widget:getPositionPercent () end ----* brief Propagate touch events to its parents ----@param event int ----@param sender ccui.Widget ----@param touch cc.Touch ----@return self -function Widget:propagateTouchEvent (event,sender,touch) end ----* Returns the flag which indicates whether the widget is flipped horizontally or not.<br> ----* It not only flips the texture of the widget, but also the texture of the widget's children.<br> ----* Also, flipping relies on widget's anchor point.<br> ----* Internally, it just use setScaleX(-1) to flip the widget.<br> ----* return true if the widget is flipped horizontally, false otherwise. ----@return boolean -function Widget:isFlippedX () end ----* Return the flag which indicates whether the widget is flipped vertically or not.<br> ----* It not only flips the texture of the widget, but also the texture of the widget's children.<br> ----* Also, flipping relies on widget's anchor point.<br> ----* Internally, it just use setScaleY(-1) to flip the widget.<br> ----* return true if the widget is flipped vertically, false otherwise. ----@return boolean -function Widget:isFlippedY () end ----* Checks a point if in parent's area.<br> ----* param pt A point in `Vec2`.<br> ----* return true if the point is in parent's area, false otherwise. ----@param pt vec2_table ----@return boolean -function Widget:isClippingParentContainsPoint (pt) end ----* Changes the size type of widget.<br> ----* see `SizeType`<br> ----* param type that is widget's size type ----@param type int ----@return self -function Widget:setSizeType (type) end ----* ----@param event int ----@param sender ccui.Widget ----@param touch cc.Touch ----@return self -function Widget:interceptTouchEvent (event,sender,touch) end ----* Sets whether the widget is bright<br> ----* The default value is true, a widget is default to bright<br> ----* param bright true if the widget is bright, false if the widget is dark. ----@param bright boolean ----@return self -function Widget:setBright (bright) end ----* Set callback type.<br> ----* param callbackType A string representation of callback type. ----@param callbackType string ----@return self -function Widget:setCallbackType (callbackType) end ----* Return whether the widget is swallowing touch or not<br> ----* return Whether touch is swallowed.<br> ----* since v3.3 ----@return boolean -function Widget:isSwallowTouches () end ----* ----@param enable boolean ----@return self -function Widget:enableDpadNavigation (enable) end ----* Return a current focused widget in your UI scene.<br> ----* No matter what widget object you call this method on , it will return you the exact one focused widget. ----@return self -function Widget:getCurrentFocusedWidget () end ----* Create and return a empty Widget instance pointer. ----@return self -function Widget:create () end ----* ----@param scaleY float ----@return self -function Widget:setScaleY (scaleY) end ----* ----@param scaleX float ----@return self -function Widget:setScaleX (scaleX) end ----* ----@return float -function Widget:getScaleY () end ----* ----@return float -function Widget:getScaleX () end ----* Returns the string representation of widget class name<br> ----* return get the class description. ----@return string -function Widget:getDescription () end ----@overload fun(float:float,float:float):self ----@overload fun(float:float):self ----@param scalex float ----@param scaley float ----@return self -function Widget:setScale (scalex,scaley) end ----* ----@return boolean -function Widget:init () end ----* Changes the position (x,y) of the widget in OpenGL coordinates<br> ----* Usually we use p(x,y) to compose a Vec2 object.<br> ----* The original point (0,0) is at the left-bottom corner of screen.<br> ----* param pos The position (x,y) of the widget in OpenGL coordinates ----@param pos vec2_table ----@return self -function Widget:setPosition (pos) end ----* Changes the size that is widget's size<br> ----* param contentSize A content size in `Size`. ----@param contentSize size_table ----@return self -function Widget:setContentSize (contentSize) end ----* ----@return float -function Widget:getScale () end ----* Default constructor<br> ----* js ctor<br> ----* lua new ----@return self -function Widget:Widget () end
\ No newline at end of file |