/* image visual 1. No transform setting case. */
imageVisualMap1 = new ImageVisual();
imageVisualMap1.URL = resources + "/images/image-1.jpg";
- imageVisualMap1.DepthIndex = 1.0f;
+ imageVisualMap1.DepthIndex = 1;
//_visualView.AddVisual("imageVisual1", imageVisualMap1);
/* image visual 2. Using RelativePosition and SizePolicyWidth setting case. */
imageVisualMap2.Origin = Visual.AlignType.TopBegin;
imageVisualMap2.AnchorPoint = Visual.AlignType.TopBegin;
/* Ensure imageVisual show */
- imageVisualMap2.DepthIndex = 9.0f;
+ imageVisualMap2.DepthIndex = 9;
_visualView.AddVisual("imageVisual2", imageVisualMap2);
/* If imageVisual2 added first, the it will be covered by imageVisual1.
so, we need to set their depth index to ensure they all can be showed.
public static extern void VisualBase_GetNaturalSize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VisualBase_SetDepthIndex")]
- public static extern void VisualBase_SetDepthIndex(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
+ public static extern void VisualBase_SetDepthIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VisualBase_GetDepthIndex")]
- public static extern float VisualBase_GetDepthIndex(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern int VisualBase_GetDepthIndex(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VisualBase_CreatePropertyMap")]
public static extern void VisualBase_CreatePropertyMap(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
/// <summary>
/// the depth index of this visual.
/// </summary>
- public float DepthIndex
+ public int DepthIndex
{
set
{
return GetDepthIndex();
}
}
- internal void SetDepthIndex(float index)
+ internal void SetDepthIndex(int index)
{
NDalicPINVOKE.VisualBase_SetDepthIndex(swigCPtr, index);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal float GetDepthIndex()
+ internal int GetDepthIndex()
{
- float ret = NDalicPINVOKE.VisualBase_GetDepthIndex(swigCPtr);
+ int ret = NDalicPINVOKE.VisualBase_GetDepthIndex(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private PropertyMap _visualTransformMap = null;
- private float? _depthIndex = null;
+ private int? _depthIndex = null;
protected PropertyMap _outputVisualMap = null;
internal string Name
/// By default, the depth index is 0.<br>
/// Optional.
/// </summary>
- public float DepthIndex
+ public int DepthIndex
{
get
{
- return _depthIndex ?? (0.0f);
+ return _depthIndex ?? (0);
}
set
{