#include <dali-toolkit/internal/controls/text-input/text-input-popup-impl.h>
#include <dali/public-api/common/dali-vector.h>
-#include <dali/public-api/adaptor-framework/common/imf-manager.h>
#include <dali/public-api/geometry/mesh.h>
namespace Dali
std::size_t InsertAt( const Text& newText, const std::size_t insertionPosition, const std::size_t numberOfCharactersToReplace );
/**
- * Creates a cursor from the supplied image
- * @param[in] cursorImage the image to be used for the cursor.
- * @param[in] border the nine patch border corresponding to the supplied image.
- * @return the image actor to be used as the cursor.
- */
- ImageActor CreateCursor( Image cursorImage, const Vector4& border );
+ * Creates a cursor.
+ * @param[in] color the cursor color.
+ * @return the image actor to be used as the cursor.
+ */
+ ImageActor CreateCursor( const Vector4 &color );
/**
* Moves cursor to the right
/**
* Setup the selection popup and clipboard if relevant so the correct options are shown when ShowPopup is called.
+ * @param[in] treatWhiteSpaceAsAnyOtherCharacter If whitespace should not be selected in the same manner as other characters set
+ * this to false. default is true.
*/
- void SetUpPopupSelection();
+ void SetUpPopupSelection( bool treatWhiteSpaceAsAnyOtherCharacter = true );
/**
* Return the logical index containing the character position closest to the source.
/**
* Hide highlight shown between selection handles.
+ * @param[in] hidePopup flag to hide the popup too, default is to hide popup.
*/
- void RemoveHighlight();
+ void RemoveHighlight( bool hidePopup = true );
/**
* Highlights text that has been selected