Add a TextEditor property to limit input to maximum characters
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / text-controls / text-editor-devel.cpp
index 875e270..b0b248b 100755 (executable)
@@ -1,8 +1,5 @@
-#ifndef DALI_TOOLKIT_TEXT_EDITOR_DEVEL_H
-#define DALI_TOOLKIT_TEXT_EDITOR_DEVEL_H
-
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -36,10 +33,13 @@ InputMethodContext GetInputMethodContext( TextEditor textEditor )
   return GetImpl( textEditor ).GetInputMethodContext();
 }
 
+MaxLengthReachedSignalType& MaxLengthReachedSignal( TextEditor textEditor )
+{
+  return GetImpl( textEditor ).MaxLengthReachedSignal();
+}
+
 } // namespace DevelTextEditor
 
 } // namespace Toolkit
 
 } // namespace Dali
-
-#endif // DALI_TOOLKIT_TEXT_EDITOR_DEVEL_H