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

Method setVerticalAlignment

core/ui/UIRichText.cpp:1406–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1404}
1405
1406void RichText::setVerticalAlignment(ax::ui::RichText::VerticalAlignment a)
1407{
1408 if (static_cast<RichText::VerticalAlignment>(_defaults.at(KEY_VERTICAL_ALIGNMENT).asInt()) != a)
1409 {
1410 _defaults[KEY_VERTICAL_ALIGNMENT] = static_cast<int>(a);
1411 _formatTextDirty = true;
1412 }
1413}
1414
1415void RichText::setFontColor(std::string_view color)
1416{

Callers 15

placeInactiveLabelsMethod · 0.80
LabelTTFEmojiMethod · 0.80
setAlignmentTopMethod · 0.80
setAlignmentMiddleMethod · 0.80
setAlignmentBottomMethod · 0.80
LabelWrapByWordTestMethod · 0.80
LabelWrapByCharTestMethod · 0.80
LabelShrinkByWordTestMethod · 0.80

Calls 2

asIntMethod · 0.80
atMethod · 0.45

Tested by 14

LabelTTFEmojiMethod · 0.64
setAlignmentTopMethod · 0.64
setAlignmentMiddleMethod · 0.64
setAlignmentBottomMethod · 0.64
LabelWrapByWordTestMethod · 0.64
LabelWrapByCharTestMethod · 0.64
LabelShrinkByWordTestMethod · 0.64
LabelShrinkByCharTestMethod · 0.64
LabelResizeTestMethod · 0.64
LabelToggleTypeTestMethod · 0.64