FocusChangedEventArgs e = new FocusChangedEventArgs();
// Populate all members of "e" (FocusChangedEventArgs) with real data
- e.ViewCurrent = View.GetViewFromPtr(view1);
- e.ViewNext = View.GetViewFromPtr(view2);
+ e.ViewCurrent = Registry.GetManagedBaseHandleFromNativePtr(view1) as View;
+ e.ViewNext = Registry.GetManagedBaseHandleFromNativePtr(view2) as View;
if (_accessibilityManagerFocusChangedEventHandler != null)
{
FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
// Populate all members of "e" (FocusedViewActivatedEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
if (_accessibilityManagerFocusedViewActivatedEventHandler != null)
{
FocusOvershotEventArgs e = new FocusOvershotEventArgs();
// Populate all members of "e" (FocusOvershotEventArgs) with real data
- e.CurrentFocusedView = View.GetViewFromPtr(currentFocusedView);
+ e.CurrentFocusedView = Registry.GetManagedBaseHandleFromNativePtr(currentFocusedView) as View;
e.FocusOvershotDirection = direction;
if (_accessibilityManagerFocusOvershotEventHandler != null)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
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.FocusDirection)direction)).Handle;
+ View currentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
+ View proposedView = Registry.GetManagedBaseHandleFromNativePtr(proposed) as View;
+
+ return View.getCPtr(GetNextFocusableView(currentView, proposedView, (View.FocusDirection)direction)).Handle;
}
internal delegate global::System.IntPtr SwigDelegateCustomAlgorithmInterface_0(global::System.IntPtr current, global::System.IntPtr proposed, int direction);
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
FinishedEventArgs e = new FinishedEventArgs();
// Populate all members of "e" (FinishedEventArgs) with real data
- e.GaussianBlurView = GaussianBlurView.GetGaussianBlurViewFromPtr(data);
+ e.GaussianBlurView = Registry.GetManagedBaseHandleFromNativePtr(data) as GaussianBlurView;
if (_gaussianFinishedEventHandler != null)
{
}
}
- public static GaussianBlurView GetGaussianBlurViewFromPtr(global::System.IntPtr cPtr)
- {
- GaussianBlurView ret = new GaussianBlurView(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
public GaussianBlurView() : this(NDalicPINVOKE.GaussianBlurView_New__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
DetectedEventArgs e = new DetectedEventArgs();
// Populate all members of "e" (LongPressGestureEventArgs) with real data
- e.View = View.GetViewFromPtr(actor);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(actor) as View;
e.LongPressGesture = Tizen.NUI.LongPressGesture.GetLongPressGestureFromPtr(longPressGesture);
if (_longPressGestureEventHandler != null)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_ViewResourceReadySignal")]
public static extern void delete_ViewResourceReadySignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetRefObjectPtr")]
+ public static extern global::System.IntPtr GetRefObjectPtr(global::System.IntPtr jarg1);
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_BaseObject_SWIGUpcast")]
public static extern global::System.IntPtr BaseObject_SWIGUpcast(global::System.IntPtr jarg1);
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
DetectedEventArgs e = new DetectedEventArgs();
// Populate all members of "e" (PanGestureEventArgs) with real data
- e.View = View.GetViewFromPtr(actor);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(actor) as View;
e.PanGesture = Tizen.NUI.PanGesture.GetPanGestureFromPtr(panGesture);
if (_panGestureEventHandler != null)
DetectedEventArgs e = new DetectedEventArgs();
// Populate all members of "e" (DetectedEventArgs) with real data
- e.View = View.GetViewFromPtr(actor);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(actor) as View;
e.PinchGesture = Tizen.NUI.PinchGesture.GetPinchGestureFromPtr(pinchGesture);
if (_pinchGestureEventHandler != null)
internal static BaseHandle GetManagedBaseHandleFromNativePtr(BaseHandle baseHandle)
{
- // we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
-
RefObject refObj = baseHandle.GetObjectPtr();
IntPtr refObjectPtr = (IntPtr)RefObject.getCPtr(refObj);
- WeakReference viewReference;
- if (Instance._controlMap.TryGetValue(refObjectPtr, out viewReference))
- {
- BaseHandle ret = viewReference.Target as BaseHandle;
- return ret;
- }
- else
- {
- return null;
- }
+ // we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
+ return GetManagedBaseHandleFromRefObject(refObjectPtr);
}
- internal static BaseHandle GetManagedBaseHandleFromRefObject(IntPtr refObjectPtr)
+ internal static BaseHandle GetManagedBaseHandleFromNativePtr(IntPtr cPtr)
{
+ IntPtr refObjectPtr = NDalicPINVOKE.GetRefObjectPtr(cPtr);
+
// we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
+ return GetManagedBaseHandleFromRefObject(refObjectPtr);
+ }
+ internal static BaseHandle GetManagedBaseHandleFromRefObject(IntPtr refObjectPtr)
+ {
+ // we store a dictionary of ref-obects (C++ land) to managed obects (C# land)
WeakReference weakReference;
+
if (Instance._controlMap.TryGetValue(refObjectPtr, out weakReference))
{
BaseHandle ret = weakReference.Target as BaseHandle;
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
DetectedEventArgs e = new DetectedEventArgs();
// Populate all members of "e" (DetectedEventArgs) with real data
- e.View = View.GetViewFromPtr(actor);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(actor) as View;
e.TapGesture = Tizen.NUI.TapGesture.GetTapGestureFromPtr(tapGesture);
if (_tapGestureEventHandler != null)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
}
}
- internal static Animation GetAnimationFromPtr(global::System.IntPtr cPtr)
- {
- Animation ret = new Animation(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
private float MilliSecondsToSeconds(int millisec)
{
return (float)millisec / 1000.0f;
ResourceReadyEventArgs e = new ResourceReadyEventArgs();
if(data != null)
{
- e.View = View.GetViewFromPtr(data);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
}
if (_resourceReadyEventHandler != null)
}
/// <summary>
- /// Downcasts a handle to ImageView handle.<br>
- /// If handle points to a ImageView, the downcast produces valid handle.<br>
- /// If not, the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a ImageView or an uninitialized handle</returns>
- internal new static ImageView DownCast(BaseHandle handle)
- {
- ImageView ret = new ImageView(NDalicPINVOKE.ImageView_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- /// <summary>
/// Sets this ImageView from the given URL.<br>
/// If the URL is empty, ImageView will not display anything.<br>
/// </summary>
TextChangedEventArgs e = new TextChangedEventArgs();
// Populate all members of "e" (TextChangedEventArgs) with real data
- e.TextEditor = TextEditor.GetTextEditorFromPtr(textEditor);
+ e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
if (_textEditorTextChangedEventHandler != null)
{
if (textEditor != null)
{
// Populate all members of "e" (ScrollStateChangedEventArgs) with real data
- e.TextEditor = TextEditor.GetTextEditorFromPtr(textEditor);
+ e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
e.ScrollState = state;
}
}
}
- internal static TextEditor GetTextEditorFromPtr(global::System.IntPtr cPtr)
- {
- TextEditor ret = new TextEditor(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
internal class Property
{
internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to TextEditor.
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a TextEditor or an empty handle</returns>
- internal new static TextEditor DownCast(BaseHandle handle)
- {
- TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal TextEditorSignal TextChangedSignal()
{
TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
TextChangedEventArgs e = new TextChangedEventArgs();
// Populate all members of "e" (TextChangedEventArgs) with real data
- e.TextField = TextField.GetTextFieldFromPtr(textField);
+ e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
if (_textFieldTextChangedEventHandler != null)
{
MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
// Populate all members of "e" (MaxLengthReachedEventArgs) with real data
- e.TextField = TextField.GetTextFieldFromPtr(textField);
+ e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
if (_textFieldMaxLengthReachedEventHandler != null)
{
}
- internal static TextField GetTextFieldFromPtr(global::System.IntPtr cPtr)
- {
- TextField ret = new TextField(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
internal class Property
{
internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to TextField.
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a TextField or an empty handle</returns>
- internal new static TextField DownCast(BaseHandle handle)
- {
- TextField ret = new TextField(NDalicPINVOKE.TextField_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal TextFieldSignal TextChangedSignal()
{
TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
- /// <summary>
- /// Downcasts a handle to TextLabel.
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- internal new static TextLabel DownCast(BaseHandle handle)
- {
- TextLabel ret = new TextLabel(NDalicPINVOKE.TextLabel_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
/// <summary>
/// Text property.<br>
/// The text to display in UTF-8 format.<br>
internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-
- // Register this instance of view in the registry.
- Registry.Register(this);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
if (data != null)
{
- e.View = View.GetViewFromPtr(data);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
}
e.Visibility = visibility;
e.Type = type;
}
}
-
- internal static View GetViewFromPtr(global::System.IntPtr cPtr)
- {
- View ret = new View(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal IntPtr GetPtrfromView()
{
return (IntPtr)swigCPtr;
return ret;
}
- /// <summary>
- /// Downcasts a handle to class which inherit View handle.
- /// </summary>
- /// <typeparam name="T">Class which inherit View</typeparam>
- /// <param name="view">View to an object</param>
- /// <returns>A object which inherit View</returns>
- public static T DownCast<T>(View view) where T : View
- {
- View ret = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
- if (ret != null)
- {
- return (T)ret;
- }
- return null;
- }
-
private View ConvertIdToView(uint id)
{
View view = null;
public View GetChildAt(uint index)
{
IntPtr cPtr = NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index);
- cPtr = NDalicPINVOKE.View_SWIGUpcast(cPtr);
- cPtr = NDalicPINVOKE.Handle_SWIGUpcast(cPtr);
- BaseHandle ret = new BaseHandle(cPtr, false);
-
- View temp = Registry.GetManagedBaseHandleFromNativePtr(ret) as View;
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- return temp ?? null;
+ return ret ?? null;
}
/// <summary>
/// <returns>A handle to the view if found, or an empty handle if not</returns>
public View FindChildByName(string viewName)
{
- View ret = new View(NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName), true);
+ IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
+
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
internal View FindChildById(uint id)
{
- View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
+ IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
+
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
internal View GetParent()
{
- View ret = new View(NDalicPINVOKE.Actor_GetParent(swigCPtr), true);
+ IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
+
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
{
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+
+ // Register this instance of BaseHandle in the registry.
+ Registry.Register(this);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseHandle obj)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+ //Unreference this instance from Registry.
+ Registry.Unregister(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//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;
-
+
~Degree()
{
if(!isDisposeQueued)
}
- internal new static FlexContainer DownCast(BaseHandle handle)
- {
- FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
/// <summary>
/// Enumeration for the direction of the main axis in the flex container. This determines
/// the direction that flex items are laid out in the flex container.
if (current != global::System.IntPtr.Zero)
{
- e.CurrentView = View.GetViewFromPtr(current);
+ e.CurrentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
}
if (proposed != global::System.IntPtr.Zero)
{
- e.ProposedView = View.GetViewFromPtr(proposed);
+ e.ProposedView = Registry.GetManagedBaseHandleFromNativePtr(proposed) as View;
}
e.Direction = direction;
{
FocusChangedEventArgs e = new FocusChangedEventArgs();
- e.CurrentView = View.GetViewFromPtr(current);
- e.NextView = View.GetViewFromPtr(next);
+ e.CurrentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
+ e.NextView = Registry.GetManagedBaseHandleFromNativePtr(next) as View;
if (_focusChangedEventHandler != null)
{
{
FocusGroupChangedEventArgs e = new FocusGroupChangedEventArgs();
- e.CurrentView = View.GetViewFromPtr(current);
+ e.CurrentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
e.ForwardDirection = forwardDirection;
if (_focusGroupChangedEventHandler != null)
{
FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
- e.View = View.GetViewFromPtr(view);
+ e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
if (_focusedViewEnterKeyEventHandler != null)
{
/// <returns>A handle to the current focused View or an empty handle if no View is focused</returns>
public View GetCurrentFocusView()
{
- View ret = new View(NDalicManualPINVOKE.FocusManager_GetCurrentFocusActor(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- if (ret.HasBody() == false)
- {
- return null;
- }
+ IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetCurrentFocusActor(swigCPtr);
+
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
return ret;
}
/// <returns>The focus group the given view belongs to or an empty handle if the given view</returns>
public View GetFocusGroup(View view)
{
- View ret = new View(NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, View.getCPtr(view)), true);
+ IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, View.getCPtr(view));
+
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
+
+ /*View ret = new View(NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, View.getCPtr(view)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
if (ret.HasBody() == false)
{
return null;
- }
+ }*/
+
return ret;
}
internal View GetFocusIndicatorView()
{
- View ret = new View(NDalicManualPINVOKE.FocusManager_GetFocusIndicatorActor(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- if (ret.HasBody() == false)
- {
- return null;
- }
+ IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetFocusIndicatorActor(swigCPtr);
+
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
return ret;
}
public override View GetNextFocusableView(View current, View proposed, View.FocusDirection direction)
{
- View currentView = View.DownCast<View>(current);
- View proposedView = View.DownCast<View>(proposed);
- return _customFocusAlgorithm.GetNextFocusableView(currentView, proposedView, direction);
+ return _customFocusAlgorithm.GetNextFocusableView(current, proposed, direction);
}
}
}
}
- internal static Geometry DownCast(BaseHandle handle)
- {
- Geometry ret = new Geometry(NDalicPINVOKE.Geometry_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public uint AddVertexBuffer(PropertyBuffer vertexBuffer)
{
uint ret = NDalicPINVOKE.Geometry_AddVertexBuffer(swigCPtr, PropertyBuffer.getCPtr(vertexBuffer));
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to KeyFrames handle.<br>
- /// If handle points to a KeyFrames object, the downcast produces valid handle.<br>
- /// If not, the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a KeyFrames object or an uninitialized handle</returns>
- internal static KeyFrames DownCast(BaseHandle handle)
- {
- KeyFrames ret = new KeyFrames(NDalicPINVOKE.KeyFrames_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
/// <summary>
/// Gets the type of the key frame.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to Layer handle.<br>
- /// If handle points to a Layer, the downcast produces valid handle.<br>
- /// If not, the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a Layer or an uninitialized handle</returns>
- internal new static Layer DownCast(BaseHandle handle)
- {
- Layer ret = new Layer(NDalicPINVOKE.Layer_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
/// <summary>
/// Search through this layer's hierarchy for an view with the given unique ID.
public View GetChildAt(uint index)
{
System.IntPtr cPtr = NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index);
- cPtr = NDalicPINVOKE.View_SWIGUpcast(cPtr);
- cPtr = NDalicPINVOKE.Handle_SWIGUpcast(cPtr);
-
- BaseHandle ret = new BaseHandle(cPtr, false);
- View temp = Registry.GetManagedBaseHandleFromNativePtr(ret) as View;
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return temp ?? null;
+ return ret ?? null;
}
/// <summary>
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
}\r
\r
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam) \r
-\r
//A Flag to check who called Dispose(). (By User or DisposeQueue)\r
private bool isDisposeQueued = false;\r
//A Flat to check if it is already disposed.\r
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
ValueChangedEventArgs e = new ValueChangedEventArgs();
// Populate all members of "e" (ValueChangedEventArgs) with real page
- e.ProgressBar = ProgressBar.GetProgressBarFromPtr(progressBar);
+ e.ProgressBar = Registry.GetManagedBaseHandleFromNativePtr(progressBar) as ProgressBar;
e.ProgressValue = progressValue;
e.SecondaryProgressValue = secondaryProgressValue;
}
}
- /// <summary>
- /// </summary>
- internal static ProgressBar GetProgressBarFromPtr(global::System.IntPtr cPtr)
- {
- ProgressBar ret = new ProgressBar(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal class Property
{
internal static readonly int PROGRESS_VALUE = NDalicPINVOKE.ProgressBar_Property_PROGRESS_VALUE_get();
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
}
- internal static PropertyBuffer DownCast(BaseHandle handle)
- {
- PropertyBuffer ret = new PropertyBuffer(NDalicPINVOKE.PropertyBuffer_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public void SetData(System.IntPtr data, uint size)
{
NDalicPINVOKE.PropertyBuffer_SetData(swigCPtr, data, size);
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
/// Constructor
/// </summary>
/// <param name="relativeVector3">RelativeVector3 to create this vector from</param>
- public RelativeVector4(RelativeVector3 relativeVector3) : this(NDalicPINVOKE.new_Vector4__SWIG_4(RelativeVector3.getCPtr(relativeVector3)), true)
+ public RelativeVector4(RelativeVector3 relativeVector3) : this(NDalicPINVOKE.new_Vector4__SWIG_4(RelativeVector3.getCPtr(relativeVector3)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
}
- internal new static Renderer DownCast(BaseHandle handle)
- {
- Renderer ret = new Renderer(NDalicPINVOKE.Renderer_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public void SetGeometry(Geometry geometry)
{
NDalicPINVOKE.Renderer_SetGeometry(swigCPtr, Geometry.getCPtr(geometry));
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
}
- internal static Sampler DownCast(BaseHandle handle)
- {
- Sampler ret = new Sampler(NDalicPINVOKE.Sampler_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public void SetFilterMode(FilterModeType minFilter, FilterModeType magFilter)
{
NDalicPINVOKE.Sampler_SetFilterMode(swigCPtr, (int)minFilter, (int)magFilter);
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal new static Scrollable DownCast(BaseHandle handle)
- {
- Scrollable ret = new Scrollable(NDalicPINVOKE.Scrollable_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
private bool IsOvershootEnabled()
{
bool ret = NDalicPINVOKE.Scrollable_IsOvershootEnabled(swigCPtr);
}
- internal new static Shader DownCast(BaseHandle handle)
- {
- Shader ret = new Shader(NDalicPINVOKE.Shader_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public Tizen.NUI.PropertyMap Program
{
get
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
StyleChangedEventArgs e = new StyleChangedEventArgs();
// Populate all members of "e" (StyleChangedEventArgs) with real data
- e.StyleManager = StyleManager.GetStyleManagerFromPtr(styleManager);
+ e.StyleManager = Registry.GetManagedBaseHandleFromNativePtr(styleManager) as StyleManager;
e.StyleChange = styleChange;
if (_styleManagerStyleChangedEventHandler != null)
}
}
- internal static StyleManager GetStyleManagerFromPtr(global::System.IntPtr cPtr)
- {
- StyleManager ret = new StyleManager(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
/// <summary>
/// Creates a StyleManager handle.<br>
/// this can be initialized with StyleManager::Get().<br>
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
}
/// <summary>
- /// Downcasts a handle to TableView handle.<br>
- /// If handle points to a TableView, the downcast produces valid handle.<br>
- /// If not, the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a TableView or an uninitialized handle</returns>
- internal new static TableView DownCast(BaseHandle handle)
- {
- TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Adds a child to the table.<br>
/// If the row or column index is outside the table, the table gets resized bigger.<br>
/// </summary>
}
- internal static Texture DownCast(BaseHandle handle)
- {
- Texture ret = new Texture(NDalicPINVOKE.Texture_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public bool Upload(PixelData pixelData)
{
bool ret = NDalicPINVOKE.Texture_Upload__SWIG_0(swigCPtr, PixelData.getCPtr(pixelData));
}
- internal static TextureSet DownCast(BaseHandle handle)
- {
- TextureSet ret = new TextureSet(NDalicPINVOKE.TextureSet_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public void SetTexture(uint index, Texture texture)
{
NDalicPINVOKE.TextureSet_SetTexture(swigCPtr, index, Texture.getCPtr(texture));
}
/// <summary>
- /// Downcasts a handle to Timer handle.
- /// </summary>
- /// <param name="handle">handle to An object</param>
- /// <returns>handle to a Timer object or an uninitialized handle</returns>
- internal static Timer DownCast(BaseHandle handle)
- {
- Timer ret = new Timer(NDalicPINVOKE.Timer_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Starts timer.<br>
/// In case a Timer is already running, its time is reset and timer is restarted.<br>
/// </summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal static TransitionData DownCast(BaseHandle handle)
- {
- TransitionData ret = new TransitionData(NDalicPINVOKE.TransitionData_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
public TransitionData(TransitionData handle) : this(NDalicPINVOKE.new_TransitionData__SWIG_1(TransitionData.getCPtr(handle)), true)
{
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
}
-
- internal static Button GetButtonFromPtr(global::System.IntPtr cPtr)
- {
- Button ret = new Button(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
/// <summary>
/// Gets/Sets the unselected button foreground/icon visual
/// </summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to Button handle.<br>
- /// If handle points to a Button, the downcast produces valid handle.<br>
- /// If not the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>A handle to a Button or an uninitialized handle</returns>
- internal new static Button DownCast(BaseHandle handle)
- {
- Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal ButtonSignal PressedSignal()
{
ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
//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.
+ //because the execution order of Finalizes is non-deterministic.
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
}
- internal new static CheckBoxButton DownCast(BaseHandle handle)
- {
- CheckBoxButton ret = new CheckBoxButton(NDalicPINVOKE.CheckBoxButton_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
}
}
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
}
/// <summary>
- /// Downcasts a handle to Popup handle.<br>
- /// If handle points to a Popup, the downcast produces valid handle.<br>
- /// If not the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>handle to a Popup or an uninitialized handle</returns>
- public new static Popup DownCast(BaseHandle handle)
- {
- Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Sets a title for this Popup.
/// </summary>
/// <param name="titleView">The actor to set a title</param>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
- /// <summary>
- /// Downcasts a handle to PushButton handle.<br>
- /// If handle points to a PushButton, the downcast produces valid handle.<br>
- /// If not the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>handle to a PushButton or an uninitialized handle</returns>
- internal new static PushButton DownCast(BaseHandle handle)
- {
- PushButton ret = new PushButton(NDalicPINVOKE.PushButton_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
}
}
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
- /// <summary>
- /// Downcasts a handle to RadioButton handle.
- /// If handle points to a RadioButton, the downcast produces valid handle.
- /// If not, the returned handle is left uninitialized.
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>A handle to a RadioButton or an uninitialized handle</returns>
- internal new static RadioButton DownCast(BaseHandle handle)
- {
- RadioButton ret = new RadioButton(NDalicPINVOKE.RadioButton_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
}
-
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to ScrollBar handle.<br>
- /// If handle points to a ScrollBar, the downcast produces valid handle.<br>
- /// If not, the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a ScrollBar or an uninitialized handle</returns>
- internal new static ScrollBar DownCast(BaseHandle handle)
- {
- ScrollBar ret = new ScrollBar(NDalicPINVOKE.ScrollBar_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal void SetScrollPropertySource(Animatable handle, int propertyScrollPosition, int propertyMinScrollPosition, int propertyMaxScrollPosition, int propertyScrollContentSize)
{
NDalicPINVOKE.ScrollBar_SetScrollPropertySource(swigCPtr, Animatable.getCPtr(handle), propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize);
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
}
- internal new static ScrollView DownCast(BaseHandle handle)
- {
- ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public AlphaFunction GetScrollSnapAlphaFunction()
{
AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
}
- internal new static ToggleButton DownCast(BaseHandle handle)
- {
- ToggleButton ret = new ToggleButton(NDalicPINVOKE.ToggleButton_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public Tizen.NUI.PropertyArray StateVisuals
{
get
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
FinishedEventArgs e = new FinishedEventArgs();
// Populate all members of "e" (FinishedEventArgs) with real data
- e.VideoView = VideoView.GetVideoViewFromPtr(data);
+ e.VideoView = Registry.GetManagedBaseHandleFromNativePtr(data) as VideoView;
if (_videoViewFinishedEventHandler != null)
{
}
}
- internal static VideoView GetVideoViewFromPtr(global::System.IntPtr cPtr)
- {
- VideoView ret = new VideoView(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
internal class Property
{
internal static readonly int VIDEO = NDalicPINVOKE.VideoView_Property_VIDEO_get();
}
/// <summary>
- /// Downcasts a handle to VideoView handle.<br>
- /// If handle points to a VideoView, the downcast produces valid handle.<br>
- /// If not, the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>Handle to a VideoView or an uninitialized handle</returns>
- internal new static VideoView DownCast(BaseHandle handle)
- {
- VideoView ret = new VideoView(NDalicPINVOKE.VideoView_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Starts the video playback.
/// </summary>
public void Play()
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this from if a static instance refer to this.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
viewWrapperImpl = implementation;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
- internal new static ViewWrapper DownCast(BaseHandle handle)
- {
- ViewWrapper ret = new ViewWrapper(NDalicManualPINVOKE.ViewWrapper_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
}
}
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
-
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.