manual binding for TextEditor and InputMethod 08/133808/2
authorxb.teng <xb.teng@samsung.com>
Tue, 13 Jun 2017 10:40:10 +0000 (18:40 +0800)
committerxb.teng <xb.teng@samsung.com>
Tue, 20 Jun 2017 08:09:57 +0000 (16:09 +0800)
There are changes:
1. Add event ScrollStateChanged for TextEditor
2. Add InputMethod high level class for TextField
3. Fix a issue of ImageView
4. Update sample to test new feature

Change-Id: I81c84181ad54a4a62dea7ddd97167ffe3b1c4ab2

NUISamples/NUISamples/NUISamples.TizenTV/examples/text-test.cs
Tizen.NUI/Tizen.NUI.csproj
Tizen.NUI/src/internal/ManualPINVOKE.cs
Tizen.NUI/src/internal/ScrollStateChangedSignal.cs [new file with mode: 0755]
Tizen.NUI/src/public/BaseComponents/ImageView.cs
Tizen.NUI/src/public/BaseComponents/TextEditor.cs
Tizen.NUI/src/public/InputMethod.cs [new file with mode: 0755]
Tizen.NUI/src/public/NUIConstants.cs

index 4648f1e..9327182 100755 (executable)
@@ -91,17 +91,32 @@ namespace TextTest
             field.HiddenInputSettings = hiddenMap;
             window.Add(field);
 
+            InputMethod inputMethod = new InputMethod();
+            inputMethod.PanelLayout = InputMethod.PanelLayoutType.Number;
+            inputMethod.ActionButton = InputMethod.ActionButtonTitleType.Go;
+            inputMethod.AutoCapital = InputMethod.AutoCapitalType.Word;
+            inputMethod.Variation = 1;
+
+            field.InputMethodSettings = inputMethod.OutputMap;
+
             TextEditor editor = new TextEditor();
             editor.Size2D = new Size2D(400, 100);
             editor.Position2D = new Position2D(10, 550);
             editor.BackgroundColor = Color.Magenta;
             editor.PlaceholderText = "input someth...";
             editor.PlaceholderTextColor = Color.Red;
+            editor.EnableScrollBar = true;
+            editor.Focusable = true;
+            FocusManager.Instance.SetCurrentFocusView(editor);
             window.Add(editor);
             editor.TextChanged += (obj, e) => {
                 Tizen.Log.Debug("NUI", "editor line count: " + e.TextEditor.LineCount);
             };
 
+            editor.ScrollStateChanged += (obj, e)=> {
+                Tizen.Log.Debug("NUI", "editor scroll state:" + e.ScrollState);
+            };
+
             Tizen.Log.Debug("NUI",  "editor id: " + editor.ID);
         }
 
index 74346a4..760a221 100755 (executable)
     <Compile Include="src\internal\RulerPtr.cs" />\r
     <Compile Include="src\internal\Sampler.cs" />\r
     <Compile Include="src\internal\ScrollableSignal.cs" />\r
+    <Compile Include="src\internal\ScrollStateChangedSignal.cs" />\r
     <Compile Include="src\internal\ScrollViewPagePathEffect.cs" />\r
     <Compile Include="src\internal\ScrollViewSnapStartedSignal.cs" />\r
     <Compile Include="src\internal\Shader.cs" />\r
     <Compile Include="src\public\FocusManager.cs" />\r
     <Compile Include="src\public\Gesture.cs" />\r
     <Compile Include="src\public\Hover.cs" />\r
+    <Compile Include="src\public\InputMethod.cs" />\r
     <Compile Include="src\public\Key.cs" />\r
     <Compile Include="src\public\KeyFrames.cs" />\r
     <Compile Include="src\public\Layer.cs" />\r
index fe3c65c..239784b 100755 (executable)
@@ -667,5 +667,30 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_StateChangedSignalType")]
         public static extern void delete_StateChangedSignalType(global::System.Runtime.InteropServices.HandleRef jarg1);
 
