MCPcopy Create free account
hub / github.com/axmolengine/axmol / setFontSizeObj

Method setFontSizeObj

core/2d/MenuItem.cpp:384–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void MenuItemFont::setFontSizeObj(int s)
385{
386 _fontSize = s;
387 dynamic_cast<Label*>(_label)->setSystemFontSize(_fontSize);
388 this->setContentSize(dynamic_cast<Label*>(_label)->getContentSize());
389}
390
391int MenuItemFont::getFontSizeObj() const
392{

Callers 12

MenuLayerMainMenuMethod · 0.80
onEnterMethod · 0.80
Issue4129Method · 0.80
VRTest1Method · 0.80
onEnterMethod · 0.80
LabelItalicsMethod · 0.80
LabelBoldMethod · 0.80
LabelUnderlineMethod · 0.80
LabelStrikethroughMethod · 0.80

Calls 3

setSystemFontSizeMethod · 0.80
setContentSizeMethod · 0.45
getContentSizeMethod · 0.45

Tested by 12

MenuLayerMainMenuMethod · 0.64
onEnterMethod · 0.64
Issue4129Method · 0.64
VRTest1Method · 0.64
onEnterMethod · 0.64
LabelItalicsMethod · 0.64
LabelBoldMethod · 0.64
LabelUnderlineMethod · 0.64
LabelStrikethroughMethod · 0.64