- TextEditor& impl(GetImpl(textEditor));
- DALI_ASSERT_DEBUG(impl.mController && "No text contoller");
- DALI_ASSERT_DEBUG(impl.mDecorator && "No text decorator");
-
- switch(index)
- {
- case Toolkit::DevelTextEditor::Property::RENDERING_BACKEND:
- {
- int backend = value.Get<int>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p RENDERING_BACKEND %d\n", impl.mController.Get(), backend);
-
- if(impl.mRenderingBackend != backend)
- {
- impl.mRenderingBackend = backend;
- impl.mRenderer.Reset();
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::TEXT:
- {
- const std::string& text = value.Get<std::string>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p TEXT %s\n", impl.mController.Get(), text.c_str());
-
- impl.mController->SetText(text);
- break;
- }
- case Toolkit::TextEditor::Property::TEXT_COLOR:
- {
- const Vector4& textColor = value.Get<Vector4>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p TEXT_COLOR %f,%f,%f,%f\n", impl.mController.Get(), textColor.r, textColor.g, textColor.b, textColor.a);
-
- if(impl.mController->GetDefaultColor() != textColor)
- {
- impl.mController->SetDefaultColor(textColor);
- impl.mController->SetInputColor(textColor);
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::FONT_FAMILY:
- {
- const std::string& fontFamily = value.Get<std::string>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p FONT_FAMILY %s\n", impl.mController.Get(), fontFamily.c_str());
- impl.mController->SetDefaultFontFamily(fontFamily);
- break;
- }
- case Toolkit::TextEditor::Property::FONT_STYLE:
- {
- SetFontStyleProperty(impl.mController, value, Text::FontStyle::DEFAULT);
- break;
- }
- case Toolkit::TextEditor::Property::POINT_SIZE:
- {
- const float pointSize = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p POINT_SIZE %f\n", impl.mController.Get(), pointSize);
-
- if(!Equals(impl.mController->GetDefaultFontSize(Text::Controller::POINT_SIZE), pointSize))
- {
- impl.mController->SetDefaultFontSize(pointSize, Text::Controller::POINT_SIZE);
- }
- break;
- }
- case Toolkit::TextEditor::Property::HORIZONTAL_ALIGNMENT:
- {
- Text::HorizontalAlignment::Type alignment(static_cast<Text::HorizontalAlignment::Type>(-1)); // Set to invalid value to ensure a valid mode does get set
- if(Text::GetHorizontalAlignmentEnumeration(value, alignment))
- {
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p HORIZONTAL_ALIGNMENT %d\n", impl.mController.Get(), alignment);
- impl.mController->SetHorizontalAlignment(alignment);
- }
- break;
- }
- case Toolkit::TextEditor::Property::SCROLL_THRESHOLD:
- {
- const float threshold = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p SCROLL_THRESHOLD %f\n", impl.mController.Get(), threshold);
-
- impl.mDecorator->SetScrollThreshold(threshold);
- break;
- }
- case Toolkit::TextEditor::Property::SCROLL_SPEED:
- {
- const float speed = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p SCROLL_SPEED %f\n", impl.mController.Get(), speed);
-
- impl.mDecorator->SetScrollSpeed(speed);
- break;
- }
- case Toolkit::TextEditor::Property::PRIMARY_CURSOR_COLOR:
- {
- const Vector4& color = value.Get<Vector4>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p PRIMARY_CURSOR_COLOR %f,%f,%f,%f\n", impl.mController.Get(), color.r, color.g, color.b, color.a);
-
- impl.mDecorator->SetCursorColor(PRIMARY_CURSOR, color);
- impl.RequestTextRelayout();
- break;
- }
- case Toolkit::TextEditor::Property::SECONDARY_CURSOR_COLOR:
- {
- const Vector4& color = value.Get<Vector4>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p SECONDARY_CURSOR_COLOR %f,%f,%f,%f\n", impl.mController.Get(), color.r, color.g, color.b, color.a);
-
- impl.mDecorator->SetCursorColor(SECONDARY_CURSOR, color);
- impl.RequestTextRelayout();
- break;
- }
- case Toolkit::TextEditor::Property::ENABLE_CURSOR_BLINK:
- {
- const bool enable = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p ENABLE_CURSOR_BLINK %d\n", impl.mController.Get(), enable);
-
- impl.mController->SetEnableCursorBlink(enable);
- impl.RequestTextRelayout();
- break;
- }
- case Toolkit::TextEditor::Property::CURSOR_BLINK_INTERVAL:
- {
- const float interval = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p CURSOR_BLINK_INTERVAL %f\n", impl.mController.Get(), interval);
-
- impl.mDecorator->SetCursorBlinkInterval(interval);
- break;
- }
- case Toolkit::TextEditor::Property::CURSOR_BLINK_DURATION:
- {
- const float duration = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p CURSOR_BLINK_DURATION %f\n", impl.mController.Get(), duration);
-
- impl.mDecorator->SetCursorBlinkDuration(duration);
- break;
- }
- case Toolkit::TextEditor::Property::CURSOR_WIDTH:
- {
- const int width = value.Get<int>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p CURSOR_WIDTH %d\n", impl.mController.Get(), width);
-
- impl.mDecorator->SetCursorWidth(width);
- impl.mController->GetLayoutEngine().SetCursorWidth(width);
- break;
- }
- case Toolkit::TextEditor::Property::GRAB_HANDLE_IMAGE:
- {
- const std::string imageFileName = value.Get<std::string>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p GRAB_HANDLE_IMAGE %s\n", impl.mController.Get(), imageFileName.c_str());
-
- if(imageFileName.size())
- {
- impl.mDecorator->SetHandleImage(GRAB_HANDLE, HANDLE_IMAGE_RELEASED, imageFileName);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE:
- {
- const std::string imageFileName = value.Get<std::string>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor %p GRAB_HANDLE_PRESSED_IMAGE %s\n", impl.mController.Get(), imageFileName.c_str());
-
- if(imageFileName.size())
- {
- impl.mDecorator->SetHandleImage(GRAB_HANDLE, HANDLE_IMAGE_PRESSED, imageFileName);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HANDLE_IMAGE_LEFT:
- {
- const std::string filename = GetImageFileNameFromPropertyValue(value);
-
- if(filename.size())
- {
- impl.mDecorator->SetHandleImage(LEFT_SELECTION_HANDLE, HANDLE_IMAGE_RELEASED, filename);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HANDLE_IMAGE_RIGHT:
- {
- const std::string filename = GetImageFileNameFromPropertyValue(value);
-
- if(filename.size())
- {
- impl.mDecorator->SetHandleImage(RIGHT_SELECTION_HANDLE, HANDLE_IMAGE_RELEASED, filename);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_LEFT:
- {
- const std::string filename = GetImageFileNameFromPropertyValue(value);
-
- if(filename.size())
- {
- impl.mDecorator->SetHandleImage(LEFT_SELECTION_HANDLE, HANDLE_IMAGE_PRESSED, filename);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_RIGHT:
- {
- const std::string filename = GetImageFileNameFromPropertyValue(value);
-
- if(filename.size())
- {
- impl.mDecorator->SetHandleImage(RIGHT_SELECTION_HANDLE, HANDLE_IMAGE_PRESSED, filename);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_LEFT:
- {
- const std::string filename = GetImageFileNameFromPropertyValue(value);
-
- if(filename.size())
- {
- impl.mDecorator->SetHandleImage(LEFT_SELECTION_HANDLE_MARKER, HANDLE_IMAGE_RELEASED, filename);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_RIGHT:
- {
- const std::string filename = GetImageFileNameFromPropertyValue(value);
-
- if(filename.size())
- {
- impl.mDecorator->SetHandleImage(RIGHT_SELECTION_HANDLE_MARKER, HANDLE_IMAGE_RELEASED, filename);
- impl.RequestTextRelayout();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SELECTION_HIGHLIGHT_COLOR:
- {
- const Vector4 color = value.Get<Vector4>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p SELECTION_HIGHLIGHT_COLOR %f,%f,%f,%f\n", impl.mController.Get(), color.r, color.g, color.b, color.a);
-
- impl.mDecorator->SetHighlightColor(color);
- impl.RequestTextRelayout();
- break;
- }
- case Toolkit::TextEditor::Property::DECORATION_BOUNDING_BOX:
- {
- const Rect<int>& box = value.Get<Rect<int> >();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p DECORATION_BOUNDING_BOX %d,%d %dx%d\n", impl.mController.Get(), box.x, box.y, box.width, box.height);
-
- impl.mDecorator->SetBoundingBox(box);
- impl.RequestTextRelayout();
- break;
- }
- case Toolkit::TextEditor::Property::ENABLE_MARKUP:
- {
- const bool enableMarkup = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p ENABLE_MARKUP %d\n", impl.mController.Get(), enableMarkup);
-
- impl.mController->SetMarkupProcessorEnabled(enableMarkup);
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_COLOR:
- {
- const Vector4& inputColor = value.Get<Vector4>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p INPUT_COLOR %f,%f,%f,%f\n", impl.mController.Get(), inputColor.r, inputColor.g, inputColor.b, inputColor.a);
-
- impl.mController->SetInputColor(inputColor);
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_FONT_FAMILY:
- {
- const std::string& fontFamily = value.Get<std::string>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p INPUT_FONT_FAMILY %s\n", impl.mController.Get(), fontFamily.c_str());
- impl.mController->SetInputFontFamily(fontFamily);
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_FONT_STYLE:
- {
- SetFontStyleProperty(impl.mController, value, Text::FontStyle::INPUT);
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_POINT_SIZE:
- {
- const float pointSize = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p INPUT_POINT_SIZE %f\n", impl.mController.Get(), pointSize);
- impl.mController->SetInputFontPointSize(pointSize);
- break;
- }
- case Toolkit::TextEditor::Property::LINE_SPACING:
- {
- // The line spacing isn't supported by the TextEditor. Since it's supported
- // by the TextLabel for now it must be ignored. The property is being shadowed
- // locally so its value isn't affected.
- const float lineSpacing = value.Get<float>();
- impl.mLineSpacing = lineSpacing;
- // set it to 0.0 due to missing implementation
- impl.mController->SetDefaultLineSpacing(0.0f);
- impl.mRenderer.Reset();
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_LINE_SPACING:
- {
- const float lineSpacing = value.Get<float>();
- impl.mController->SetInputLineSpacing(lineSpacing);
- impl.mRenderer.Reset();
- break;
- }
- case Toolkit::TextEditor::Property::UNDERLINE:
- {
- const bool update = SetUnderlineProperties(impl.mController, value, Text::EffectStyle::DEFAULT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_UNDERLINE:
- {
- const bool update = SetUnderlineProperties(impl.mController, value, Text::EffectStyle::INPUT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SHADOW:
- {
- const bool update = SetShadowProperties(impl.mController, value, Text::EffectStyle::DEFAULT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_SHADOW:
- {
- const bool update = SetShadowProperties(impl.mController, value, Text::EffectStyle::INPUT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::EMBOSS:
- {
- const bool update = SetEmbossProperties(impl.mController, value, Text::EffectStyle::DEFAULT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_EMBOSS:
- {
- const bool update = SetEmbossProperties(impl.mController, value, Text::EffectStyle::INPUT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::OUTLINE:
- {
- const bool update = SetOutlineProperties(impl.mController, value, Text::EffectStyle::DEFAULT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::INPUT_OUTLINE:
- {
- const bool update = SetOutlineProperties(impl.mController, value, Text::EffectStyle::INPUT);
- if(update)
- {
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::SMOOTH_SCROLL:
- {
- const bool enable = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor SMOOTH_SCROLL %d\n", enable);
-
- impl.mScrollAnimationEnabled = enable;
- break;
- }
- case Toolkit::TextEditor::Property::SMOOTH_SCROLL_DURATION:
- {
- const float duration = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor SMOOTH_SCROLL_DURATION %f\n", duration);
-
- impl.mScrollAnimationDuration = duration;
- if(impl.mTextVerticalScroller)
- {
- impl.mTextVerticalScroller->SetDuration(duration);
- }
- break;
- }
- case Toolkit::TextEditor::Property::ENABLE_SCROLL_BAR:
- {
- const bool enable = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::Verbose, "TextEditor SHOW_SCROLL_BAR %d\n", enable);
-
- impl.mScrollBarEnabled = enable;
- break;
- }
- case Toolkit::TextEditor::Property::SCROLL_BAR_SHOW_DURATION:
- {
- const float duration = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor SCROLL_BAR_SHOW_DURATION %f\n", duration);
-
- impl.mAnimationPeriod.delaySeconds = duration;
- break;
- }
- case Toolkit::TextEditor::Property::SCROLL_BAR_FADE_DURATION:
- {
- const float duration = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor SCROLL_BAR_FADE_DURATION %f\n", duration);
-
- impl.mAnimationPeriod.durationSeconds = duration;
- break;
- }
- case Toolkit::TextEditor::Property::PIXEL_SIZE:
- {
- const float pixelSize = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p PIXEL_SIZE %f\n", impl.mController.Get(), pixelSize);
-
- if(!Equals(impl.mController->GetDefaultFontSize(Text::Controller::PIXEL_SIZE), pixelSize))
- {
- impl.mController->SetDefaultFontSize(pixelSize, Text::Controller::PIXEL_SIZE);
- }
- break;
- }
- case Toolkit::DevelTextEditor::Property::PLACEHOLDER_TEXT:
- {
- const std::string& text = value.Get<std::string>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor::OnPropertySet %p PLACEHOLDER_TEXT %s\n", impl.mController.Get(), text.c_str());
-
- impl.mController->SetPlaceholderText(Controller::PLACEHOLDER_TYPE_INACTIVE, text);
- break;
- }
- case Toolkit::DevelTextEditor::Property::PLACEHOLDER_TEXT_COLOR:
- {
- const Vector4& textColor = value.Get<Vector4>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p PLACEHOLDER_TEXT_COLOR %f,%f,%f,%f\n", impl.mController.Get(), textColor.r, textColor.g, textColor.b, textColor.a);
-
- if(impl.mController->GetPlaceholderTextColor() != textColor)
- {
- impl.mController->SetPlaceholderTextColor(textColor);
- impl.mRenderer.Reset();
- }
- break;
- }
- case Toolkit::TextEditor::Property::ENABLE_SELECTION:
- {
- const bool enableSelection = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p ENABLE_SELECTION %d\n", impl.mController.Get(), enableSelection);
- impl.mController->SetSelectionEnabled(enableSelection);
- break;
- }
- case Toolkit::TextEditor::Property::PLACEHOLDER:
- {
- const Property::Map* map = value.GetMap();
- if(map)
- {
- impl.mController->SetPlaceholderProperty(*map);
- }
- break;
- }
- case Toolkit::TextEditor::Property::LINE_WRAP_MODE:
- {
- Text::LineWrap::Mode lineWrapMode(static_cast<Text::LineWrap::Mode>(-1)); // Set to invalid value to ensure a valid mode does get set
- if(GetLineWrapModeEnumeration(value, lineWrapMode))
- {
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p LineWrap::MODE %d\n", impl.mController.Get(), lineWrapMode);
- impl.mController->SetLineWrapMode(lineWrapMode);
- }
- break;
- }
- case Toolkit::DevelTextEditor::Property::ENABLE_SHIFT_SELECTION:
- {
- const bool shiftSelection = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p ENABLE_SHIFT_SELECTION %d\n", impl.mController.Get(), shiftSelection);
-
- impl.mController->SetShiftSelectionEnabled(shiftSelection);
- break;
- }
- case Toolkit::DevelTextEditor::Property::ENABLE_GRAB_HANDLE:
- {
- const bool grabHandleEnabled = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p ENABLE_GRAB_HANDLE %d\n", impl.mController.Get(), grabHandleEnabled);
-
- impl.mController->SetGrabHandleEnabled(grabHandleEnabled);
- break;
- }
- case Toolkit::DevelTextEditor::Property::MATCH_SYSTEM_LANGUAGE_DIRECTION:
- {
- impl.mController->SetMatchSystemLanguageDirection(value.Get<bool>());
- break;
- }
- case Toolkit::DevelTextEditor::Property::MAX_LENGTH:
- {
- const int max = value.Get<int>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p MAX_LENGTH %d\n", impl.mController.Get(), max);
-
- impl.mController->SetMaximumNumberOfCharacters(max);
- break;
- }
- case Toolkit::DevelTextEditor::Property::SELECTED_TEXT_START:
- {
- uint32_t start = static_cast<uint32_t>(value.Get<int>());
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p SELECTED_TEXT_START %d\n", impl.mController.Get(), start);
- impl.SetTextSelectionRange(&start, nullptr);
- break;
- }
- case Toolkit::DevelTextEditor::Property::SELECTED_TEXT_END:
- {
- uint32_t end = static_cast<uint32_t>(value.Get<int>());
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p SELECTED_TEXT_END %d\n", impl.mController.Get(), end);
- impl.SetTextSelectionRange(nullptr, &end);
- break;
- }
- case Toolkit::DevelTextEditor::Property::ENABLE_EDITING:
- {
- const bool editable = value.Get<bool>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p ENABLE_EDITING %d\n", impl.mController.Get(), editable);
- impl.SetEditable(editable);
- break;
- }
- case Toolkit::DevelTextEditor::Property::HORIZONTAL_SCROLL_POSITION:
- {
- float horizontalScroll = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p HORIZONTAL_SCROLL_POSITION %d\n", impl.mController.Get(), horizontalScroll);
- if(horizontalScroll >= 0.0f)
- {
- impl.ScrollBy(Vector2(horizontalScroll - impl.GetHorizontalScrollPosition(), 0));
- }
- break;
- }
- case Toolkit::DevelTextEditor::Property::VERTICAL_SCROLL_POSITION:
- {
- float verticalScroll = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p VERTICAL_SCROLL_POSITION %d\n", impl.mController.Get(), verticalScroll);
- if(verticalScroll >= 0.0f)
- {
- impl.ScrollBy(Vector2(0, verticalScroll - impl.GetVerticalScrollPosition()));
- }
- break;
- }
- case Toolkit::DevelTextEditor::Property::FONT_SIZE_SCALE:
- {
- const float scale = value.Get<float>();
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p FONT_SIZE_SCALE %f\n", impl.mController.Get(), scale);
-
- if(!Equals(impl.mController->GetFontSizeScale(), scale))
- {
- impl.mController->SetFontSizeScale(scale);
- }
- break;
- }
- case Toolkit::DevelTextEditor::Property::PRIMARY_CURSOR_POSITION:
- {
- uint32_t position = static_cast<uint32_t>(value.Get<int>());
- DALI_LOG_INFO(gLogFilter, Debug::General, "TextEditor %p PRIMARY_CURSOR_POSITION %d\n", impl.mController.Get(), position);
- if(impl.mController->SetPrimaryCursorPosition(position))
- {
- impl.SetKeyInputFocus();
- }
- break;
- }
- } // switch
- } // texteditor