X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FCustomAlgorithmInterface.cs;h=a146522acf5aee6d61d898e3ff5f95c76d5294de;hp=4cf224d232b5c81786d462c905dd2743d51fea53;hb=318378db7fbb0bcfb08c3c603f54857d6f5c9639;hpb=d375dceca213569317d81d17cd2d2a4b45122cda diff --git a/plugins/dali-sharp/sharp/internal/CustomAlgorithmInterface.cs b/plugins/dali-sharp/sharp/internal/CustomAlgorithmInterface.cs index 4cf224d..a146522 100644 --- a/plugins/dali-sharp/sharp/internal/CustomAlgorithmInterface.cs +++ b/plugins/dali-sharp/sharp/internal/CustomAlgorithmInterface.cs @@ -10,7 +10,7 @@ namespace Dali { -public class CustomAlgorithmInterface : global::System.IDisposable { +internal class CustomAlgorithmInterface : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; @@ -28,7 +28,7 @@ public class CustomAlgorithmInterface : global::System.IDisposable { } public virtual void Dispose() { - if (!Stage.IsInstalled()) { + if (!Window.IsInstalled()) { DisposeQueue.Instance.Add(this); return; } @@ -46,20 +46,20 @@ public class CustomAlgorithmInterface : global::System.IDisposable { } - public virtual Actor GetNextFocusableActor(Actor current, Actor proposed, View.KeyboardFocus.Direction direction) { - Actor ret = new Actor(NDalicPINVOKE.CustomAlgorithmInterface_GetNextFocusableActor(swigCPtr, Actor.getCPtr(current), Actor.getCPtr(proposed), (int)direction), true); + public virtual View GetNextFocusableView(View current, View proposed, View.Focus.Direction direction) { + View ret = new View(NDalicPINVOKE.CustomAlgorithmInterface_GetNextFocusableActor(swigCPtr, View.getCPtr(current), View.getCPtr(proposed), (int)direction), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public CustomAlgorithmInterface() : this(NDalicPINVOKE.new_CustomAlgorithmInterface(), true) { + internal CustomAlgorithmInterface() : this(NDalicPINVOKE.new_CustomAlgorithmInterface(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); SwigDirectorConnect(); } private void SwigDirectorConnect() { - if (SwigDerivedClassHasMethod("GetNextFocusableActor", swigMethodTypes0)) - swigDelegate0 = new SwigDelegateCustomAlgorithmInterface_0(SwigDirectorGetNextFocusableActor); + if (SwigDerivedClassHasMethod("GetNextFocusableView", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateCustomAlgorithmInterface_0(SwigDirectorGetNextFocusableView); NDalicPINVOKE.CustomAlgorithmInterface_director_connect(swigCPtr, swigDelegate0); } @@ -69,15 +69,15 @@ public class CustomAlgorithmInterface : global::System.IDisposable { return hasDerivedMethod; } - private global::System.IntPtr SwigDirectorGetNextFocusableActor(global::System.IntPtr current, global::System.IntPtr proposed, int direction) { - return Actor.getCPtr(GetNextFocusableActor(new Actor(current, true), new Actor(proposed, true), (View.KeyboardFocus.Direction)direction)).Handle; + private global::System.IntPtr SwigDirectorGetNextFocusableView(global::System.IntPtr current, global::System.IntPtr proposed, int direction) { + return View.getCPtr(GetNextFocusableView(new View(current, true), new View(proposed, true), (View.Focus.Direction)direction)).Handle; } - public delegate global::System.IntPtr SwigDelegateCustomAlgorithmInterface_0(global::System.IntPtr current, global::System.IntPtr proposed, int direction); + internal delegate global::System.IntPtr SwigDelegateCustomAlgorithmInterface_0(global::System.IntPtr current, global::System.IntPtr proposed, int direction); private SwigDelegateCustomAlgorithmInterface_0 swigDelegate0; - private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(Actor), typeof(Actor), typeof(View.KeyboardFocus.Direction) }; + private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(View), typeof(View), typeof(View.Focus.Direction) }; } }