internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
- internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
- internal static readonly int PADDINGEX = NDalicPINVOKE.View_Property_PADDING_get();
+ internal static readonly int PADDING = NDalicPINVOKE.View_Property_PADDING_get();
}
/// <summary>
/// <param name="handle">A handle to an object.</param>
/// <returns>A handle to a view or an uninitialized handle.</returns>
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
+ [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static View DownCast(BaseHandle handle)
{
/// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
+ [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static T DownCast<T>(View view) where T : View
{
/// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
+ [Obsolete("Please do not use! This will be deprecated! Please use Visibility instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Visible
{
{
Vector2 temp = new Vector2(0.0f, 0.0f);
GetProperty(View.Property.SCREEN_POSITION).Get(temp);
+ // Dali's default layer is default center origin. need to change as top left.
+ // NUI's Layer is like a transparent film which covers entire window. (Layer is not an actor of Dali)
+ // otherwise, this makes ScreenPosition as wrong value.
+ temp -= (Window.Instance.GetSize() * 0.5f);
return temp;
}
}
/// Please do not use! this will be deprecated!
/// Instead please use PositionUsesPivotPoint.
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated, instead please use PositionUsesPivotPoint")]
+ [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
+ "Like: " +
+ "View view = new View(); " +
+ "view.PivotPoint = PivotPoint.Center; " +
+ "view.PositionUsesPivotPoint = true;")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool PositionUsesAnchorPoint
{
/// /// Please do not use! this will be deprecated!
/// Instead please use NaturalSize2D.
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
+ [Obsolete("Please do not use! This will be deprecated! Please use NaturalSize2D instead! " +
+ "Like: " +
+ "TextLabel label = new TextLabel(\"Hello World!\"); " +
+ "Size2D size = label.NaturalSize2D;")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Vector3 NaturalSize
{
/// <summary>
/// Gets or sets the padding for use in layout.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Vector4 Padding
+ /// <since_tizen> 4 </since_tizen>
+ public Extents Padding
{
get
{
- Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
+ Extents temp = new Extents(0, 0, 0, 0);
GetProperty(View.Property.PADDING).Get(temp);
return temp;
}
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use TouchEvent.
- [Obsolete("Please do not use! this will be deprecated, instead please use TouchEvent.")]
+ [Obsolete("Please do not use! This will be deprecated! Please use TouchEvent instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
{
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use HoverEvent.
- [Obsolete("Please do not use! this will be deprecated, instead please use HoverEvent.")]
+ [Obsolete("Please do not use! This will be deprecated! Please use HoverEvent instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
{
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use WheelEvent.
- [Obsolete("Please do not use! this will be deprecated, instead please use WheelEvent.")]
+ [Obsolete("Please do not use! This will be deprecated! Please use WheelEvent instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
{
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use PivotPoint.
- [Obsolete("Please do not use! this will be deprecated, instead please use PivotPoint")]
+ [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
+ "Like: " +
+ "View view = new View(); " +
+ "view.PivotPoint = PivotPoint.Center; " +
+ "view.PositionUsesPivotPoint = true;")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Position AnchorPoint
{
/// [Obsolete("Please do not use! this will be deprecated")]
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
+ [Obsolete("Please do not use! This will be deprecated! Please use Size2D instead! " +
+ "Like: " +
+ "View view = new View(); " +
+ "view.Size2D = new Size2D(100, 100);")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Size Size
{
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use AddedToWindow.
- [Obsolete("Please do not use! this will be deprecated, instead please use AddedToWindow")]
+ [Obsolete("Please do not use! This will be deprecated! Please use AddedToWindow instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler OnWindowEvent
{
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use RemovedFromWindow.
- [Obsolete("Please do not use! this will be deprecated, instead please use RemovedFromWindow")]
+ [Obsolete("Please do not use! This will be deprecated! Please use RemovedFromWindow instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler OffWindowEvent
{
/// <since_tizen> 3 </since_tizen>
/// Please do not use! this will be deprecated!
/// Instead please use Relayout.
- [Obsolete("Please do not use! this will be deprecated, instead please use Relayout")]
+ [Obsolete("Please do not use! This will be deprecated! Please use Relayout instead!")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler OnRelayoutEvent
{
/// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+ [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
+ "Like: " +
+ "Container parent = view.GetParent(); " +
+ "View view = parent as View;")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public new View Parent
{
get
}
/// <summary>
- /// Gets or sets the Padding for use in layout.
+ /// [Obsolete("Please do not use! this will be deprecated")]
/// </summary>
+ /// Please do not use! this will be deprecated!
+ /// Instead please use Padding.
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Extents PaddingEX
{
get
{
Extents temp = new Extents(0, 0, 0, 0);
- GetProperty(View.Property.PADDINGEX).Get(temp);
+ GetProperty(View.Property.PADDING).Get(temp);
return temp;
}
set
{
- SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
+ SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
}
}
}