-------------------------------- -- @module AbstractCheckButton -- @extend Widget -- @parent_module ccui -------------------------------- -- -- @function [parent=#AbstractCheckButton] getCrossDisabledFile -- @param self -- @return ResourceData#ResourceData ret (return value: cc.ResourceData) -------------------------------- -- -- @function [parent=#AbstractCheckButton] getBackDisabledFile -- @param self -- @return ResourceData#ResourceData ret (return value: cc.ResourceData) -------------------------------- -- Load background selected state texture for check button.
-- param backGroundSelected The background selected state image name.
-- param texType @see `Widget::TextureResType` -- @function [parent=#AbstractCheckButton] loadTextureBackGroundSelected -- @param self -- @param #string backGroundSelected -- @param #int texType -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- Load background disabled state texture for checkbox.
-- param backGroundDisabled The background disabled state texture name.
-- param texType @see `Widget::TextureResType` -- @function [parent=#AbstractCheckButton] loadTextureBackGroundDisabled -- @param self -- @param #string backGroundDisabled -- @param #int texType -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- -- @function [parent=#AbstractCheckButton] getCrossNormalFile -- @param self -- @return ResourceData#ResourceData ret (return value: cc.ResourceData) -------------------------------- -- Change CheckBox state.
-- Set to true will cause the CheckBox's state to "selected", false otherwise.
-- param selected Set to true will change CheckBox to selected state, false otherwise. -- @function [parent=#AbstractCheckButton] setSelected -- @param self -- @param #bool selected -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- -- @function [parent=#AbstractCheckButton] getBackPressedFile -- @param self -- @return ResourceData#ResourceData ret (return value: cc.ResourceData) -------------------------------- -- brief Return the sprite instance of front cross when disabled
-- return the sprite instance of front cross when disabled -- @function [parent=#AbstractCheckButton] getRendererFrontCrossDisabled -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- brief Return the sprite instance of background
-- return the sprite instance of background. -- @function [parent=#AbstractCheckButton] getRendererBackground -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- Load cross texture for check button.
-- param crossTextureName The cross texture name.
-- param texType @see `Widget::TextureResType` -- @function [parent=#AbstractCheckButton] loadTextureFrontCross -- @param self -- @param #string crossTextureName -- @param #int texType -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- brief Return the sprite instance of background when disabled
-- return the sprite instance of background when disabled -- @function [parent=#AbstractCheckButton] getRendererBackgroundDisabled -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- Query whether CheckBox is selected or not.
-- return true means "selected", false otherwise. -- @function [parent=#AbstractCheckButton] isSelected -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#AbstractCheckButton] init -- @param self -- @param #string backGround -- @param #string backGroundSeleted -- @param #string cross -- @param #string backGroundDisabled -- @param #string frontCrossDisabled -- @param #int texType -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#AbstractCheckButton] getBackNormalFile -- @param self -- @return ResourceData#ResourceData ret (return value: cc.ResourceData) -------------------------------- -- Load all textures for initializing a check button.
-- param background The background image name.
-- param backgroundSelected The background selected image name.
-- param cross The cross image name.
-- param backgroundDisabled The background disabled state texture.
-- param frontCrossDisabled The front cross disabled state image name.
-- param texType @see `Widget::TextureResType` -- @function [parent=#AbstractCheckButton] loadTextures -- @param self -- @param #string background -- @param #string backgroundSelected -- @param #string cross -- @param #string backgroundDisabled -- @param #string frontCrossDisabled -- @param #int texType -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- brief Return a zoom scale
-- return A zoom scale of Checkbox.
-- since v3.3 -- @function [parent=#AbstractCheckButton] getZoomScale -- @param self -- @return float#float ret (return value: float) -------------------------------- -- brief Return the sprite instance of front cross
-- return the sprite instance of front cross -- @function [parent=#AbstractCheckButton] getRendererFrontCross -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- brief Return the sprite instance of background when selected
-- return the sprite instance of background when selected -- @function [parent=#AbstractCheckButton] getRendererBackgroundSelected -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- Load background texture for check button.
-- param backGround The background image name.
-- param type @see `Widget::TextureResType` -- @function [parent=#AbstractCheckButton] loadTextureBackGround -- @param self -- @param #string backGround -- @param #int type -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- When user pressed the CheckBox, the button will zoom to a scale.
-- The final scale of the CheckBox equals (CheckBox original scale + _zoomScale)
-- since v3.3 -- @function [parent=#AbstractCheckButton] setZoomScale -- @param self -- @param #float scale -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- Load frontcross disabled texture for checkbox.
-- param frontCrossDisabled The front cross disabled state texture name.
-- param texType @see `Widget::TextureResType` -- @function [parent=#AbstractCheckButton] loadTextureFrontCrossDisabled -- @param self -- @param #string frontCrossDisabled -- @param #int texType -- @return AbstractCheckButton#AbstractCheckButton self (return value: ccui.AbstractCheckButton) -------------------------------- -- -- @function [parent=#AbstractCheckButton] getVirtualRenderer -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- -- @function [parent=#AbstractCheckButton] init -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#AbstractCheckButton] getVirtualRendererSize -- @param self -- @return size_table#size_table ret (return value: size_table) return nil