Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / ViewRegistry.cs
index a359297..5fad5fa 100755 (executable)
@@ -68,7 +68,7 @@ namespace Dali
   /// </remarks>
   ///
   ///
-  public class ScriptableProperty : System.Attribute
+  internal class ScriptableProperty : System.Attribute
   {
     public enum ScriptableType
     {
@@ -117,7 +117,7 @@ namespace Dali
   ///
   ///
   /// </summary>
-  public sealed class ViewRegistry
+  internal sealed class ViewRegistry
   {
     /// <summary>
     /// ViewRegistry is a singleton
@@ -216,7 +216,7 @@ namespace Dali
       {
         // Create the control
         CustomView newControl = controlConstructor ();
-        return newControl.GetPtrfromActor();  // return pointer to handle
+        return newControl.GetPtrfromView();  // return pointer to handle
       }
       else
       {
@@ -287,18 +287,18 @@ namespace Dali
       }
     }
 
-    public static View GetViewFromActor( Actor actor )
+    public static View GetViewFromActor( View view )
     {
       // we store a dictionary of ref-obects (C++ land) to custom views (C# land)
 
-      RefObject refObj = actor.GetObjectPtr ();
+      RefObject refObj = view.GetObjectPtr ();
       IntPtr refObjectPtr = (IntPtr) RefObject.getCPtr(refObj);
 
       WeakReference viewReference;
       if ( Instance._controlMap.TryGetValue ( refObjectPtr, out viewReference) )
       {
-        View view = viewReference.Target as View;
-        return view;
+        View retview = viewReference.Target as View;
+        return retview;
       }
       else
       {
@@ -420,7 +420,7 @@ namespace Dali
         if ( type.Equals (typeof(Int32)) )
         {
           int value = 0;
-          ok = propValue.Get( ref value );
+          ok = propValue.Get( out value );
           if ( ok )
           {
             propertyInfo.SetValue (view, value);
@@ -429,7 +429,7 @@ namespace Dali
         else if ( type.Equals (typeof(bool)) )
         {
           bool value = false;
-          ok = propValue.Get( ref value );
+          ok = propValue.Get( out value );
           if ( ok )
           {
             propertyInfo.SetValue (view, value);
@@ -438,7 +438,7 @@ namespace Dali
         else if ( type.Equals (typeof(float)) )
         {
           float value = 0;
-          ok = propValue.Get( ref value );
+          ok = propValue.Get( out value );
           if ( ok )
           {
             propertyInfo.SetValue (view, value);