summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua
blob: 4b0f3815e85536eeb7aa3771b6b53eed17dd55b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---@meta

---@class cc.MenuItemImage :cc.MenuItemSprite
local MenuItemImage={ }
cc.MenuItemImage=MenuItemImage




---*  Sets the sprite frame for the disabled image. 
---@param frame cc.SpriteFrame
---@return self
function MenuItemImage:setDisabledSpriteFrame (frame) end
---*  Sets the sprite frame for the selected image. 
---@param frame cc.SpriteFrame
---@return self
function MenuItemImage:setSelectedSpriteFrame (frame) end
---*  Sets the sprite frame for the normal image. 
---@param frame cc.SpriteFrame
---@return self
function MenuItemImage:setNormalSpriteFrame (frame) end
---* 
---@return boolean
function MenuItemImage:init () end
---*  Initializes a menu item with a normal, selected and disabled image with a callable object. 
---@param normalImage string
---@param selectedImage string
---@param disabledImage string
---@param callback function
---@return boolean
function MenuItemImage:initWithNormalImage (normalImage,selectedImage,disabledImage,callback) end
---* js ctor
---@return self
function MenuItemImage:MenuItemImage () end