2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MenuItemFont
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend MenuItemLabel
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Returns the name of the Font.<br>
|
2015-03-31 12:01:57 +08:00
|
|
|
-- js getFontNameObj<br>
|
|
|
|
-- js NA
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemFont] getFontNameObj
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
-- Set the font name .<br>
|
2015-03-26 10:44:28 +08:00
|
|
|
-- c++ can not overload static and non-static member functions with the same parameter types.<br>
|
2015-05-05 11:31:53 +08:00
|
|
|
-- so change the name to setFontNameObj.<br>
|
|
|
|
-- js setFontName<br>
|
2015-03-31 12:01:57 +08:00
|
|
|
-- js NA
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @function [parent=#MenuItemFont] setFontNameObj
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @param #string name
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
-- Initializes a menu item from a string with a target/selector.
|
|
|
|
-- @function [parent=#MenuItemFont] initWithString
|
|
|
|
-- @param self
|
|
|
|
-- @param #string value
|
|
|
|
-- @param #function callback
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- get font size .<br>
|
|
|
|
-- js getFontSize<br>
|
|
|
|
-- js NA
|
|
|
|
-- @function [parent=#MenuItemFont] getFontSizeObj
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Set font size.<br>
|
2015-03-26 10:44:28 +08:00
|
|
|
-- c++ can not overload static and non-static member functions with the same parameter types.<br>
|
2015-05-05 11:31:53 +08:00
|
|
|
-- so change the name to setFontSizeObj.<br>
|
|
|
|
-- js setFontSize<br>
|
2015-03-31 12:01:57 +08:00
|
|
|
-- js NA
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @function [parent=#MenuItemFont] setFontSizeObj
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @param #int size
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Set the default font name.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemFont] setFontName
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string name
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Get default font size.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemFont] getFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Get the default font name.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemFont] getFontName
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Set default font size.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemFont] setFontSize
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int size
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#MenuItemFont] MenuItemFont
|
|
|
|
-- @param self
|
|
|
|
-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|