NUILog.Error("HorizontalAlignment get error!");
}
- switch (temp)
- {
- case "BEGIN":
- return HorizontalAlignment.Begin;
- case "CENTER":
- return HorizontalAlignment.Center;
- case "END":
- return HorizontalAlignment.End;
- default:
- return HorizontalAlignment.Begin;
- }
+ return temp.GetValueByDescription<HorizontalAlignment>();
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
NUILog.Error("HorizontalAlignment get error!");
}
- switch (temp)
- {
- case "BEGIN": return HorizontalAlignment.Begin;
- case "CENTER": return HorizontalAlignment.Center;
- case "END": return HorizontalAlignment.End;
- default: return HorizontalAlignment.Begin;
- }
+ return temp.GetValueByDescription<HorizontalAlignment>();
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
NUILog.Error("VerticalAlignment get error!");
}
- switch (temp)
- {
- case "TOP": return VerticalAlignment.Top;
- case "CENTER": return VerticalAlignment.Center;
- case "BOTTOM": return VerticalAlignment.Bottom;
- default: return VerticalAlignment.Bottom;
- }
+ return temp.GetValueByDescription<VerticalAlignment>();
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
string valueToString = "";
if (newValue != null)
{
- switch ((HorizontalAlignment)newValue)
- {
- case HorizontalAlignment.Begin: { valueToString = "BEGIN"; break; }
- case HorizontalAlignment.Center: { valueToString = "CENTER"; break; }
- case HorizontalAlignment.End: { valueToString = "END"; break; }
- default: { valueToString = "BEGIN"; break; }
- }
+ valueToString = ((HorizontalAlignment)newValue).GetDescription<HorizontalAlignment>();
Tizen.NUI.Object.SetProperty(textLabel.swigCPtr, TextLabel.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
}
},
{
NUILog.Error("HorizontalAlignment get error!");
}
- switch (temp)
- {
- case "BEGIN": return HorizontalAlignment.Begin;
- case "CENTER": return HorizontalAlignment.Center;
- case "END": return HorizontalAlignment.End;
- default: return HorizontalAlignment.Begin;
- }
+ return temp.GetValueByDescription<HorizontalAlignment>();
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
string valueToString = "";
if (newValue != null)
{
- switch ((VerticalAlignment)newValue)
- {
- case VerticalAlignment.Top: { valueToString = "TOP"; break; }
- case VerticalAlignment.Center: { valueToString = "CENTER"; break; }
- case VerticalAlignment.Bottom: { valueToString = "BOTTOM"; break; }
- default: { valueToString = "BOTTOM"; break; }
- }
+ valueToString = ((VerticalAlignment)newValue).GetDescription<VerticalAlignment>();
Tizen.NUI.Object.SetProperty(textLabel.swigCPtr, TextLabel.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
}
},
NUILog.Error("VerticalAlignment get error!");
}
- switch (temp)
- {
- case "TOP": return VerticalAlignment.Top;
- case "CENTER": return VerticalAlignment.Center;
- case "BOTTOM": return VerticalAlignment.Bottom;
- default: return VerticalAlignment.Bottom;
- }
+ return temp.GetValueByDescription<VerticalAlignment>();
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
{
NUILog.Error("AutoScrollStopMode get error!");
}
- switch (temp)
- {
- case "FINISH_LOOP": return AutoScrollStopMode.FinishLoop;
- case "IMMEDIATE": return AutoScrollStopMode.Immediate;
- default: return AutoScrollStopMode.FinishLoop;
- }
+ return temp.GetValueByDescription<AutoScrollStopMode>();
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
string valueToString = "";
if (newValue != null)
{
- switch ((States)newValue)
- {
- case States.Normal: { valueToString = "NORMAL"; break; }
- case States.Focused: { valueToString = "FOCUSED"; break; }
- case States.Disabled: { valueToString = "DISABLED"; break; }
- default: { valueToString = "NORMAL"; break; }
- }
+ valueToString = ((States)newValue).GetDescription<States>();
Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
}
},
{
NUILog.Error("subState get error!");
}
- switch (temp)
- {
- case "NORMAL": return States.Normal;
- case "FOCUSED": return States.Focused;
- case "DISABLED": return States.Disabled;
- default: return States.Normal;
- }
+ return temp.GetValueByDescription<States>();
});
/// <summary>
if (newValue != null)
{
- switch ((HorizontalAlignmentType)newValue)
- {
- case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
- case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
- case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
- default: { valueToString = "left"; break; }
- }
+ valueToString = ((HorizontalAlignmentType)newValue).GetDescription<HorizontalAlignmentType>();
Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
}
},
NUILog.Error("CellHorizontalAlignment get error!");
}
- switch (temp)
- {
- case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
- case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
- case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
- default: return Tizen.NUI.HorizontalAlignmentType.Left;
- }
+ return temp.GetValueByDescription<HorizontalAlignmentType>();
});
/// <summary>
if (newValue != null)
{
- switch ((VerticalAlignmentType)newValue)
- {
- case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
- case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
- case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
- default: { valueToString = "top"; break; }
- }
+ valueToString = ((VerticalAlignmentType)newValue).GetDescription<VerticalAlignmentType>();
Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
}
},
NUILog.Error("CellVerticalAlignment get error!");
}
- switch (temp)
- {
- case "top": return Tizen.NUI.VerticalAlignmentType.Top;
- case "center": return Tizen.NUI.VerticalAlignmentType.Center;
- case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
- default: return Tizen.NUI.VerticalAlignmentType.Top;
- }
+ return temp.GetValueByDescription<VerticalAlignmentType>();
});
/// <summary>
{
NUILog.Error("DrawMode get error!");
}
- switch (temp)
- {
- case "NORMAL": return DrawModeType.Normal;
- case "OVERLAY_2D": return DrawModeType.Overlay2D;
-#pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
- case "STENCIL": return DrawModeType.Stencil;
-#pragma warning restore CS0618
- default: return DrawModeType.Normal;
- }
+ return temp.GetValueByDescription<DrawModeType>();
});
/// <summary>
{
NUILog.Error("WidthResizePolicy get error!");
}
- switch (temp)
- {
- case "FIXED": return ResizePolicyType.Fixed;
- case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
- case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
- case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
- case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
- case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
- case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
- case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
- default: return ResizePolicyType.Fixed;
- }
+ return temp.GetValueByDescription<ResizePolicyType>();
});
/// <summary>
{
NUILog.Error("HeightResizePolicy get error!");
}
- switch (temp)
- {
- case "FIXED": return ResizePolicyType.Fixed;
- case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
- case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
- case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
- case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
- case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
- case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
- case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
- default: return ResizePolicyType.Fixed;
- }
+ return temp.GetValueByDescription<ResizePolicyType>();
});
/// <summary>
string valueToString = "";
if (newValue != null)
{
- switch ((SizeScalePolicyType)newValue)
- {
- case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
- case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
- case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
- default: { valueToString = "USE_SIZE_SET"; break; }
- }
+ valueToString = ((SizeScalePolicyType)newValue).GetDescription<SizeScalePolicyType>();
Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
}
},
{
NUILog.Error("SizeScalePolicy get error!");
}
- switch (temp)
- {
- case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
- case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
- case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
- default: return SizeScalePolicyType.UseSizeSet;
- }
+ return temp.GetValueByDescription<SizeScalePolicyType>();
});
/// <summary>
/// <summary>
/// The normal state.
/// </summary>
+ [Description("NORMAL")]
Normal,
/// <summary>
/// The focused state.
/// </summary>
+ [Description("FOCUSED")]
Focused,
/// <summary>
/// The disabled state.
/// </summary>
+ [Description("DISABLED")]
Disabled
}
/// This structure is used to pass on data from the IMF regarding predictive text.
/// </summary>
/// <since_tizen> 5 </since_tizen>
- public class EventData : global::System.IDisposable
+ public class EventData : Disposable
{
/// <summary>
/// The state if it owns memory
/// </summary>
/// <since_tizen> 5 </since_tizen>
protected bool swigCMemOwn;
-
- /// <summary>
- /// A flag to check if it is already disposed.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- protected bool disposed = false;
-
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- //A flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
-
/// <summary>
/// The default constructor.
/// </summary>
}
/// <summary>
- /// Releases the resource.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- ~EventData()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- /// <summary>
/// The pre-edit or the commit string.
/// </summary>
/// <since_tizen> 5 </since_tizen>
}
}
- /// <summary>
- /// The dispose pattern.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- 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);
- }
- }
-
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(EventData obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
/// You can override it to clean-up your own resources.
/// </summary>
/// <since_tizen> 5 </since_tizen>
- protected virtual void Dispose(DisposeTypes type)
+ protected override 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.
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
}
- disposed = true;
+ base.Dispose(type);
}
}
/// Data required by the IMF from the callback.
/// </summary>
/// <since_tizen> 5 </since_tizen>
- public class CallbackData : global::System.IDisposable
+ public class CallbackData : Disposable
{
/// <summary>
/// The state if it owns memory
/// </summary>
/// <since_tizen> 5 </since_tizen>
protected bool swigCMemOwn;
-
- /// <summary>
- /// A Flag to check if it is already disposed.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- protected bool disposed = false;
-
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- //A flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
-
/// <summary>
/// The default constructor.
/// </summary>
}
/// <summary>
- /// Releases the resource.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- ~CallbackData()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- /// <summary>
/// The current text string.
/// </summary>
/// <since_tizen> 5 </since_tizen>
}
}
- /// <summary>
- /// The dispose pattern.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- 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);
- }
- }
-
internal IntPtr GetCallbackDataPtr()
{
return (IntPtr)swigCPtr;
/// You can override it to clean-up your own resources.
/// </summary>
/// <since_tizen> 5 </since_tizen>
- protected virtual void Dispose(DisposeTypes type)
+ protected override 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.
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
}
- disposed = true;
+ base.Dispose(type);
}
}
/// <summary>
/// The default draw-mode.
/// </summary>
+ [Description("NORMAL")]
Normal = 0,
/// <summary>
/// Draw the actor and its children as an overlay.
/// </summary>
+ [Description("OVERLAY_2D")]
Overlay2D = 1,
/// <summary>
/// Deprecated.(API Level 6) Not used.
/// </remarks>
[Obsolete("Please do not use this DrawModeType.Stencil(Deprecated). This is replaced by ClippingModeType")]
+ [Description("STENCIL")]
Stencil = 3
}
/// <summary>
/// Size is fixed as set by SetSize.
/// </summary>
+ [Description("FIXED")]
Fixed,
/// <summary>
/// Size is to use the actor's natural size.
/// </summary>
/// <see cref="ViewImpl.GetNaturalSize"/>
+ [Description("USE_NATURAL_SIZE")]
UseNaturalSize,
/// <summary>
/// Size is to fill up to the actor's parent's bounds. Aspect ratio is not maintained.
/// </summary>
+ [Description("FILL_TO_PARENT")]
FillToParent,
/// <summary>
/// The actors size will be ( ParentSize * SizeRelativeToParentFactor ).
/// </summary>
+ [Description("SIZE_RELATIVE_TO_PARENT")]
SizeRelativeToParent,
/// <summary>
/// The actors size will be ( ParentSize + SizeRelativeToParentFactor ).
/// </summary>
+ [Description("SIZE_FIXED_OFFSET_FROM_PARENT")]
SizeFixedOffsetFromParent,
/// <summary>
/// The size will adjust to wrap around all children.
/// </summary>
+ [Description("FIT_TO_CHILDREN")]
FitToChildren,
/// <summary>
/// One dimension is dependent on the other.
/// </summary>
+ [Description("DIMENSION_DEPENDENCY")]
DimensionDependency,
/// <summary>
/// The size will be assigned to the actor.
/// </summary>
+ [Description("USE_ASSIGNED_SIZE")]
UseAssignedSize
}
/// <summary>
/// Use the size that was set.
/// </summary>
+ [Description("USE_SIZE_SET")]
UseSizeSet,
/// <summary>
/// Fit within the size set maintaining natural size aspect ratio.
/// </summary>
+ [Description("FIT_WITH_ASPECT_RATIO")]
FitWithAspectRatio,
/// <summary>
/// Fit within the size set maintaining natural size aspect ratio.
/// </summary>
+ [Description("FILL_WITH_ASPECT_RATIO")]
FillWithAspectRatio
}
/// <summary>
/// Align horizontally left.
/// </summary>
+ [Description("left")]
Left,
/// <summary>
/// Align horizontally center.
/// </summary>
+ [Description("center")]
Center,
/// <summary>
/// Align horizontally right.
/// </summary>
+ [Description("right")]
Right
}
/// <summary>
/// Align vertically top.
/// </summary>
+ [Description("top")]
Top,
/// <summary>
/// Align vertically center.
/// </summary>
+ [Description("center")]
Center,
/// <summary>
/// Align vertically bottom.
/// </summary>
+ [Description("bottom")]
Bottom
}
/// <summary>
/// Stop animation after current loop finished.
/// </summary>
+ [Description("FINISH_LOOP")]
FinishLoop,
/// <summary>
/// Stop animation immediately and reset position.
/// </summary>
+ [Description("IMMEDIATE")]
Immediate
}
/// This will be deprecated
[Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public class SnapEvent : global::System.IDisposable
+ public class SnapEvent : Disposable
{
/// <summary>
/// swigCMemOwn
[Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected bool swigCMemOwn;
-
- /// <summary>
- /// A Flat to check if it is already disposed.
- /// </summary>
- /// swigCMemOwn
- /// <since_tizen> 3 </since_tizen>
- /// This will be deprecated
- [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected bool disposed = false;
-
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
-
/// <summary>
/// Create an instance of SnapEvent.
/// </summary>
}
/// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- ~SnapEvent()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- /// <summary>
/// Scroll position.
/// </summary>
/// <since_tizen> 3 </since_tizen>
return ret;
}
- /// <summary>
- /// Dispose.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// This will be deprecated
- [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- 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);
- }
- }
-
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
/// This will be deprecated
[Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- protected virtual void Dispose(DisposeTypes type)
+ protected override 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.
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
- disposed = true;
+ base.Dispose(type);
}
}
/// <summary>
/// Texts place at the begin of horizontal direction.
/// </summary>
+ [Description("BEGIN")]
Begin,
/// <summary>
/// Texts place at the center of horizontal direction.
/// </summary>
+ [Description("CENTER")]
Center,
/// <summary>
/// Texts place at the end of horizontal direction.
/// </summary>
+ [Description("END")]
End
}
/// <summary>
/// Texts place at the top of vertical direction.
/// </summary>
+ [Description("TOP")]
Top,
/// <summary>
/// Texts place at the center of vertical direction.
/// </summary>
+ [Description("CENTER")]
Center,
/// <summary>
/// Texts place at the bottom of vertical direction.
/// </summary>
+ [Description("BOTTOM")]
Bottom
}
/// <since_tizen> 3 </since_tizen>
public void AddLayer(Layer layer)
{
- Interop.Window.Add(swigCPtr, Layer.getCPtr(layer));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- LayersChildren?.Add(layer);
- layer.SetWindow(this);
+ Add(layer);
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public void RemoveLayer(Layer layer)
{
- Interop.Window.Remove(swigCPtr, Layer.getCPtr(layer));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- LayersChildren?.Remove(layer);
- layer.SetWindow(null);
+ Remove(layer);
}
/// <summary>