Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / FocusManager.cs
similarity index 94%
rename from plugins/dali-sharp/sharp/internal/FocusManager.cs
rename to plugins/dali-sharp/sharp/public/FocusManager.cs
index 2189b55..df7e0b6 100755 (executable)
@@ -173,7 +173,7 @@ public class PreFocusChangeEventArgs : EventArgs
 {
    private View _current;
    private View _proposed;
-   private View.KeyboardFocus.Direction _direction;
+   private View.Focus.Direction _direction;
 
    /**
     * @brief Current - is the current focused View.
@@ -211,7 +211,7 @@ public class PreFocusChangeEventArgs : EventArgs
     * @brief Direction - is the direction of Focus change.
     *
     */
-    public View.KeyboardFocus.Direction Direction
+    public View.Focus.Direction Direction
     {
         get
         {
@@ -237,7 +237,7 @@ public class PreFocusChangeEventArgs : EventArgs
   public delegate View PreFocusChangeEventHandler(object source, PreFocusChangeEventArgs e);
 
   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-  public delegate IntPtr PreFocusChangeEventCallbackDelegate(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction);
+  public delegate IntPtr PreFocusChangeEventCallbackDelegate(IntPtr current, IntPtr proposed, View.Focus.Direction direction);
   private PreFocusChangeEventHandler _FocusManagerPreFocusChangeEventHandler;
   private PreFocusChangeEventCallbackDelegate _FocusManagerPreFocusChangeEventCallbackDelegate;
 
@@ -288,7 +288,7 @@ public class PreFocusChangeEventArgs : EventArgs
   }
 
   // Callback for FocusManager PreFocusChangeSignal
-  private IntPtr OnPreFocusChange(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction)
+  private IntPtr OnPreFocusChange(IntPtr current, IntPtr proposed, View.Focus.Direction direction)
   {
       View view = null;
       PreFocusChangeEventArgs e = new PreFocusChangeEventArgs();
@@ -427,11 +427,11 @@ public class PreFocusChangeEventArgs : EventArgs
   }
 
   /**
-    * @brief Event for FocusedViewEnterKeyPressed signal which can be used to subscribe/unsubscribe the event handler
+    * @brief Event for FocusedViewActivated signal which can be used to subscribe/unsubscribe the event handler
     * (in the type of FocusedViewEnterKeyEventHandler) provided by the user.
-    * FocusedViewEnterKeyPressed signal is emitted when the current focused view has the enter key pressed on it.
+    * FocusedViewActivated signal is emitted when the current focused view has the enter key pressed on it.
     */
-  public event FocusedViewEnterKeyEventHandler FocusedViewEnterKeyPressed
+  internal event FocusedViewEnterKeyEventHandler FocusedViewActivated
   {
      add
      {
@@ -442,7 +442,7 @@ public class PreFocusChangeEventArgs : EventArgs
            {
               _FocusManagerFocusedViewEnterKeyEventHandler += value;
 
-              _FocusManagerFocusedViewEnterKeyEventCallbackDelegate = new FocusedViewEnterKeyEventCallbackDelegate(OnFocusedViewEnterKey);
+              _FocusManagerFocusedViewEnterKeyEventCallbackDelegate = new FocusedViewEnterKeyEventCallbackDelegate(OnFocusedViewActivate);
               this.FocusedViewEnterKeySignal().Connect(_FocusManagerFocusedViewEnterKeyEventCallbackDelegate);
            }
         }
@@ -463,7 +463,7 @@ public class PreFocusChangeEventArgs : EventArgs
   }
 
   // Callback for FocusManager FocusedViewEnterKeySignal
-  private void OnFocusedViewEnterKey(IntPtr view)
+  private void OnFocusedViewActivate(IntPtr view)
   {
      FocusedViewEnterKeyEventArgs e = new FocusedViewEnterKeyEventArgs();
 
@@ -481,7 +481,7 @@ public class PreFocusChangeEventArgs : EventArgs
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public static FocusManager Get() {
+  internal static FocusManager Get() {
     FocusManager ret = new FocusManager(NDalicManualPINVOKE.FocusManager_Get(), true);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
@@ -499,7 +499,7 @@ public class PreFocusChangeEventArgs : EventArgs
     return ret;
   }
 
-  public bool MoveFocus(View.KeyboardFocus.Direction direction) {
+  public bool MoveFocus(View.Focus.Direction direction) {
     bool ret = NDalicManualPINVOKE.FocusManager_MoveFocus(swigCPtr, (int)direction);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
@@ -557,25 +557,25 @@ public class PreFocusChangeEventArgs : EventArgs
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public PreFocusChangeSignal PreFocusChangeSignal() {
+  internal PreFocusChangeSignal PreFocusChangeSignal() {
     PreFocusChangeSignal ret = new PreFocusChangeSignal(NDalicManualPINVOKE.FocusManager_PreFocusChangeSignal(swigCPtr), false);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
-  public FocusChangedSignal FocusChangedSignal() {
+  internal FocusChangedSignal FocusChangedSignal() {
     FocusChangedSignal ret = new FocusChangedSignal(NDalicManualPINVOKE.FocusManager_FocusChangedSignal(swigCPtr), false);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
-  public FocusGroupChangedSignal FocusGroupChangedSignal() {
+  internal FocusGroupChangedSignal FocusGroupChangedSignal() {
     FocusGroupChangedSignal ret = new FocusGroupChangedSignal(NDalicManualPINVOKE.FocusManager_FocusGroupChangedSignal(swigCPtr), false);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
-  public ViewSignal FocusedViewEnterKeySignal() {
+  internal ViewSignal FocusedViewEnterKeySignal() {
     ViewSignal ret = new ViewSignal(NDalicManualPINVOKE.FocusManager_FocusedActorEnterKeySignal(swigCPtr), false);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
@@ -593,7 +593,7 @@ public class PreFocusChangeEventArgs : EventArgs
 
   public interface ICustomFocusAlgorithm
   {
-      View GetNextFocusableView(View current, View proposed, View.KeyboardFocus.Direction direction);
+      View GetNextFocusableView(View current, View proposed, View.Focus.Direction direction);
   }
 
   private class CustomAlgorithmInterfaceWrapper : CustomAlgorithmInterface
@@ -609,7 +609,7 @@ public class PreFocusChangeEventArgs : EventArgs
           _customFocusAlgorithm = customFocusAlgorithm;
       }
 
-      public override View GetNextFocusableView(View current, View proposed, View.KeyboardFocus.Direction direction)
+      public override View GetNextFocusableView(View current, View proposed, View.Focus.Direction direction)
       {
           View currentView = View.DownCast<View>(current);
           View proposedView = View.DownCast<View>(proposed);