-------------------------------- -- @module Button -- @extend Widget -- @parent_module ccui -------------------------------- -- -- @function [parent=#Button] getTitleText -- @param self -- @return string#string ret (return value: string) -------------------------------- -- -- @function [parent=#Button] setTitleFontSize -- @param self -- @param #float size -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Sets if button is using scale9 renderer.
-- param true that using scale9 renderer, false otherwise. -- @function [parent=#Button] setScale9Enabled -- @param self -- @param #bool able -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Return the inner title renderer of Button
-- since v3.3 -- @function [parent=#Button] getTitleRenderer -- @param self -- @return Label#Label ret (return value: cc.Label) -------------------------------- -- brief Return a zoom scale
-- since v3.3 -- @function [parent=#Button] getZoomScale -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function [parent=#Button] getCapInsetsDisabledRenderer -- @param self -- @return rect_table#rect_table ret (return value: rect_table) -------------------------------- -- -- @function [parent=#Button] setTitleColor -- @param self -- @param #color3b_table color -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Sets capinsets for button, if button is using scale9 renderer.
-- param capInsets capinsets for button -- @function [parent=#Button] setCapInsetsDisabledRenderer -- @param self -- @param #rect_table capInsets -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Sets capinsets for button, if button is using scale9 renderer.
-- param capInsets capinsets for button -- @function [parent=#Button] setCapInsets -- @param self -- @param #rect_table capInsets -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Load dark state texture for button.
-- param disabled dark state texture.
-- param texType @see TextureResType -- @function [parent=#Button] loadTextureDisabled -- @param self -- @param #string disabled -- @param #int texType -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- -- @function [parent=#Button] setTitleText -- @param self -- @param #string text -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Sets capinsets for button, if button is using scale9 renderer.
-- param capInsets capinsets for button -- @function [parent=#Button] setCapInsetsNormalRenderer -- @param self -- @param #rect_table capInsets -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Load selected state texture for button.
-- param selected selected state texture.
-- param texType @see TextureResType -- @function [parent=#Button] loadTexturePressed -- @param self -- @param #string selected -- @param #int texType -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- -- @function [parent=#Button] setTitleFontName -- @param self -- @param #string fontName -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- -- @function [parent=#Button] getCapInsetsNormalRenderer -- @param self -- @return rect_table#rect_table ret (return value: rect_table) -------------------------------- -- -- @function [parent=#Button] getCapInsetsPressedRenderer -- @param self -- @return rect_table#rect_table ret (return value: rect_table) -------------------------------- -- Load textures for button.
-- param normal normal state texture name.
-- param selected selected state texture name.
-- param disabled disabled state texture name.
-- param texType @see TextureResType -- @function [parent=#Button] loadTextures -- @param self -- @param #string normal -- @param #string selected -- @param #string disabled -- @param #int texType -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- -- @function [parent=#Button] isScale9Enabled -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- Load normal state texture for button.
-- param normal normal state texture.
-- param texType @see TextureResType -- @function [parent=#Button] loadTextureNormal -- @param self -- @param #string normal -- @param #int texType -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Sets capinsets for button, if button is using scale9 renderer.
-- param capInsets capinsets for button -- @function [parent=#Button] setCapInsetsPressedRenderer -- @param self -- @param #rect_table capInsets -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- -- @function [parent=#Button] getTitleFontSize -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function [parent=#Button] getTitleFontName -- @param self -- @return string#string ret (return value: string) -------------------------------- -- -- @function [parent=#Button] getTitleColor -- @param self -- @return color3b_table#color3b_table ret (return value: color3b_table) -------------------------------- -- Changes if button can be clicked zoom effect.
-- param true that can be clicked zoom effect, false otherwise. -- @function [parent=#Button] setPressedActionEnabled -- @param self -- @param #bool enabled -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- When user pressed the button, the button will zoom to a scale.
-- The final scale of the button equals (button original scale + _zoomScale)
-- since v3.3 -- @function [parent=#Button] setZoomScale -- @param self -- @param #float scale -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- @overload self, string, string, string, int -- @overload self -- @function [parent=#Button] create -- @param self -- @param #string normalImage -- @param #string selectedImage -- @param #string disableImage -- @param #int texType -- @return Button#Button ret (return value: ccui.Button) -------------------------------- -- -- @function [parent=#Button] createInstance -- @param self -- @return Ref#Ref ret (return value: cc.Ref) -------------------------------- -- -- @function [parent=#Button] getVirtualRenderer -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- Returns the "class name" of widget. -- @function [parent=#Button] getDescription -- @param self -- @return string#string ret (return value: string) -------------------------------- -- -- @function [parent=#Button] getVirtualRendererSize -- @param self -- @return size_table#size_table ret (return value: size_table) -------------------------------- -- -- @function [parent=#Button] ignoreContentAdaptWithSize -- @param self -- @param #bool ignore -- @return Button#Button self (return value: ccui.Button) -------------------------------- -- Default constructor -- @function [parent=#Button] Button -- @param self -- @return Button#Button self (return value: ccui.Button) return nil