Class CCMenuItemFont

#include <Geode/cocos/menu_nodes/CCMenuItem.h>
classCCMenuItemFont:publiccocos2d::CCMenuItemLabel{ ... }

A CCMenuItemFont Helper class that creates a CCMenuItemLabel class with a Label

Examples0
Public static methods6
staticvoidsetFontSize()

set default font size

staticuintfontSize()

get default font size

staticvoidsetFontName()

set the default font name

staticcharconst*fontName()

get the default font name

staticcocos2d::CCMenuItemFont*create()

creates a menu item from a string without target/selector. To be used with CCMenuItemToggle

staticcocos2d::CCMenuItemFont*create(,,)

creates a menu item from a string with a target/selector

Public member functions5
boolinitWithString(,,)

initializes a menu item from a string with a target/selector

voidsetFontSizeObj()

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()

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
Fields0
Protected member functions1
voidrecreateLabel()
No description provided
Protected fields2
uintm_uFontSize
;
No description provided
gd::stringm_strFontName
;
No description provided