Home
last modified time | relevance | path

Searched refs:textBox (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dtxt_paragraph.cpp311 return textBox.rect.fRight - textBox.rect.fLeft; in GetCharacterWidth()
313 return textBox.rect.GetRight() - textBox.rect.GetLeft(); in GetCharacterWidth()
539 result.height = textBox.rect.fBottom - textBox.rect.fTop; in ComputeOffsetForCaretUpstream()
542 result.height = textBox.rect.GetBottom() - textBox.rect.GetTop(); in ComputeOffsetForCaretUpstream()
562 double caretStart = isLtr ? textBox.rect.fRight : textBox.rect.fLeft; in ComputeOffsetForCaretUpstream()
571 result.height = textBox.rect.fBottom - textBox.rect.fTop; in ComputeOffsetForCaretUpstream()
574 result.height = textBox.rect.GetBottom() - textBox.rect.GetTop(); in ComputeOffsetForCaretUpstream()
634 double caretStart = isLtr ? textBox.rect.fLeft : textBox.rect.fRight; in ComputeOffsetForCaretDownstream()
644 result.height = textBox.rect.fBottom - textBox.rect.fTop; in ComputeOffsetForCaretDownstream()
647 result.height = textBox.rect.GetBottom() - textBox.rect.GetTop(); in ComputeOffsetForCaretDownstream()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Dtext_overlay_manager.cpp187 const auto& textBox = *boxes.begin(); local
209 double caretEnd = isLtr ? textBox.rect.fRight : textBox.rect.fLeft;
211 double caretEnd = isLtr ? textBox.rect.GetRight() : textBox.rect.GetLeft();
220 result.offset.SetY(textBox.rect.fTop);
221 result.height = textBox.rect.fBottom - textBox.rect.fTop;
224 result.height = textBox.rect.GetBottom() - textBox.rect.GetTop();
250 const auto& textBox = *boxes.begin(); local
258 double caretStart = isLtr ? textBox.rect.fLeft : textBox.rect.fRight;
260 double caretStart = isLtr ? textBox.rect.GetLeft() : textBox.rect.GetRight();
270 result.height = textBox.rect.fBottom - textBox.rect.fTop;
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/directive/
H A Ddirective_tdd_test.cpp239 FlexLayout *textBox = reinterpret_cast<FlexLayout *>(GetViewByRef(page, "textBox")); in DirectiveTest002() local
240 EXPECT_TRUE(textBox != nullptr); in DirectiveTest002()
241 if (textBox != nullptr) { in DirectiveTest002()
242 uint8_t size = GetChildrenSize(*textBox); in DirectiveTest002()
247 size = GetChildrenSize(*textBox); in DirectiveTest002()
250 size = GetChildrenSize(*textBox); in DirectiveTest002()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.cpp1374 const auto& textBox = *boxes.begin(); local
1396 double caretEnd = isLtr ? textBox.rect.fRight : textBox.rect.fLeft;
1398 double caretEnd = isLtr ? textBox.rect.GetRight() : textBox.rect.GetLeft();
1407 result.offset.SetY(textBox.rect.fTop);
1408 result.height = textBox.rect.fBottom - textBox.rect.fTop;
1411 result.height = textBox.rect.GetBottom() - textBox.rect.GetTop();
1436 const auto& textBox = *boxes.begin(); local
1444 double caretStart = isLtr ? textBox.rect.fLeft : textBox.rect.fRight;
1446 double caretStart = isLtr ? textBox.rect.GetLeft() : textBox.rect.GetRight();
1456 result.height = textBox.rect.fBottom - textBox.rect.fTop;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_layout_manager.cpp129 for (const auto& textBox : textBoxes) { in GetRectsForRange() local
132 rectObj->SetProperty<float>("left", textBox.rect_.Left()); in GetRectsForRange()
133 rectObj->SetProperty<float>("top", textBox.rect_.Top()); in GetRectsForRange()
134 rectObj->SetProperty<float>("right", textBox.rect_.Right()); in GetRectsForRange()
135 rectObj->SetProperty<float>("bottom", textBox.rect_.Bottom()); in GetRectsForRange()
137 textBoxObj->SetProperty<int32_t>("direction", static_cast<int32_t>(textBox.direction_)); in GetRectsForRange()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_overlay_modifier.cpp221 for (const auto& textBox : textBoxes) { in PaintSelection() local
222 …canvas.DrawRect(RSRect(textBox.Left() + (isTextArea ? contentOffset_->Get().GetX() : textRect.GetX… in PaintSelection()
224 ? (textBox.Top() + (isTextArea ? textRect.GetY() : contentOffset_->Get().GetY())) in PaintSelection()
226 textBox.Right() + (isTextArea ? contentOffset_->Get().GetX() : textRect.GetX()), in PaintSelection()
228 ? (textBox.Bottom() + (isTextArea ? textRect.GetY() : contentOffset_->Get().GetY())) in PaintSelection()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_typography_test.cpp2843 OH_Drawing_TextBox* textBox = OH_Drawing_TypographyGetRectsForPlaceholders(typography); variable
2844 OH_Drawing_GetLeftFromTextBox(textBox, 0);
2845 OH_Drawing_GetRightFromTextBox(textBox, 0);
2846 OH_Drawing_GetTopFromTextBox(textBox, 0);
2847 OH_Drawing_GetBottomFromTextBox(textBox, 0);
2848 EXPECT_EQ(OH_Drawing_GetTextDirectionFromTextBox(textBox, 0), 0);
2849 EXPECT_EQ(OH_Drawing_GetSizeOfTextBox(textBox), 0);
2874 OH_Drawing_TextBox* textBox = OH_Drawing_TypographyGetRectsForPlaceholders(typography); variable
2875 EXPECT_EQ(textBox == nullptr, false);
2879 OH_Drawing_TypographyDestroyTextBox(textBox);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/dialog/
H A Ddialog_component.cpp237 auto textBox = AceType::MakeRefPtr<BoxComponent>(); in BuildTitle() local
238 textBox->SetDeliverMinToChild(false); in BuildTitle()
239 textBox->SetChild(title_); in BuildTitle()
241 titlePadding->SetChild(textBox); in BuildTitle()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_text_typography.cpp3720 void OH_Drawing_TypographyDestroyTextBox(OH_Drawing_TextBox* textBox) in OH_Drawing_TypographyDestroyTextBox() argument
3722 if (!textBox) { in OH_Drawing_TypographyDestroyTextBox()
3728 ConvertToOriginalText<std::vector<TypographyProperties::TextBox>>(textBox); in OH_Drawing_TypographyDestroyTextBox()
3730 std::vector<TextRect>* textRectArr = ConvertToOriginalText<std::vector<TextRect>>(textBox); in OH_Drawing_TypographyDestroyTextBox()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_pattern.cpp4117 for (auto& textBox : textBoxes) { in GetRectsForRange() local
4118 ParagraphManager::TextBox adjustedTextBox = textBox; in GetRectsForRange()
4119 adjustedTextBox.rect_.SetLeft(textBox.rect_.Left() + textContentRect.Left()); in GetRectsForRange()
4120 adjustedTextBox.rect_.SetTop(textBox.rect_.Top() + textContentRect.Top()); in GetRectsForRange()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_pattern.cpp8073 for (auto& textBox : textBoxes) { in OnBackPressed() local
8074 ParagraphManager::TextBox adjustedTextBox = textBox; in OnBackPressed()
8075 adjustedTextBox.rect_.SetLeft(textBox.rect_.Left() + textRect.Left()); in OnBackPressed()
8076 adjustedTextBox.rect_.SetTop(textBox.rect_.Top() + textRect.Top()); in OnBackPressed()