Searched refs:lastCaretPosition (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-textinput.md | 1709 @State lastCaretPosition: number = 0 1751 for (let i = 0; i < this.lastCaretPosition; i++) { 1768 if (this.lastCaretPosition === this.text.length) { 1770 } else if (this.lastCaretPosition === this.lastCaretPositionEnd) { 1772 for (let i = this.lastCaretPosition; i < this.text.length; i++) { 1788 this.nextCaret = this.lastCaretPosition // 保持光标位置 1830 this.lastCaretPosition = selectionStart
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-textinput.md | 1712 @State lastCaretPosition: number = 0 1754 for (let i = 0; i < this.lastCaretPosition; i++) { 1771 if (this.lastCaretPosition === this.text.length) { 1773 } else if (this.lastCaretPosition === this.lastCaretPositionEnd) { 1775 for (let i = this.lastCaretPosition; i < this.text.length; i++) { 1791 this.nextCaret = this.lastCaretPosition // Maintain the caret position. 1833 this.lastCaretPosition = selectionStart
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.h | 1038 bool IsShowSingleHandleByClick(const OHOS::Ace::GestureEvent& info, int32_t lastCaretPosition, 1040 …bool RepeatClickCaret(const Offset& offset, int32_t lastCaretPosition, const RectF& lastCaretRect);
|
H A D | rich_editor_pattern.cpp | 2808 int32_t lastCaretPosition = caretPosition_; in HandleSingleClickEvent() local 2824 if (IsShowSingleHandleByClick(info, lastCaretPosition, lastCaretRect, isCaretTwinkling)) { in HandleSingleClickEvent() 2849 …const OHOS::Ace::GestureEvent& info, int32_t lastCaretPosition, const RectF& lastCaretRect, bool i… in IsShowSingleHandleByClick() argument 2855 CHECK_NULL_RETURN(position == lastCaretPosition, false); in IsShowSingleHandleByClick() 2856 auto paragraphEndPos = GetParagraphEndPosition(lastCaretPosition); in IsShowSingleHandleByClick() 2857 if (lastCaretPosition == paragraphEndPos || IsTouchAtLineEnd(lastCaretPosition, textOffset)) { in IsShowSingleHandleByClick() 2864 bool RichEditorPattern::RepeatClickCaret(const Offset& offset, int32_t lastCaretPosition, const Rec… in RepeatClickCaret() argument 2871 if (position != lastCaretPosition) { in RepeatClickCaret() 2873 position, lastCaretPosition); in RepeatClickCaret()
|