Searched refs:extentOffset (Results 1 – 11 of 11) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/ime/ |
H A D | ime_test.cpp | 576 textSelection.extentOffset = 15; 586 textSelection.extentOffset = 15; 622 textEditingValue.selection.extentOffset = -1; 632 textEditingValue.selection.extentOffset = 12; 727 newValue.selection.extentOffset = 10; 732 EXPECT_EQ(newValue.selection.extentOffset, 0); 750 newValue.selection.extentOffset = 10; 773 newValue.selection.extentOffset = 0; 793 newValue.selection.extentOffset = 0; 813 newValue.selection.extentOffset = 0; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_selection.h | 35 TextSelection(int32_t base, int32_t extent) : baseOffset(base), extentOffset(extent) {} in TextSelection() 40 extentOffset = extent; in Update() 47 extentOffset = both; in Update() 52 return baseOffset == other.baseOffset && extentOffset == other.extentOffset; 65 return std::min(baseOffset, extentOffset); in GetStart() 73 return std::max(baseOffset, extentOffset); in GetEnd() 81 return baseOffset > -1 && extentOffset > -1; in IsValid() 87 ss << "Selection (" << baseOffset << ", " << extentOffset << ")"; in ToString() 96 int32_t extentOffset = -1; member
|
H A D | text_compose.h | 30 TextCompose(int32_t base, int32_t extent) : baseOffset(base), extentOffset(extent) {} in TextCompose() 34 extentOffset = extent; in Update() 40 extentOffset = both; in Update() 44 return baseOffset == other.baseOffset && extentOffset == other.extentOffset; 55 return std::min(baseOffset, extentOffset); in GetStart() 62 return std::max(baseOffset, extentOffset); in GetEnd() 69 return baseOffset > -1 && extentOffset > -1; in IsValid() 74 int32_t extentOffset = -1; member
|
H A D | text_editing_value.cpp | 42 selection.extentOffset = json.GetInt(SELECTION_END, -1); in ParseFromJson() 51 json->Put(SELECTION_END, selection.extentOffset); in ToJsonString() 76 if (selection.extentOffset <= 1) { in MoveLeft() 82 …int32_t prevCharIndex = std::min(selection.extentOffset - 1, static_cast<int32_t>(utf16Text.length… in MoveLeft() 92 if (static_cast<size_t>(selection.extentOffset) >= utf16Text.length() - 1) { in MoveRight() 97 int32_t nextCharIndex = selection.extentOffset; in MoveRight() 177 if (selection.baseOffset > selection.extentOffset) { in SelectionAwareTextManipulation()
|
H A D | text_input_formatter.cpp | 52 int32_t removeBeforeExtent = std::min(exceedLen, newValue.selection.extentOffset); in Format() 55 int32_t eraseStart = newValue.selection.extentOffset - removeBeforeExtent; in Format()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | text_utils.h | 83 selection.extentOffset = position + 1; in GetRangeOfSameType() 88 selection.extentOffset = FindSameCharTypeEnd(wstring, position, length, type); in GetRangeOfSameType()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_scroll.cpp | 411 double RenderScroll::CalculateOffsetByFriction(double extentOffset, double delta, double friction) in CalculateOffsetByFriction() argument 414 if (extentOffset > 0.0 && !NearZero(friction)) { in CalculateOffsetByFriction() 415 double deltaToLimit = extentOffset / friction; in CalculateOffsetByFriction() 419 offset += extentOffset; in CalculateOffsetByFriction()
|
H A D | render_scroll.h | 51 static double CalculateOffsetByFriction(double extentOffset, double delta, double friction);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | render_text_field.cpp | 1416 int32_t posBeforeCursor = GetEditingValue().selection.extentOffset - 1; in GetTextForDisplay() 1586 valueToUpdate.selection.extentOffset = 0; in KeyboardEditingValueFilter() 1617 if (valueToUpdate.selection.baseOffset > valueToUpdate.selection.extentOffset) { in KeyboardEditingValueFilter() 1680 (valueNeedToUpdate.selection.baseOffset == valueNeedToUpdate.selection.extentOffset && in UpdateEditingValue() 2653 UpdateSelection(selection_.baseOffset, selection_.extentOffset); in UpdateStartSelection()
|
H A D | rosen_render_text_field.cpp | 953 if (GetCaretRect(GetEditingValue().selection.extentOffset, caretRect_, CARET_HEIGHT_OFFSET)) {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/ |
H A D | textfield_declaration.h | 265 attribute.selection.extentOffset = selectedEnd; in SetSelectedEnd()
|