DONT_UPDATE_INPUT_STYLE
};
+ enum UpdateTextType
+ {
+ NONE_UPDATED = 0x0,
+ MODEL_UPDATED = 0x1,
+ DECORATOR_UPDATED = 0x2
+ };
+
/**
* @brief Create a new instance of a Controller.
*
/**
* @brief Retrieve any text previously set.
*
- * @return A string of UTF-8 characters.
+ * @param[out] text A string of UTF-8 characters.
*/
void GetText( std::string& text ) const;
UpdateInputStyleType type );
/**
- * @brief Retrieve the current cursor position.
- *
- * @return The cursor position.
- */
- unsigned int GetLogicalCursorPosition() const;
-
- /**
* @brief Replaces any placeholder text previously set.
*
* @param[in] type Different placeholder-text can be shown when the control is active/inactive.
*
* @note UI Controls are expected to minimize calls to this method e.g. call once after size negotiation.
* @param[in] size A the size of a bounding box to layout text within.
- * @return True if the text model or decorations were updated.
+ *
+ * @return Whether the text model or decorations were updated.
*/
- bool Relayout( const Size& size );
+ UpdateTextType Relayout( const Size& size );
/**
* @brief Process queued events which modify the model.
bool BackspaceKeyEvent();
/**
- * @brief Helper to notify IMF manager with surrounding text & cursor changes.
- */
- void NotifyImfManager();
-
- /**
* @brief Helper to clear font-specific data.
*/
void ShowPlaceholderText();