[NUI] Open new GridLayout APIs and Properties (#1834)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Mon, 27 Jul 2020 04:59:08 +0000 (13:59 +0900)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2020 04:59:08 +0000 (13:59 +0900)
GridLayout.Orientation
 Horizontal
 Vertical

GridLayout.StretchFlags
 None = 0
 Fill = 1
 Expand = 2
 ExpandAndFill = Fill + Expand

GridLayout.Alignment
Start = 0
Center = 1
End = 2
static int GetColumn(View view)
static int GetColumnSpan(View view)
static int GetRow(View view)
static int GetRowSpan(View view)
static StretchFlags GetHorizontalStretch(View view)
static StretchFlags GetVerticalStretch(View view)
static StretchFlags GetHorizontalAlignment(View view)
static StretchFlags GetVerticalAlignment(View view)
static void SetColumn(View view, int value)
static void SetColumnSpan(View view, int value)
static void SetRow(View view, int value)
static void SetRowSpan(View view, int value)
static void SetHorizontalStretch(View view, StretchFlags value)
static void SetVerticalStretch(View view, StretchFlags value)
static void SetHorizontalAlignment(View view, Alignment value)
static void SetVerticalAlignment(View view, Alignment value)

float ColumnSpacing { get; set; }
float RowSpacing { get; set; }
GridLayout.Orientation GridOrientation { get; set; }
int Rows { get; set; }
int Columns{ get; set; }

src/Tizen.NUI/src/public/Layouting/GridLayout.cs

index 82f3446..859486c 100755 (executable)
@@ -22,7 +22,7 @@ using Tizen.NUI.Binding;
 namespace Tizen.NUI
 {
     /// <summary>
 namespace Tizen.NUI
 {
     /// <summary>
-    /// [Draft] This class implements a grid layout
+    /// GridLayout is a 2D grid pattern layout that consists of a set of rows and columns.
     /// </summary>
     public partial class GridLayout : LayoutGroup
     {
     /// </summary>
     public partial class GridLayout : LayoutGroup
     {
@@ -82,10 +82,9 @@ namespace Tizen.NUI
         private float rowSpacing = 0;
 
         /// <summary>
         private float rowSpacing = 0;
 
         /// <summary>
-        /// [Draft] Enumeration for the direction in which the content is laid out
+        /// Enumeration for the direction in which the content is laid out
         /// </summary>
         /// </summary>
-        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public enum Orientation
         {
             /// <summary>
         public enum Orientation
         {
             /// <summary>
@@ -101,7 +100,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the column index.
         /// </summary>
         /// <summary>
         /// Get the column index.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static int GetColumn(View view)
         {
             return (int)view.GetValue(ColumnProperty);
         public static int GetColumn(View view)
         {
             return (int)view.GetValue(ColumnProperty);
@@ -110,7 +109,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the column span.
         /// </summary>
         /// <summary>
         /// Get the column span.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static int GetColumnSpan(View view)
         {
             return (int)view.GetValue(ColumnSpanProperty);
         public static int GetColumnSpan(View view)
         {
             return (int)view.GetValue(ColumnSpanProperty);
@@ -119,7 +118,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the row index.
         /// </summary>
         /// <summary>
         /// Get the row index.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static int GetRow(View view)
         {
             return (int)view.GetValue(RowProperty);
         public static int GetRow(View view)
         {
             return (int)view.GetValue(RowProperty);
@@ -128,7 +127,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the row span.
         /// </summary>
         /// <summary>
         /// Get the row span.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static int GetRowSpan(View view)
         {
             return (int)view.GetValue(RowSpanProperty);
         public static int GetRowSpan(View view)
         {
             return (int)view.GetValue(RowSpanProperty);
@@ -137,7 +136,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the value how child is resized within its horizontal space.
         /// </summary>
         /// <summary>
         /// Get the value how child is resized within its horizontal space.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static StretchFlags GetHorizontalStretch(View view)
         {
             return (StretchFlags)view.GetValue(HorizontalStretchProperty);
         public static StretchFlags GetHorizontalStretch(View view)
         {
             return (StretchFlags)view.GetValue(HorizontalStretchProperty);
@@ -146,7 +145,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the value how child is resized within its vertical space.
         /// </summary>
         /// <summary>
         /// Get the value how child is resized within its vertical space.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static StretchFlags GetVerticalStretch(View view)
         {
             return (StretchFlags)view.GetValue(VerticalStretchProperty);
         public static StretchFlags GetVerticalStretch(View view)
         {
             return (StretchFlags)view.GetValue(VerticalStretchProperty);
@@ -155,7 +154,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the horizontal alignment of this child.
         /// </summary>
         /// <summary>
         /// Get the horizontal alignment of this child.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static Alignment GetHorizontalAlignment(View view)
         {
             return (Alignment)view.GetValue(HorizontalAlignmentProperty);
         public static Alignment GetHorizontalAlignment(View view)
         {
             return (Alignment)view.GetValue(HorizontalAlignmentProperty);
@@ -164,7 +163,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Get the vertical alignment of this child.
         /// </summary>
         /// <summary>
         /// Get the vertical alignment of this child.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static Alignment GetVerticalAlignment(View view)
         {
             return (Alignment)view.GetValue(VerticalAlignmentProperty);
         public static Alignment GetVerticalAlignment(View view)
         {
             return (Alignment)view.GetValue(VerticalAlignmentProperty);
@@ -173,7 +172,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the column index.
         /// </summary>
         /// <summary>
         /// Set the column index.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetColumn(View view, int value)
         {
             SetChildValue(view, ColumnProperty, value);
         public static void SetColumn(View view, int value)
         {
             SetChildValue(view, ColumnProperty, value);
@@ -182,7 +181,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the column span.
         /// </summary>
         /// <summary>
         /// Set the column span.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetColumnSpan(View view, int value)
         {
             SetChildValue(view, ColumnSpanProperty, value);
         public static void SetColumnSpan(View view, int value)
         {
             SetChildValue(view, ColumnSpanProperty, value);
@@ -191,7 +190,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the row index.
         /// </summary>
         /// <summary>
         /// Set the row index.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetRow(View view, int value)
         {
             SetChildValue(view, RowProperty, value);
         public static void SetRow(View view, int value)
         {
             SetChildValue(view, RowProperty, value);
@@ -200,7 +199,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the row span.
         /// </summary>
         /// <summary>
         /// Set the row span.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetRowSpan(View view, int value)
         {
             SetChildValue(view, RowSpanProperty, value);
         public static void SetRowSpan(View view, int value)
         {
             SetChildValue(view, RowSpanProperty, value);
@@ -209,7 +208,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the value how child is resized within its horizontal space. <see cref="StretchFlags.Fill"/> by default.
         /// </summary>
         /// <summary>
         /// Set the value how child is resized within its horizontal space. <see cref="StretchFlags.Fill"/> by default.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetHorizontalStretch(View view, StretchFlags value)
         {
             SetChildValue(view, HorizontalStretchProperty, value);
         public static void SetHorizontalStretch(View view, StretchFlags value)
         {
             SetChildValue(view, HorizontalStretchProperty, value);
@@ -218,7 +217,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the value how child is resized within its vertical space. <see cref="StretchFlags.Fill"/> by default.
         /// </summary>
         /// <summary>
         /// Set the value how child is resized within its vertical space. <see cref="StretchFlags.Fill"/> by default.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetVerticalStretch(View view, StretchFlags value)
         {
             SetChildValue(view, VerticalStretchProperty, value);
         public static void SetVerticalStretch(View view, StretchFlags value)
         {
             SetChildValue(view, VerticalStretchProperty, value);
@@ -227,7 +226,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the horizontal alignment of this child inside the cells.
         /// </summary>
         /// <summary>
         /// Set the horizontal alignment of this child inside the cells.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetHorizontalAlignment(View view, Alignment value)
         {
             SetChildValue(view, HorizontalAlignmentProperty, value);
         public static void SetHorizontalAlignment(View view, Alignment value)
         {
             SetChildValue(view, HorizontalAlignmentProperty, value);
@@ -236,17 +235,16 @@ namespace Tizen.NUI
         /// <summary>
         /// Set the vertical alignment of this child inside the cells.
         /// </summary>
         /// <summary>
         /// Set the vertical alignment of this child inside the cells.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public static void SetVerticalAlignment(View view, Alignment value)
         {
             SetChildValue(view, VerticalAlignmentProperty, value);
         }
 
         /// <summary>
         public static void SetVerticalAlignment(View view, Alignment value)
         {
             SetChildValue(view, VerticalAlignmentProperty, value);
         }
 
         /// <summary>
-        /// [Draft] The Distance between Column
+        /// The distance between columns.
         /// </summary>
         /// </summary>
-        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public float ColumnSpacing
         {
             get => columnSpacing;
         public float ColumnSpacing
         {
             get => columnSpacing;
@@ -261,10 +259,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
         }
 
         /// <summary>
-        /// [Draft] The Distance between Rows
+        /// The distance between rows.
         /// </summary>
         /// </summary>
-        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public float RowSpacing
         {
             get => rowSpacing;
         public float RowSpacing
         {
             get => rowSpacing;
@@ -279,10 +276,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
         }
 
         /// <summary>
-        /// [Draft] Get/Set the orientation in the layout
+        /// Get/Set the orientation in the layout
         /// </summary>
         /// </summary>
-        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public Orientation GridOrientation
         {
             get => gridOrientation;
         public Orientation GridOrientation
         {
             get => gridOrientation;
@@ -295,7 +291,7 @@ namespace Tizen.NUI
         }
 
         /// <summary>
         }
 
         /// <summary>
-        /// [draft] GridLayout Constructor/>
+        /// GridLayout Constructor.
         /// </summary>
         /// <returns> New Grid object.</returns>
         /// <since_tizen> 6 </since_tizen>
         /// </summary>
         /// <returns> New Grid object.</returns>
         /// <since_tizen> 6 </since_tizen>
@@ -304,7 +300,7 @@ namespace Tizen.NUI
         }
 
         /// <summary>
         }
 
         /// <summary>
-        /// [Draft] Get/Set the number of columns in the GridLayout should have.
+        /// Gets or Sets the number of columns in the grid.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         public int Columns
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         public int Columns
@@ -321,10 +317,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
         }
 
         /// <summary>
-        /// [draft ]Get/Set the number of rows in the grid
+        /// Gets or Sets the number of rows in the grid.
         /// </summary>
         /// </summary>
-        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public int Rows
         {
             get => rows;
         public int Rows
         {
             get => rows;
@@ -423,52 +418,52 @@ namespace Tizen.NUI
         /// <summary>
         /// The value how child is resized within its space.
         /// </summary>
         /// <summary>
         /// The value how child is resized within its space.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         [Flags]
         public enum StretchFlags
         {
             /// <summary>
             /// Respect mesured size of the child.
             /// </summary>
         [Flags]
         public enum StretchFlags
         {
             /// <summary>
             /// Respect mesured size of the child.
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             None = 0,
             /// <summary>
             /// Resize to completely fill the space.
             /// </summary>
             None = 0,
             /// <summary>
             /// Resize to completely fill the space.
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             Fill = 1,
             /// <summary>
             /// Expand to share available space in GridLayout.
             /// </summary>
             Fill = 1,
             /// <summary>
             /// Expand to share available space in GridLayout.
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             Expand = 2,
             /// <summary>
             /// Expand to share available space in GridLayout and fill the space.
             /// </summary>
             Expand = 2,
             /// <summary>
             /// Expand to share available space in GridLayout and fill the space.
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             ExpandAndFill = Fill + Expand,
         }
 
         /// <summary>
         /// The alignment of the grid layout child.
         /// </summary>
             ExpandAndFill = Fill + Expand,
         }
 
         /// <summary>
         /// The alignment of the grid layout child.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 8 </since_tizen>
         public enum Alignment
         {
             /// <summary>
             /// At the start of the container.
             /// </summary>
         public enum Alignment
         {
             /// <summary>
             /// At the start of the container.
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             Start = 0,
             /// <summary>
             /// At the center of the container
             /// </summary>
             Start = 0,
             /// <summary>
             /// At the center of the container
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             Center = 1,
             /// <summary>
             /// At the end of the container.
             /// </summary>
             Center = 1,
             /// <summary>
             /// At the end of the container.
             /// </summary>
-            [EditorBrowsable(EditorBrowsableState.Never)]
+            /// <since_tizen> 8 </since_tizen>
             End = 2,
         }
     }
             End = 2,
         }
     }