Home
last modified time | relevance | path

Searched refs:RTL (Results 1 – 25 of 265) sorted by relevance

1234567891011

/ohos5.0/docs/zh-cn/application-dev/internationalization/
H A Di18n-ui-design.md22 不同国家对文本对齐方式和读取顺序有所不同,例如英语采用从左到右的顺序,阿拉伯语和希腊语则采用从右到左(RTL)的顺序。为了使界面显示的内容符合当地用户语言习惯,需确保UI元素布局支持界面镜像,如图1…
28 - 触控与操作。 确保界面各元素触控或操作符合从右至左的阅读顺序,例如对于多页签,一般往左划表示往后,而在RTL语言下,往右划表示往后。
44 **图4** RTL语言系统下提供的图标资源
48 **图5** RTL语言下提供的镜像控件
H A Dpseudo-i18n-testing-mirror.md5 界面镜像测试主要检查文字阅读顺序是否出现问题。有一些语言的阅读顺序不是从左到右。例如,在阿拉伯语中,界面的阅读顺序是从右到左(RTL)。
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dalignment.cpp81 result = direction == TextDirection::RTL ? "Alignment.TopEnd" : "Alignment.TopStart"; in GetAlignmentStr()
85 result = direction == TextDirection::RTL ? "Alignment.TopStart" : "Alignment.TopEnd"; in GetAlignmentStr()
87 result = direction == TextDirection::RTL ? "Alignment.End" : "Alignment.Start"; in GetAlignmentStr()
91 result = direction == TextDirection::RTL ? "Alignment.Start" : "Alignment.End"; in GetAlignmentStr()
93 result = direction == TextDirection::RTL ? "Alignment.BottomEnd" : "Alignment.BottomStart"; in GetAlignmentStr()
97 result = direction == TextDirection::RTL ? "Alignment.BottomStart" : "Alignment.BottomEnd"; in GetAlignmentStr()
/ohos5.0/docs/en/application-dev/internationalization/
H A Di18n-ui-design.md22 …rom left-to-right (LTR), and Arabic and Greek are read from right-to-left (RTL). To ensure that th…
24RTL language to be displayed in the original layout, meeting the bidirectional reading experience.…
28 … to move backward for an LTR language and swiping right means to move backward for an RTL language.
44 **Figure 4** Icon resources for RTL languages
48 **Figure 5** Mirroring controls for RTL languages
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp91 { TextDirection::RTL, "Direction.Rtl" }, in TextDirectionToString()
106 { "Direction.Rtl", TextDirection::RTL }, in StringToTextDirection()
1531 if (direction == TextDirection::RTL) { in CheckLocalizedBorderRadiuses()
1539 if (direction == TextDirection::RTL) { in CheckLocalizedBorderRadiuses()
1547 if (direction == TextDirection::RTL) { in CheckLocalizedBorderRadiuses()
1555 if (direction == TextDirection::RTL) { in CheckLocalizedBorderRadiuses()
1578 if (direction == TextDirection::RTL) { in CheckLocalizedOuterBorderColor()
1586 if (direction == TextDirection::RTL) { in CheckLocalizedOuterBorderColor()
1612 if (direction == TextDirection::RTL) { in CheckLocalizedPadding()
1620 if (direction == TextDirection::RTL) { in CheckLocalizedPadding()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_group_paint_method.cpp93 if (layoutDirection_ == TextDirection::RTL && vertical_) { in DrawDivider()
96 } else if (layoutDirection_ == TextDirection::RTL && !vertical_) { in DrawDivider()
111 if (layoutDirection_ == TextDirection::RTL && vertical_) { in DrawLastLineDivider()
113 } else if (layoutDirection_ == TextDirection::RTL && !vertical_) { in DrawLastLineDivider()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/
H A Dtypography_style.cpp61 return (textDirection_ == TextDirection::RTL) ? TextAlign::LEFT : TextAlign::RIGHT; in GetTextStyle()
66 return (textDirection == TextDirection::RTL) ? TextAlign::LEFT : TextAlign::RIGHT; in GetTextStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_layout_algorithm.cpp139 if (layoutDirection == TextDirection::RTL && axis == Axis::HORIZONTAL) { in Layout()
146 if (layoutDirection == TextDirection::RTL) { in Layout()
150 …f (GreatNotEqual(viewPortExtent_.Width(), size.Width()) && layoutDirection == TextDirection::RTL && in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/counter/
H A Dcounter_layout_algorithm.cpp74 if (layoutDirection == TextDirection::RTL) { in Measure()
113 if (layoutDirection == TextDirection::RTL) { in Measure()
175 if (layoutDirection == TextDirection::RTL) { in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/
H A Doption_layout_algorithm.cpp108 if (layoutProps->GetNonAutoLayoutDirection() == TextDirection::RTL) { in Layout()
119 if (layoutProps->GetNonAutoLayoutDirection() == TextDirection::RTL) { in Layout()
178 bool isRtl = direction == TextDirection::RTL; in UpdateIconMargin()
H A Doption_paint_method.cpp67 dividerRtl = (textDirection == TextDirection::RTL) ? true : false; in PaintCustomDivider()
104 auto isRtl = (textDirection == TextDirection::RTL) ? true : false; in PaintDivider()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_search.cpp196 (holder.search->GetTextDirection() == TextDirection::RTL) in SetSpecializedStyle()
219 (holder.search->GetTextDirection() == TextDirection::RTL) in SetSpecializedStyle()
328 searchChild_->SetTextDirection(IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in PrepareSpecializedComponent()
329 … textFieldComponent_->SetTextDirection(IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in PrepareSpecializedComponent()
340 if (searchChild_->GetTextDirection() == TextDirection::RTL) { in PrepareSpecializedComponent()
H A Ddom_refresh.cpp141 refreshChild_->SetTextDirection(IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in PrepareSpecializedComponent()
142 columnChild_->SetTextDirection(IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in PrepareSpecializedComponent()
H A Ddom_canvas.cpp36 paintChild_->SetTextDirection(IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in PrepareSpecializedComponent()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/
H A Dconvert_test.cpp75 const SPText::TextBox box(skRect, SPText::TextDirection::RTL);
77 EXPECT_EQ(textRect.direction == TextDirection::RTL, true);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/marquee/
H A Dmarquee_pattern.cpp205 bool isRtl = direction == TextDirection::RTL ? true : false; in PlayMarqueeAnimation()
271 …auto newStart = direction == TextDirection::RTL ? pattern->CalculateEnd() : pattern->CalculateStar… in ActionAnimation()
487 …Alignment align = (textDirection == TextDirection::RTL ? Alignment::CENTER_RIGHT : Alignment::CENT… in CalculateStart()
530 …Alignment align = (textDirection == TextDirection::RTL ? Alignment::CENTER_RIGHT : Alignment::CENT… in CalculateEnd()
643 if (direction == TextDirection::LTR || direction == TextDirection::RTL) { in GetTextDirection()
648 auto textDirection = isRTL ? TextDirection::RTL : TextDirection::LTR; in GetTextDirection()
656 return TextDirection::RTL; in GetTextDirection()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.cpp75 if (textDirection_ == TextDirection::RTL) { in GetInnerRect()
84 if (textDirection_ == TextDirection::RTL) { in GetInnerRect()
295 if (textDirection_ == TextDirection::RTL) { in PaintIcon()
308 if (textDirection_ == TextDirection::RTL) { in PaintIcon()
873 if ((textDirection_ == TextDirection::RTL || realTextDirection_ == TextDirection::RTL) &&
876 if ((textDirection_ == TextDirection::RTL || realTextDirection_ == TextDirection::RTL) &&
900 if (textDirection_ == TextDirection::RTL &&
903 if (textDirection_ == TextDirection::RTL &&
1491 case TextDirection::RTL: {
1504 case TextDirection::RTL: {
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/
H A Dbadge_layout_algorithm.cpp176 if (layoutDirection == TextDirection::RTL) { in GetTextDataOffset()
185 if (layoutDirection == TextDirection::RTL) { in GetTextDataOffset()
192 if (layoutDirection == TextDirection::RTL) { in GetTextDataOffset()
333 if (layoutDirection == TextDirection::RTL) { in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_component.cpp74 if (GetTextDirection() == TextDirection::RTL) { in Initialize()
123 if (GetTextDirection() == TextDirection::RTL) { in Initialize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Doffscreen_canvas_pattern.cpp223 …direction = AceApplicationInfo::GetInstance().IsRightToLeft() ? TextDirection::RTL : TextDirection… in SetTextDirection()
423 … AceApplicationInfo::GetInstance().IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in Reset()
432 … AceApplicationInfo::GetInstance().IsRightToLeft() ? TextDirection::RTL : TextDirection::LTR); in UpdateTextDefaultDirection()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/slider/
H A Drender_slider.cpp544 !isReverse_) || (GetTextDirection() == TextDirection::RTL && isReverse_)) { in RenderBlockPosition()
546 } else if ((GetTextDirection() == TextDirection::RTL && in RenderBlockPosition()
591 !isReverse_) || (GetTextDirection() == TextDirection::RTL && isReverse_)) { in UpdateBlockPosition()
593 } else if ((GetTextDirection() == TextDirection::RTL && in UpdateBlockPosition()
676 !isReverse_) || (GetTextDirection() == TextDirection::RTL && isReverse_)) { in UpdateTouchRegion()
678 } else if ((GetTextDirection() == TextDirection::RTL && in UpdateTouchRegion()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/badge/
H A Dbadge_test_ng.cpp799 layoutProperty_->UpdateLayoutDirection(TextDirection::RTL);
803 EXPECT_EQ(layoutProperty_->GetLayoutDirection(), TextDirection::RTL);
831 layoutProperty_->UpdateLayoutDirection(TextDirection::RTL);
835 EXPECT_EQ(layoutProperty_->GetLayoutDirection(), TextDirection::RTL);
863 layoutProperty_->UpdateLayoutDirection(TextDirection::RTL);
867 EXPECT_EQ(layoutProperty_->GetLayoutDirection(), TextDirection::RTL);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/marquee/
H A Drosen_render_marquee.cpp41 return TextDirection::RTL; in GetTextDirection()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dsub_menu_layout_algorithm.cpp86 if (layoutDirection == TextDirection::RTL) { in GetSubMenuLayoutOffset()
103 if (layoutDirection == TextDirection::RTL) { in MenuLayoutAvoidAlgorithm()
224 if (layoutDirection == TextDirection::RTL) { in HorizontalLayoutSubMenu()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-page-transition-animation.md244 | START<sup>12+</sup> | 设置LTR入场时表示从左边滑入,出场时表示滑出到左边。RTL入场时表示从右边滑入,出场时表示滑出到右边。<br />**原子化服务API:** 从AP…
245 | END<sup>12+</sup> | 设置LTR入场时表示从右边滑入,出场时表示滑出到右边。RTL入场时表示从左边滑入,出场时表示滑出到左边。<br />**原子化服务API:** 从AP…
397 自定义方式1:配置提供的不同退入场平移效果,将系统语言排版模式改为RTL
476 自定义方式2:使用系统默认的退入场效果,将系统语言排版模式改为RTL

1234567891011