TextField to limit Input to maximum characters and emit signal
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-controller-impl.h
index 103013a..51927a6 100644 (file)
@@ -195,6 +195,7 @@ struct Controller::Impl
     mControlSize(),
     mAlignmentOffset(),
     mOperationsPending( NO_OPERATION ),
+    mMaximumNumberOfCharacters( 50 ),
     mRecalculateNaturalSize( true )
   {
     mLogicalModel = LogicalModel::New();
@@ -222,7 +223,6 @@ struct Controller::Impl
    */
   void RequestRelayout();
 
-
   /**
    * @brief Helper to move the cursor, grab handle etc.
    */
@@ -330,6 +330,7 @@ struct Controller::Impl
   Size mControlSize;                       ///< The size of the control.
   Vector2 mAlignmentOffset;                ///< Vertical and horizontal offset of the whole text inside the control due to alignment.
   OperationsMask mOperationsPending;       ///< Operations pending to be done to layout the text.
+  Length mMaximumNumberOfCharacters;       ///< Maximum number of characters that can be inserted.
   bool mRecalculateNaturalSize:1;          ///< Whether the natural size needs to be recalculated.
 };