Skip to content

Commit

Permalink
[NUI] Adds version tag or Hides deprecated APIs
Browse files Browse the repository at this point in the history
Signed-off-by: Seungho Baek <[email protected]>
  • Loading branch information
bshsqa committed Jan 14, 2025
1 parent 714441a commit a3cc621
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 10 deletions.
5 changes: 5 additions & 0 deletions src/Tizen.NUI/src/public/BaseComponents/CustomView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public virtual void OnInitialize()
/// </summary>
/// <param name="depth">The depth in the hierarchy for the view.</param>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated since API8 and will be removed in API10. Use OnSceneConnection instead.")]
public virtual void OnStageConnection(int depth)
{
Expand All @@ -208,6 +209,7 @@ public virtual void OnStageConnection(int depth)
/// When the parent of a set of views is disconnected to the stage, then all of the children will receive this callback, starting with the leaf views.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated since API8 and will be removed in API10. Use OnSceneDisconnection instead.")]
public virtual void OnStageDisconnection()
{
Expand Down Expand Up @@ -382,6 +384,7 @@ public virtual float CalculateChildSize(View child, DimensionType dimension)
/// <param name="width">Width to use</param>
/// <returns>The height based on the width</returns>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API9 and will be removed in API11. Use HeightForWidth property instead.")]
public new virtual float GetHeightForWidth(float width)
{
Expand All @@ -395,6 +398,7 @@ public virtual float CalculateChildSize(View child, DimensionType dimension)
/// <param name="height">Height to use</param>
/// <returns>The width based on the width</returns>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated since API9 and will be removed in API11. Use WidthForHeight property instead.")]
public new virtual float GetWidthForHeight(float height)
{
Expand Down Expand Up @@ -448,6 +452,7 @@ public virtual void OnLayoutNegotiated(float size, DimensionType dimension)
/// <param name="styleManager">The StyleManager object.</param>
/// <param name="change">Information denoting what has changed.</param>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Deprecated in API9, Will be removed in API11.")]
public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change)
{
Expand Down
32 changes: 32 additions & 0 deletions src/Tizen.NUI/src/public/BaseComponents/FlexContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Tizen.NUI.BaseComponents
/// FlexContainer can expand items to fill available free space, or shrink them to prevent overflow.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public class FlexContainer : View
{
Expand Down Expand Up @@ -175,6 +176,7 @@ static FlexContainer()
/// Calling member functions with an uninitialized handle is not allowed.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public FlexContainer() : this(Interop.FlexContainer.New(), true)
{
Expand All @@ -190,31 +192,36 @@ internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr,
/// the direction that flex items are laid out in the flex container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public enum FlexDirectionType
{
/// <summary>
/// The flexible items are displayed vertically as a column.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
Column,
/// <summary>
/// The flexible items are displayed vertically as a column, but in reverse order.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
ColumnReverse,
/// <summary>
/// The flexible items are displayed horizontally as a row.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
Row,
/// <summary>
/// The flexible items are displayed horizontally as a row.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
RowReverse
}
Expand All @@ -224,25 +231,29 @@ public enum FlexDirectionType
/// and on which sides the ?�start??and ?�end??are.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public enum ContentDirectionType
{
/// <summary>
/// Inherits the same direction from the parent.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
Inherit,
/// <summary>
/// From left to right.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
LTR,
/// <summary>
/// From right to left.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
RTL
}
Expand All @@ -252,37 +263,43 @@ public enum ContentDirectionType
/// space on the main axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public enum Justification
{
/// <summary>
/// Items are positioned at the beginning of the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
JustifyFlexStart,
/// <summary>
/// Items are positioned at the center of the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
JustifyCenter,
/// <summary>
/// Items are positioned at the end of the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
JustifyFlexEnd,
/// <summary>
/// Items are positioned with equal space between the lines.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
JustifySpaceBetween,
/// <summary>
/// Items are positioned with equal space before, between, and after the lines.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
JustifySpaceAround
}
Expand All @@ -292,37 +309,43 @@ public enum Justification
/// use all the available space on the cross axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public enum Alignment
{
/// <summary>
/// Inherits the same alignment from the parent (only valid for "alignSelf" property).
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
AlignAuto,
/// <summary>
/// At the beginning of the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
AlignFlexStart,
/// <summary>
/// At the center of the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
AlignCenter,
/// <summary>
/// At the end of the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
AlignFlexEnd,
/// <summary>
/// Stretch to fit the container.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
AlignStretch
}
Expand All @@ -332,19 +355,22 @@ public enum Alignment
/// all the items on one flex line.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public enum WrapType
{
/// <summary>
/// Flex items laid out in single line (shrunk to fit the flex container along the main axis).
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
NoWrap,
/// <summary>
/// Flex items laid out in multiple lines if needed.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
Wrap
}
Expand All @@ -353,6 +379,7 @@ public enum WrapType
/// The primary direction in which content is ordered.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public ContentDirectionType ContentDirection
{
Expand Down Expand Up @@ -385,6 +412,7 @@ public ContentDirectionType ContentDirection
/// The direction of the main axis which determines the direction that flex items are laid out.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public FlexDirectionType FlexDirection
{
Expand Down Expand Up @@ -417,6 +445,7 @@ public FlexDirectionType FlexDirection
/// Whether the flex items should wrap or not if there is no enough room for them on one flex line.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public WrapType FlexWrap
{
Expand Down Expand Up @@ -449,6 +478,7 @@ public WrapType FlexWrap
/// The alignment of flex items when the items do not use all available space on the main axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public Justification JustifyContent
{
Expand Down Expand Up @@ -481,6 +511,7 @@ public Justification JustifyContent
/// The alignment of flex items when the items do not use all available space on the cross axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public Alignment AlignItems
{
Expand Down Expand Up @@ -513,6 +544,7 @@ public Alignment AlignItems
/// Similar to "alignItems", but it aligns flex lines; so only works when there are multiple lines.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API8 and will be removed in API10. Use FlexLayout instead.")]
public Alignment AlignContent
{
Expand Down
1 change: 1 addition & 0 deletions src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ public bool BorderOnly
/// </summary>
/// <since_tizen> 3 </since_tizen>
[Obsolete("This has been deprecated since API9 and will be removed in API11. Use SynchronousLoading instead.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool SynchronosLoading
{
get
Expand Down
Loading

0 comments on commit a3cc621

Please sign in to comment.