diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
commit | 8fefb8f3e100976235dc83d6ae3785952d11c710 (patch) | |
tree | 459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/ccui.RadioButtonGroup.lua | |
parent | b6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff) | |
download | lua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip |
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/ccui.RadioButtonGroup.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/ccui.RadioButtonGroup.lua | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/ccui.RadioButtonGroup.lua b/meta/3rd/Cocos4.0/library/ccui.RadioButtonGroup.lua new file mode 100644 index 00000000..2dab4ebc --- /dev/null +++ b/meta/3rd/Cocos4.0/library/ccui.RadioButtonGroup.lua @@ -0,0 +1,73 @@ +---@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 |