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

Method setHorizontalAlignment

core/ui/UIRichText.cpp:1392–1399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390}
1391
1392void RichText::setHorizontalAlignment(ax::ui::RichText::HorizontalAlignment a)
1393{
1394 if (static_cast<RichText::HorizontalAlignment>(_defaults.at(KEY_HORIZONTAL_ALIGNMENT).asInt()) != a)
1395 {
1396 _defaults[KEY_HORIZONTAL_ALIGNMENT] = static_cast<int>(a);
1397 _formatTextDirty = true;
1398 }
1399}
1400
1401RichText::VerticalAlignment RichText::getVerticalAlignment() const
1402{

Callers 10

refreshLabelAlignmentMethod · 0.80
initMethod · 0.80
LabelTTFEmojiMethod · 0.80
setAlignmentLeftMethod · 0.80
setAlignmentCenterMethod · 0.80
setAlignmentRightMethod · 0.80

Calls 2

asIntMethod · 0.80
atMethod · 0.45

Tested by 6

initMethod · 0.64
LabelTTFEmojiMethod · 0.64
setAlignmentLeftMethod · 0.64
setAlignmentCenterMethod · 0.64
setAlignmentRightMethod · 0.64