Home
last modified time | relevance | path

Searched refs:textAlign (Results 1 - 25 of 88) sorted by relevance

1234

/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/
H A Dparagraph_style_test.cpp47 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::START; in HWTEST_F()
51 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::END; in HWTEST_F()
55 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::JUSTIFY; in HWTEST_F()
61 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::START; in HWTEST_F()
65 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::END; in HWTEST_F()
69 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::JUSTIFY; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dspan_model_adapter.cpp115 TextAlign textAlign; in CreateParagraphStyle() local
116 switch (typoStyle->textAlign) { in CreateParagraphStyle()
118 textAlign = TextAlign::LEFT; in CreateParagraphStyle()
121 textAlign = TextAlign::RIGHT; in CreateParagraphStyle()
124 textAlign = TextAlign::CENTER; in CreateParagraphStyle()
127 textAlign = TextAlign::JUSTIFY; in CreateParagraphStyle()
130 textAlign = TextAlign::START; in CreateParagraphStyle()
133 textAlign = TextAlign::END; in CreateParagraphStyle()
136 textAlign = TextAlign::START; in CreateParagraphStyle()
141 .align = textAlign, in CreateParagraphStyle()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/
H A Dparagraph_style.cpp40 if (textAlign == TextAlign::START) { in GetEquivalentAlign()
42 } else if (textAlign == TextAlign::END) { in GetEquivalentAlign()
45 return textAlign; in GetEquivalentAlign()
H A Dparagraph_style.h74 TextAlign textAlign = TextAlign::START; member in OHOS::Rosen::SPText::BreakStrategy::ParagraphStyle
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/
H A Dtypography_style.cpp41 if (textAlign == TextAlign::START) { in GetEffectiveAlign()
43 } else if (textAlign == TextAlign::END) { in GetEffectiveAlign()
46 return textAlign; in GetEffectiveAlign()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_prop_convertor.cpp79 RSTextAlign textAlign = RSTextAlign::START; in ToRSTextAlign() local
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()
103 return textAlign; in ToRSTextAlign()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dtext_tdd_exception_test.cpp65 * @tc.expected: step5. update textAlign with exception value "exception" in ComponentTextStyleSetExceptionTest007()
68 const char* textAlign = "textAlign"; in ComponentTextStyleSetExceptionTest007() local
70 UpdateCharAttributeOrStyleValue(textComponent, textAlign, expectALignException, false); in ComponentTextStyleSetExceptionTest007()
83 * @tc.desc: Verify text color/textOverFlow/textAlign/letterSpace exception value.
H A Dtext_tdd_test.cpp274 const char* textAlign = "textAlign"; in ComponentTextStyleSetAlignTest005() local
275 jerry_value_t textKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>(textAlign)); in ComponentTextStyleSetAlignTest005()
296 UpdateCharAttributeOrStyleValue(textComponent, textAlign, expectRightAlign, false); in ComponentTextStyleSetAlignTest005()
308 UpdateCharAttributeOrStyleValue(textComponent, textAlign, expectCenterAlign, false); in ComponentTextStyleSetAlignTest005()
/foundation/arkui/ace_engine/frameworks/core/components/marquee/
H A Drender_marquee.cpp378 auto textAlign = textStyle_.GetTextAlign(); in GetTextPosition() local
380 if (textAlign == TextAlign::START) { in GetTextPosition()
381 textAlign = RenderNode::GetTextDirection() == TextDirection::LTR ? TextAlign::LEFT : TextAlign::RIGHT; in GetTextPosition()
383 if (textAlign == TextAlign::END) { in GetTextPosition()
384 textAlign = RenderNode::GetTextDirection() == TextDirection::LTR ? TextAlign::RIGHT : TextAlign::LEFT; in GetTextPosition()
388 if (textAlign == TextAlign::CENTER) { in GetTextPosition()
390 } else if (textAlign == TextAlign::RIGHT) { in GetTextPosition()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dpaint_state.h180 PaintState(TextAlign textAlign, TextDirection textDirection, const Dimension& size) in PaintState() argument
181 : textAlign_(textAlign), textDirection_(textDirection) in PaintState()
223 void SetTextAlign(TextAlign textAlign) in SetTextAlign() argument
225 textAlign_ = textAlign; in SetTextAlign()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_text_ffi.cpp94 void FfiOHOSAceFrameworkTextSetTextAlign(int32_t textAlign) in FfiOHOSAceFrameworkTextSetTextAlign() argument
96 if (!Utils::CheckParamsValid(textAlign, TEXT_ALIGNS.size())) { in FfiOHOSAceFrameworkTextSetTextAlign()
100 TextModel::GetInstance()->SetTextAlign(TEXT_ALIGNS[textAlign]); in FfiOHOSAceFrameworkTextSetTextAlign()
H A Dcj_text_ffi.h36 CJ_EXPORT void FfiOHOSAceFrameworkTextSetTextAlign(int32_t textAlign);
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/
H A Dtypography_style.h67 TextAlign textAlign = TextAlign::START; member
100 this->textAlign == rhs.textAlign && in operator ==()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/measure/
H A Dcj_measure_ffi.h40 int32_t textAlign; member
H A Dcj_measure_ffi.cpp62 measureContext.textAlign = TEXT_ALIGNS[context.textAlign]; in FromCJCreateMeasureContext()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_typography_style.h45 TextAlign textAlign = TextAlign::START; member in OHOS::Ace::Testing::TestingTypographyStyle
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIAttr2/
H A Dindex.js59 ctx.textAlign = "abcd";
/foundation/arkui/ace_engine/frameworks/core/components/font/
H A Dconstants_converter.h86 txt::TextAlign ConvertTxtTextAlign(TextAlign textAlign);
117 OHOS::Rosen::TextAlign ConvertTxtTextAlign(TextAlign textAlign);
/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Drosen_render_text.cpp470 const auto& textAlign = textStyle_.GetTextAlign(); in UpdateParagraph() local
471 if (textAlign == TextAlign::START || textAlign == TextAlign::END) { in UpdateParagraph()
489 style.text_align = ConvertTxtTextAlign(textAlign); in UpdateParagraph()
493 style.textAlign = ConvertTxtTextAlign(textAlign); in UpdateParagraph()
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dmeasure_util.h40 TextAlign textAlign = TextAlign::START; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Dselection_info.h137 int32_t textAlign = 0; member
235 int32_t textAlign = 0; member
H A Drich_editor_model.h176 textAlign.reset(); in Reset()
181 std::optional<TextAlign> textAlign; member
189 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, textAlign); in ToString()
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js575 Text.textAlign(TextAlign.Center);
606 Text.textAlign(this.textAlignment);
1512 this.__textAlign = new ObservedPropertySimplePU(TextAlign.Start, this, 'textAlign');
1520 this.textAlign = getTextAlign(x25, this.content, `${BODY_L * this.fontSizeScale}vp`);
1567 if (q25.textAlign !== undefined) {
1568 this.textAlign = q25.textAlign;
1631 get textAlign() {
1635 set textAlign(k25) {
1688 Text.textAlign(thi
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_pattern.cpp1379 TextAlign textAlign = static_cast<TextAlign>(theme->GetMenuItemContentAlign()); in UpdateText() local
1381 if (textAlign == TextAlign::LEFT) { in UpdateText()
1382 textAlign = TextAlign::RIGHT; in UpdateText()
1383 } else if (textAlign == TextAlign::RIGHT) { in UpdateText()
1384 textAlign = TextAlign::LEFT; in UpdateText()
1385 } else if (textAlign == TextAlign::START) { in UpdateText()
1386 textAlign = TextAlign::END; in UpdateText()
1387 } else if (textAlign == TextAlign::END) { in UpdateText()
1388 textAlign = TextAlign::START; in UpdateText()
1390 textProperty->UpdateTextAlign(textAlign); in UpdateText()
[all...]
/foundation/arkui/ace_engine/interfaces/napi/kits/measure/
H A Djs_measure.cpp269 napi_get_named_property(env, argv, "textAlign", &contextParamMap["textAlignNApi"]); in SetMeasureTextNapiProperty()
302 int32_t textAlign = HandleIntStyle(contextParamMap["textAlignNApi"], env); in SetContextProperty() local
327 context.textAlign = static_cast<TextAlign>(textAlign); in SetContextProperty()

Completed in 15 milliseconds

1234