Home
last modified time | relevance | path

Searched refs:RSTextAlign (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_prop_convertor.cpp76 RSTextAlign ToRSTextAlign(const TextAlign& align) in ToRSTextAlign()
79 RSTextAlign textAlign = RSTextAlign::START; in ToRSTextAlign()
82 textAlign = RSTextAlign::LEFT; in ToRSTextAlign()
85 textAlign = RSTextAlign::RIGHT; in ToRSTextAlign()
88 textAlign = RSTextAlign::CENTER; in ToRSTextAlign()
91 textAlign = RSTextAlign::JUSTIFY; in ToRSTextAlign()
94 textAlign = RSTextAlign::START; in ToRSTextAlign()
97 textAlign = RSTextAlign::END; in ToRSTextAlign()
100 textAlign = RSTextAlign::START; in ToRSTextAlign()
H A Ddrawing_prop_convertor.h33 RSTextAlign ToRSTextAlign(const TextAlign& align);
H A Ddrawing.h151 using RSTextAlign = rosen::TextAlign; variable
164 using RSTextAlign = Rosen::TextAlign; variable
H A Ddrawing_mock.h89 using RSTextAlign = Testing::TextAlign; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/
H A Ddrawing_prop_convertor_test_ng.cpp231 RSTextAlign retTextAlign = ToRSTextAlign(testTextAlign);
232 EXPECT_EQ(retTextAlign, RSTextAlign::LEFT);
587 RSTextAlign retTextAlign = ToRSTextAlign(testTextAlign);
588 EXPECT_EQ(retTextAlign, RSTextAlign::START);
589 EXPECT_EQ(ToRSTextAlign(TextAlign::LEFT), RSTextAlign::LEFT);
590 EXPECT_EQ(ToRSTextAlign(TextAlign::RIGHT), RSTextAlign::RIGHT);
591 EXPECT_EQ(ToRSTextAlign(TextAlign::JUSTIFY), RSTextAlign::JUSTIFY);
592 EXPECT_EQ(ToRSTextAlign(TextAlign::END), RSTextAlign::END);
593 EXPECT_EQ(ToRSTextAlign(TextAlign::CENTER), RSTextAlign::CENTER);
594 EXPECT_EQ(ToRSTextAlign(TextAlign::START), RSTextAlign::START);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/canvas/
H A Dcanvas_custom_paint_method_test_ng.cpp1149 RSTextAlign align = RSTextAlign::START;
1152 EXPECT_EQ(result, RSTextAlign::LEFT);
1154 align = RSTextAlign::END;
1157 EXPECT_EQ(result, RSTextAlign::RIGHT);
1159 align = RSTextAlign::JUSTIFY;
1161 EXPECT_EQ(result, RSTextAlign::JUSTIFY);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcustom_paint_paint_method.h360 RSTextAlign GetEffectiveAlign(RSTextAlign align, RSTextDirection direction) const;
H A Dcustom_paint_paint_method.cpp1401 RSTextAlign CustomPaintPaintMethod::GetEffectiveAlign(RSTextAlign align, RSTextDirection direction)… in GetEffectiveAlign()
1403 if (align == RSTextAlign::START) { in GetEffectiveAlign()
1404 return (direction == RSTextDirection::LTR) ? RSTextAlign::LEFT : RSTextAlign::RIGHT; in GetEffectiveAlign()
1405 } else if (align == RSTextAlign::END) { in GetEffectiveAlign()
1406 return (direction == RSTextDirection::LTR) ? RSTextAlign::RIGHT : RSTextAlign::LEFT; in GetEffectiveAlign()