A CCMenuItemFont Helper class that creates a CCMenuItemLabel class with a Label
Class CCMenuItemFont
#include <Geode/cocos/menu_nodes/CCMenuItem.h>
classCCMenuItemFont:publiccocos2d::CCMenuItemLabel{ ... }
Examples0
Public static methods6
staticuintfontSize()
get default font size
staticvoidsetFontName(charconst*name)
set the default font name
staticcharconst*fontName()
get the default font name
staticcocos2d::CCMenuItemFont*create(charconst*value)
creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
staticcocos2d::CCMenuItemFont*create(charconst*value,cocos2d::CCObject*target,cocos2d::SEL_MenuHandlerselector)
creates a menu item from a string with a target/selector
Public member functions5
boolinitWithString(charconst*value,cocos2d::CCObject*target,cocos2d::SEL_MenuHandlerselector)
initializes a menu item from a string with a target/selector
voidsetFontSizeObj(uints)
set font size c++ can not overload static and non-static member functions with the same parameter types so change the name to setFontSizeObj
uintfontSizeObj()
get font size
voidsetFontNameObj(charconst*name)
set the font name c++ can not overload static and non-static member functions with the same parameter types so change the name to setFontNameObj
charconst*fontNameObj()
No description provided
Fields2
uintm_uFontSize;
No description provided
gd::stringm_strFontName;
No description provided
Protected member functions1
voidrecreateLabel()
No description provided