}
}
+ [global::System.Runtime.InteropServices.DllImport(Graphics.GlesCSharpBinder, EntryPoint = "CSharp_Dali_LinearLayout_SetAlignment")]
+ public static extern void LinearLayout_SetAlignment_gl(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.VulkanCSharpBinder, EntryPoint = "CSharp_Dali_LinearLayout_SetAlignment")]
+ public static extern void LinearLayout_SetAlignment_vulkan(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ public static void LinearLayout_SetAlignment(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
+ {
+ if (Tizen.NUI.Graphics.Backend == Tizen.NUI.Graphics.BackendType.Vulkan)
+ {
+ LinearLayout_SetAlignment_vulkan(jarg1, jarg2);
+ }
+ else
+ {
+ LinearLayout_SetAlignment_gl(jarg1, jarg2);
+ }
+ }
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.GlesCSharpBinder, EntryPoint = "CSharp_Dali_LinearLayout_GetAlignment")]
+ public static extern uint LinearLayout_GetAlignment_gl(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.VulkanCSharpBinder, EntryPoint = "CSharp_Dali_LinearLayout_GetAlignment")]
+ public static extern uint LinearLayout_GetAlignment_vulkan(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ public static uint LinearLayout_GetAlignment(global::System.Runtime.InteropServices.HandleRef jarg1)
+ {
+ if (Tizen.NUI.Graphics.Backend == Tizen.NUI.Graphics.BackendType.Vulkan)
+ {
+ return LinearLayout_GetAlignment_vulkan(jarg1);
+ }
+ else
+ {
+ return LinearLayout_GetAlignment_gl(jarg1);
+ }
+ }
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.GlesCSharpBinder, EntryPoint = "CSharp_Dali_LinearLayout_ChildProperty_WEIGHT_get")]
+ public static extern int LinearLayout_ChildProperty_WEIGHT_get_gl();
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.VulkanCSharpBinder, EntryPoint = "CSharp_Dali_LinearLayout_ChildProperty_WEIGHT_get")]
+ public static extern int LinearLayout_ChildProperty_WEIGHT_get_vulkan();
+
+ public static int LinearLayout_ChildProperty_WEIGHT_get()
+ {
+ if (Tizen.NUI.Graphics.Backend == Tizen.NUI.Graphics.BackendType.Vulkan)
+ {
+ return LinearLayout_ChildProperty_WEIGHT_get_vulkan();
+ }
+ else
+ {
+ return LinearLayout_ChildProperty_WEIGHT_get_gl();
+ }
+ }
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.GlesCSharpBinder, EntryPoint = "CSharp_Dali_new_LinearLayout_ChildProperty")]
+ public static extern global::System.IntPtr new_LinearLayout_ChildProperty_gl();
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.VulkanCSharpBinder, EntryPoint = "CSharp_Dali_new_LinearLayout_ChildProperty")]
+ public static extern global::System.IntPtr new_LinearLayout_ChildProperty_vulkan();
+
+ public static global::System.IntPtr new_LinearLayout_ChildProperty()
+ {
+ if (Tizen.NUI.Graphics.Backend == Tizen.NUI.Graphics.BackendType.Vulkan)
+ {
+ return new_LinearLayout_ChildProperty_vulkan();
+ }
+ else
+ {
+ return new_LinearLayout_ChildProperty_gl();
+ }
+ }
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.GlesCSharpBinder, EntryPoint = "CSharp_Dali_delete_LinearLayout_ChildProperty")]
+ public static extern void delete_LinearLayout_ChildProperty_gl(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(Graphics.VulkanCSharpBinder, EntryPoint = "CSharp_Dali_delete_LinearLayout_ChildProperty")]
+ public static extern void delete_LinearLayout_ChildProperty_vulkan(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ public static void delete_LinearLayout_ChildProperty(global::System.Runtime.InteropServices.HandleRef jarg1)
+ {
+ if (Tizen.NUI.Graphics.Backend == Tizen.NUI.Graphics.BackendType.Vulkan)
+ {
+ delete_LinearLayout_ChildProperty_vulkan(jarg1);
+ }
+ else
+ {
+ delete_LinearLayout_ChildProperty_gl(jarg1);
+ }
+ }
+
// Grid Layout
// GridLayout_SWIGUpcast
base.Dispose(type);
}
+ internal static class ChildProperty
+ {
+ internal static readonly int WEIGHT = LayoutPINVOKE.LinearLayout_ChildProperty_WEIGHT_get();
+ }
public LinearLayout() : this(LayoutPINVOKE.LinearLayout_New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ internal void SetAlignment(LinearLayout.Alignment alignment)
+ {
+ LayoutPINVOKE.LinearLayout_SetAlignment(swigCPtr, (uint)alignment);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal LinearLayout.Alignment GetAlignment()
+ {
+ LinearLayout.Alignment ret = (LinearLayout.Alignment)LayoutPINVOKE.LinearLayout_GetAlignment(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
internal enum PropertyRange
{
CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
}
/// <summary>
- /// [Draft] Enumeration for the direction in which the content is laid out */
+ /// [Draft] Get/Set the alignment in the layout
+ /// </summary>
+ public LinearLayout.Alignment LinearAlignment
+ {
+ get
+ {
+ return GetAlignment();
+ }
+ set
+ {
+ SetAlignment(value);
+ }
+ }
+
+ /// <summary>
+ /// [Draft] Enumeration for the direction in which the content is laid out
/// </summary>
public enum Orientation
{
Vertical
}
+ /// <summary>
+ /// [Draft] Enumeration for the alignment of the linear layout items
+ /// </summary>
+ public enum Alignment
+ {
+ /// <summary>
+ /// At the left/right edge of the container (maps to LTR/RTL direction for horizontal orientation)
+ /// </summary>
+ Begin = 0x1,
+ /// <summary>
+ /// At the right/left edge of the container (maps to LTR/RTL direction for horizontal orientation)
+ /// </summary>
+ End = 0x2,
+ /// <summary>
+ /// At the horizontal center of the container
+ /// </summary>
+ CenterHorizontal = 0x4,
+ /// <summary>
+ /// At the top edge of the container
+ /// </summary>
+ Top = 0x8,
+ /// <summary>
+ /// At the bottom edge of the container
+ /// </summary>
+ Bottom = 0x10,
+ /// <summary>
+ /// At the vertical center of the container
+ /// </summary>
+ CenterVertical = 0x20
+ }
+
}
}
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var view = (View)bindable;
+ if (newValue != null)
+ {
+ Tizen.NUI.Object.SetProperty(view.swigCPtr, LinearLayout.ChildProperty.WEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
+ }
+ },
+ defaultValueCreator:(bindable) =>
+ {
+ var view = (View)bindable;
+ float temp = 0.0f;
+ Tizen.NUI.Object.GetProperty(view.swigCPtr, LinearLayout.ChildProperty.WEIGHT).Get(out temp);
+ return temp;
+ });
+ /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create("LeftFocusableView", typeof(View), typeof(View), default(View), propertyChanged: (bindable, oldValue, newValue) =>
{
var view = (View)bindable;
}
}
+ internal float Weight
+ {
+ get
+ {
+ return (float)GetValue(WeightProperty);
+ }
+ set
+ {
+ SetValue(WeightProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+
}
/// <summary>