Beispiel #1
0
 public Node(int vertex, int span, float edge, StretchFlags stretch)
 {
     Start        = vertex;
     End          = vertex + span;
     Edge         = edge;
     Stretch      = stretch;
     ExpandedSize = 0;
 }
Beispiel #2
0
 /// <summary>
 /// Set the value how child is resized within its vertical space. <see cref="StretchFlags.None"/> by default.
 /// </summary>
 /// <param name="view">The child view.</param>
 /// <param name="value">The vertical stretch flag of <paramref name="view"/>.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="view"/> cannot be null.</exception>
 /// <exception cref="ArgumentException">The <paramref name="value"/> should be <see cref="StretchFlags"/>.</exception>
 /// <since_tizen> 8 </since_tizen>
 public static void SetVerticalStretch(View view, StretchFlags value) => SetAttachedValue(view, VerticalStretchProperty, value);
Beispiel #3
0
 /// <summary>
 /// Set the value how child is resized within its vertical space. <see cref="StretchFlags.Fill"/> by default.
 /// </summary>
 /// <since_tizen> 8 </since_tizen>
 public static void SetVerticalStretch(View view, StretchFlags value)
 {
     SetChildValue(view, VerticalStretchProperty, value);
 }
Beispiel #4
0
 /// <summary>
 /// Sets the value how child is resized within its horizontal space. <see cref="StretchFlags.None"/> by default.
 /// </summary>
 /// <param name="view">The child view.</param>
 /// <param name="value">The horizontal stretch flag of <paramref name="view"/>.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="view"/> cannot be null.</exception>
 /// <exception cref="ArgumentException">The <paramref name="value"/> should be <see cref="StretchFlags"/>.</exception>
 /// <since_tizen> 8 </since_tizen>
 public static void SetHorizontalStretch(View view, StretchFlags value) => SetAttachedValue(view, HorizontalStretchProperty, value);
Beispiel #5
0
 /// <summary>
 /// Set the value how child is resized within its horizontal space. <see cref="StretchFlags.Fill"/> by default.
 /// </summary>
 /// <since_tizen> 8 </since_tizen>
 public static void SetHorizontalStretch(View view, StretchFlags value)
 {
     SetChildValue(view, HorizontalStretchProperty, value);
 }