+        //manual pinvoke for text-editor ScrollStateChangedSignal
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TextEditor_ScrollStateChangedSignal")]
+        public static extern global::System.IntPtr TextEditor_ScrollStateChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ScrollStateChangedSignal_Empty")]
+        public static extern bool ScrollStateChangedSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ScrollStateChangedSignal_GetConnectionCount")]
+        public static extern uint ScrollStateChangedSignal_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ScrollStateChangedSignal_Connect")]
+        public static extern void ScrollStateChangedSignal_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ScrollStateChangedSignal_Disconnect")]
+        public static extern void ScrollStateChangedSignal_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ScrollStateChangedSignal_Emit")]
+        public static extern void ScrollStateChangedSignal_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_ScrollStateChangedSignal")]
+        public static extern global::System.IntPtr new_ScrollStateChangedSignal();
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_ScrollStateChangedSignal")]
+        public static extern void delete_ScrollStateChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+
     }
 }
diff --git a/Tizen.NUI/src/internal/ScrollStateChangedSignal.cs b/Tizen.NUI/src/internal/ScrollStateChangedSignal.cs
new file mode 100755 (executable)
index 0000000..e3c9c0a
--- /dev/null
@@ -0,0 +1,142 @@
+//------------------------------------------------------------------------------
+// <auto-generated />
+//
+// This file was automatically generated by SWIG (http://www.swig.org).
+// Version 3.0.12
+//
+// Do not make changes to this file unless you know what you are doing--modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI
+{
+
+    internal class ScrollStateChangedSignal : global::System.IDisposable
+    {
+        private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+        protected bool swigCMemOwn;
+
+        internal ScrollStateChangedSignal(global::System.IntPtr cPtr, bool cMemoryOwn)
+        {
+            swigCMemOwn = cMemoryOwn;
+            swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+        }
+
+        internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollStateChangedSignal obj)
+        {
+            return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+        }
+
+        //A Flag to check who called Dispose(). (By User or DisposeQueue)
+        private bool isDisposeQueued = false;
+        //A Flat to check if it is already disposed.
+        protected bool disposed = false;
+
+
+        ~ScrollStateChangedSignal()
+        {
+            if (!isDisposeQueued)
+            {
+                isDisposeQueued = true;
+                DisposeQueue.Instance.Add(this);
+            }
+        }
+
+        public void Dispose()
+        {
+            //Throw excpetion if Dispose() is called in separate thread.
+            if (!Window.IsInstalled())
+            {
+                throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+            }
+
+            if (isDisposeQueued)
+            {
+                Dispose(DisposeTypes.Implicit);
+            }
+            else
+            {
+                Dispose(DisposeTypes.Explicit);
+                System.GC.SuppressFinalize(this);
+            }
+        }
+
+        protected virtual void Dispose(DisposeTypes type)
+        {
+            if (disposed)
+            {
+                return;
+            }
+
+            if (type == DisposeTypes.Explicit)
+            {
+                //Called by User
+                //Release your own managed resources here.
+                //You should release all of your own disposable objects here.
+
+            }
+
+            //Release your own unmanaged resources here.
+            //You should not access any managed member here except static instance.
+            //because the execution order of Finalizes is non-deterministic.
+
+            if (swigCPtr.Handle != global::System.IntPtr.Zero)
+            {
+                if (swigCMemOwn)
+                {
+                    swigCMemOwn = false;
+                    NDalicManualPINVOKE.delete_ScrollStateChangedSignal(swigCPtr);
+                }
+                swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+            }
+
+            disposed = true;
+        }
+
+        public bool Empty()
+        {
+            bool ret = NDalicManualPINVOKE.ScrollStateChangedSignal_Empty(swigCPtr);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
+        public uint GetConnectionCount()
+        {
+            uint ret = NDalicManualPINVOKE.ScrollStateChangedSignal_GetConnectionCount(swigCPtr);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
+        public void Connect(System.Delegate func)
+        {
+            System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+            {
+                NDalicManualPINVOKE.ScrollStateChangedSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            }
+        }
+
+        public void Disconnect(System.Delegate func)
+        {
+            System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+            {
+                NDalicManualPINVOKE.ScrollStateChangedSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            }
+        }
+
+        public void Emit(View arg)
+        {
+            NDalicManualPINVOKE.ScrollStateChangedSignal_Emit(swigCPtr, View.getCPtr(arg));
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
+        public ScrollStateChangedSignal() : this(NDalicManualPINVOKE.new_ScrollStateChangedSignal(), true)
+        {
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
+    }
+
+}
index 95a31ca..7152e60 100755 (executable)
@@ -245,6 +245,7 @@ namespace Tizen.NUI.BaseComponents
         {
             get
             {
+                GetProperty(ImageView.Property.RESOURCE_URL).Get(out _url);
                 return _url;
             }
             set
index 2b7b678..26fd4c2 100755 (executable)
@@ -151,6 +151,93 @@ namespace Tizen.NUI.BaseComponents
 
         }
 
+        /// <summary>
+        /// Event arguments that passed via ScrollStateChanged signal.
+        /// </summary>
+        public class ScrollStateChangedEventArgs : EventArgs
+        {
+            private TextEditor _textEditor;
+            private ScrollState _scrollState;
+
+            /// <summary>
+            /// TextEditor - is the texteditor control which has the scroll state changed.
+            /// </summary>
+            public TextEditor TextEditor
+            {
+                get
+                {
+                    return _textEditor;
+                }
+                set
+                {
+                    _textEditor = value;
+                }
+            }
+
+            /// <summary>
+            /// ScrollState - is the texteditor control scroll state.
+            /// </summary>
+            public ScrollState ScrollState
+            {
+                get
+                {
+                    return _scrollState;
+                }
+                set
+                {
+                    _scrollState = value;
+                }
+            }
+        }
+
+        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+        private delegate void ScrollStateChangedCallbackDelegate(IntPtr textEditor, ScrollState state);
+        private EventHandler<ScrollStateChangedEventArgs> _textEditorScrollStateChangedEventHandler;
+        private ScrollStateChangedCallbackDelegate _textEditorScrollStateChangedCallbackDelegate;
+
+        /// <summary>
+        /// Event for ScrollStateChanged signal which can be used to subscribe/unsubscribe the event handler
+        /// provided by the user. ScrollStateChanged signal is emitted when the scroll state changes.<br>
+        /// </summary>
+        public event EventHandler<ScrollStateChangedEventArgs> ScrollStateChanged
+        {
+            add
+            {
+                if (_textEditorScrollStateChangedEventHandler == null)
+                {
+                    _textEditorScrollStateChangedCallbackDelegate = OnScrollStateChanged;
+                    ScrollStateChangedSignal(this).Connect(_textEditorScrollStateChangedCallbackDelegate);
+                }
+                _textEditorScrollStateChangedEventHandler += value;
+            }
+            remove
+            {
+                _textEditorScrollStateChangedEventHandler -= value;
+                if (_textEditorScrollStateChangedEventHandler == null && ScrollStateChangedSignal(this).Empty() == false)
+                {
+                    ScrollStateChangedSignal(this).Disconnect(_textEditorScrollStateChangedCallbackDelegate);
+                }
+            }
+        }
+
+        private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
+        {
+            ScrollStateChangedEventArgs e = new ScrollStateChangedEventArgs();
+
+            if (textEditor != null)
+            {
+                // Populate all members of "e" (ScrollStateChangedEventArgs) with real data
+                e.TextEditor = TextEditor.GetTextEditorFromPtr(textEditor);
+                e.ScrollState = state;
+            }
+
+            if (_textEditorScrollStateChangedEventHandler != null)
+            {
+                //here we send all data to user event handlers
+                _textEditorScrollStateChangedEventHandler(this, e);
+            }
+        }
+
         internal static TextEditor GetTextEditorFromPtr(global::System.IntPtr cPtr)
         {
             TextEditor ret = new TextEditor(cPtr, false);
@@ -262,6 +349,13 @@ namespace Tizen.NUI.BaseComponents
             return ret;
         }
 
+        internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
+        {
+            ScrollStateChangedSignal ret = new ScrollStateChangedSignal(NDalicManualPINVOKE.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
         {
             SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t(NDalicPINVOKE.TextEditor_InputStyleChangedSignal(swigCPtr), false);
diff --git a/Tizen.NUI/src/public/InputMethod.cs b/Tizen.NUI/src/public/InputMethod.cs
new file mode 100755 (executable)
index 0000000..c8aa42c
--- /dev/null
@@ -0,0 +1,380 @@
+// Copyright (c) 2017 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.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+namespace Tizen.NUI
+{
+
+    /// <summary>
+    /// A class encapsulating the input method map.
+    /// </summary>
+    public class InputMethod
+    {
+        private PanelLayoutType? _panelLayout = null;
+        private ActionButtonTitleType? _actionButton = null;
+        private AutoCapitalType? _autoCapital = null;
+        private int? _variation = null;
+
+        /// <summary>
+        /// Default constructor.
+        /// </summary>
+        public InputMethod()
+        {
+        }
+
+        /// <summary>
+        /// Get or set panel layout.
+        /// </summary>
+        public PanelLayoutType PanelLayout
+        {
+            get
+            {
+                return _panelLayout ?? PanelLayoutType.Normal;
+            }
+            set
+            {
+                _panelLayout = value;
+            }
+        }
+
+        /// <summary>
+        /// Get or set action button.
+        /// </summary>
+        public ActionButtonTitleType ActionButton
+        {
+            get
+            {
+                return _actionButton ?? ActionButtonTitleType.Default;
+            }
+            set
+            {
+                _actionButton = value;
+            }
+        }
+
+        /// <summary>
+        /// Get or set auto capital.
+        /// </summary>
+        public AutoCapitalType AutoCapital
+        {
+            get
+            {
+                return _autoCapital ?? AutoCapitalType.None;
+            }
+            set
+            {
+                _autoCapital = value;
+            }
+        }
+
+        /// <summary>
+        /// Get or set variation.
+        /// </summary>
+        public int Variation
+        {
+            get
+            {
+                return _variation ?? 0;
+            }
+            set
+            {
+                _variation = value;
+            }
+        }
+
+        /// <summary>
+        /// Get or set variation for normal layout.
+        /// </summary>
+        public NormalLayoutType NormalVariation
+        {
+            get
+            {
+                return (NormalLayoutType) (_variation ?? 0);
+            }
+            set
+            {
+                _variation = (int)value;
+            }
+        }
+
+        /// <summary>
+        /// Get or set variation for number only layout.
+        /// </summary>
+        public NumberOnlyLayoutType NumberOnlyVariation
+        {
+            get
+            {
+                return (NumberOnlyLayoutType) (_variation ?? 0);
+            }
+            set
+            {
+                _variation = (int)value;
+            }
+        }
+
+        /// <summary>
+        /// Get or set variation for password layout.
+        /// </summary>
+        public PasswordLayoutType PasswordVariation
+        {
+            get
+            {
+                return (PasswordLayoutType) (_variation ?? 0);
+            }
+            set
+            {
+                _variation = (int)value;
+            }
+        }
+
+        private PropertyMap ComposingInputMethodMap()
+        {
+            PropertyMap _outputMap = new PropertyMap();
+            if (_panelLayout != null) { _outputMap.Add("PANEL_LAYOUT", new PropertyValue((int)_panelLayout)); }
+            if (_actionButton != null) { _outputMap.Add("ACTION_BUTTON", new PropertyValue((int)_actionButton)); }
+            if (_autoCapital != null) { _outputMap.Add("AUTO_CAPITALISE", new PropertyValue((int)_autoCapital)); }
+            if (_variation != null) { _outputMap.Add("VARIATION", new PropertyValue((int)_variation)); }
+            return _outputMap;
+        }
+
+        /// <summary>
+        /// Get the input method map.
+        /// </summary>
+        public PropertyMap OutputMap
+        {
+            get
+            {
+                return ComposingInputMethodMap();
+            }
+        }
+
+        /// <summary>
+        /// SetType that can be changed in the system Input Method.
+        /// </summary>
+        public enum CategoryType
+        {
+            /// <summary>
+            /// Set Keyboard layout.
+            /// </summary>
+            PanelLayout,
+            /// <summary>
+            /// Set Action button title.
+            /// </summary>
+            ActionButtonTitle,
+            /// <summary>
+            /// Set Auto capitalise of input.
+            /// </summary>
+            AutoCapitalise,
+            /// <summary>
+            /// Set variation.
+            /// </summary>
+            Variation
+        }
+
+        /// <summary>
+        /// Autocapitalization Types.
+        /// </summary>
+        public enum AutoCapitalType
+        {
+            /// <summary>
+            /// No auto-capitalization when typing.
+            /// </summary>
+            None,
+            /// <summary>
+            /// Autocapitalize each word typed.
+            /// </summary>
+            Word,
+            /// <summary>
+            /// Autocapitalize the start of each sentence.
+            /// </summary>
+            Sentence,
+            /// <summary>
+            /// Autocapitalize all letters.
+            /// </summary>
+            Allcharacter
+        }
+
+        /// <summary>
+        /// Input panel (virtual keyboard) layout types..
+        /// </summary>
+        public enum PanelLayoutType
+        {
+            /// <summary>
+            /// Default layout.
+            /// </summary>
+            Normal,
+            /// <summary>
+            /// Number layout.
+            /// </summary>
+            Number,
+            /// <summary>
+            /// Email layout.
+            /// </summary>
+            Email,
+            /// <summary>
+            /// URL layout.
+            /// </summary>
+            URL,
+            /// <summary>
+            /// Phone number layout.
+            /// </summary>
+            PhoneNumber,
+            /// <summary>
+            /// IP layout.
+            /// </summary>
+            IP,
+            /// <summary>
+            /// Month layout.
+            /// </summary>
+            Month,
+            /// <summary>
+            /// Number layout.
+            /// </summary>
+            NumberOnly,
+            /// <summary>
+            /// Hexadecimal layout.
+            /// </summary>
+            HEX,
+            /// <summary>
+            /// Command-line terminal layout including ESC, Alt, Ctrl key, so on (no auto-correct, no auto-capitalization).
+            /// </summary>
+            Terminal,
+            /// <summary>
+            /// Like normal, but no auto-correct, no auto-capitalization etc.
+            /// </summary>
+            Password,
+            /// <summary>
+            /// Date and time layout.
+            /// </summary>
+            Datetime,
+            /// <summary>
+            /// Emoticon layout.
+            /// </summary>
+            Emoticon
+        }
+
+        /// <summary>
+        /// Specifies what the Input Method "action" button functionality is set to.
+        /// </summary>
+        public enum ActionButtonTitleType
+        {
+            /// <summary>
+            /// Default action.
+            /// </summary>
+            Default,
+            /// <summary>
+            /// Done.
+            /// </summary>
+            Done,
+            /// <summary>
+            /// Go action.
+            /// </summary>
+            Go,
+            /// <summary>
+            /// Join action.
+            /// </summary>
+            Join,
+            /// <summary>
+            /// Login action.
+            /// </summary>
+            Login,
+            /// <summary>
+            /// Next action.
+            /// </summary>
+            Next,
+            /// <summary>
+            /// Previous action.
+            /// </summary>
+            Previous,
+            /// <summary>
+            /// Search action.
+            /// </summary>
+            Search,
+            /// <summary>
+            /// Send action.
+            /// </summary>
+            Send,
+            /// <summary>
+            /// Sign in action.
+            /// </summary>
+            SignIn,
+            /// <summary>
+            /// Unspecified action.
+            /// </summary>
+            Unspecified,
+            /// <summary>
+            /// Nothing to do.
+            /// </summary>
+            None
+        }
+
+        /// <summary>
+        /// Available variation for Normal layout.
+        /// </summary>
+        public enum NormalLayoutType
+        {
+            /// <summary>
+            /// The plain normal layout.
+            /// </summary>
+            Normal,
+            /// <summary>
+            /// Filename layout. sysbols such as '/' should be disabled.
+            /// </summary>
+            WithFilename,
+            /// <summary>
+            /// The name of a person.
+            /// </summary>
+            WithPersonName
+        }
+
+        /// <summary>
+        /// Available variation for Number only layout.
+        /// </summary>
+        public enum NumberOnlyLayoutType
+        {
+            /// <summary>
+            /// The plain normal number layout.
+            /// </summary>
+            Normal,
+            /// <summary>
+            /// The number layout to allow a positive or negative sign at the start.
+            /// </summary>
+            WithSigned,
+            /// <summary>
+            /// The number layout to allow decimal point to provide fractional value.
+            /// </summary>
+            WithDecimal,
+            /// <summary>
+            /// The number layout to allow decimal point and negative sign.
+            /// </summary>
+            WithSignedAndDecimal
+        }
+
+        /// <summary>
+        /// Available variation for Password layout.
+        /// </summary>
+        public enum PasswordLayoutType
+        {
+            /// <summary>
+            /// The normal password layout.
+            /// </summary>
+            Normal,
+            /// <summary>
+            /// The password layout to allow only number.
+            /// </summary>
+            WithNumberOnly
+        }
+
+    }
+}
index 8b25bcd..cd559ae 100755 (executable)
@@ -1365,4 +1365,21 @@ namespace Tizen.NUI
         Explicit,   //Called By User
         Implicit,   //Called by DisposeQueue
     }
+
+    /// <summary>
+    /// An enum of scroll state of text eidtor.
+    /// </summary>
+    public enum ScrollState
+    {
+        /// <summary>
+        /// Scrolling is started.
+        /// </summary>
+        Started,
+
+        /// <summary>
+        /// Scrolling is finished.
+        /// </summary>
+        Finished
+    }
+
 }