A fixed value that is not computed each time it is used.
Inheritance: Value
Beispiel #1
0
 public Container SetPad(float top, float left, float bottom, float right)
 {
     _padTop    = new Value.Fixed(top);
     _padLeft   = new Value.Fixed(left);
     _padBottom = new Value.Fixed(bottom);
     _padRight  = new Value.Fixed(right);
     return(this);
 }
Beispiel #2
0
		public Table pad( float top, float left, float bottom, float right )
		{
			_padTop = new Value.Fixed( top );
			_padLeft = new Value.Fixed( left );
			_padBottom = new Value.Fixed( bottom );
			_padRight = new Value.Fixed( right );
			_sizeInvalid = true;
			return this;
		}
Beispiel #3
0
        /// <summary>
        /// Sets the padTop, padLeft, padBottom, and padRight to the specified value
        /// </summary>
        /// <param name="pad">Pad.</param>
        public Container SetPad(float pad)
        {
            Value value = new Value.Fixed(pad);

            _padTop    = value;
            _padLeft   = value;
            _padBottom = value;
            _padRight  = value;
            return(this);
        }
Beispiel #4
0
 public Container SetPadRight(float padRight)
 {
     _padRight = new Value.Fixed(padRight);
     return(this);
 }
Beispiel #5
0
 public Container SetPadBottom(float padBottom)
 {
     _padBottom = new Value.Fixed(padBottom);
     return(this);
 }
Beispiel #6
0
 public Container SetMaxHeight(float maxHeight)
 {
     _maxHeightValue = new Value.Fixed(maxHeight);
     return(this);
 }
Beispiel #7
0
 public Container SetPrefHeight(float prefHeight)
 {
     _prefHeightValue = new Value.Fixed(prefHeight);
     return(this);
 }
Beispiel #8
0
 public Container setPadLeft(float padLeft)
 {
     _padLeft = new Value.Fixed(padLeft);
     return(this);
 }
Beispiel #9
0
 public Container setMinHeight(float minHeight)
 {
     _minHeightValue = new Value.Fixed(minHeight);
     return(this);
 }
Beispiel #10
0
		/// <summary>
		/// Padding at the right edge of the table.
		/// </summary>
		/// <returns>The right.</returns>
		/// <param name="padRight">Pad right.</param>
		public Table padRight( float padRight )
		{
			_padRight = new Value.Fixed( padRight );
			_sizeInvalid = true;
			return this;
		}
Beispiel #11
0
		/// <summary>
		/// Padding at the bottom edge of the table.
		/// </summary>
		/// <returns>The bottom.</returns>
		/// <param name="padBottom">Pad bottom.</param>
		public Table padBottom( float padBottom )
		{
			_padBottom = new Value.Fixed( padBottom );
			_sizeInvalid = true;
			return this;
		}
Beispiel #12
0
		public Table pad( float top, float left, float bottom, float right )
		{
			_padTop = new Value.Fixed( top );
			_padLeft = new Value.Fixed( left );
			_padBottom = new Value.Fixed( bottom );
			_padRight = new Value.Fixed( right );
			_sizeInvalid = true;
			return this;
		}
Beispiel #13
0
		/// <summary>
		/// Padding at the right edge of the table.
		/// </summary>
		/// <returns>The right.</returns>
		/// <param name="padRight">Pad right.</param>
		public Table padRight( float padRight )
		{
			_padRight = new Value.Fixed( padRight );
			_sizeInvalid = true;
			return this;
		}
Beispiel #14
0
		/// <summary>
		/// Padding at the bottom edge of the table.
		/// </summary>
		/// <returns>The bottom.</returns>
		/// <param name="padBottom">Pad bottom.</param>
		public Table padBottom( float padBottom )
		{
			_padBottom = new Value.Fixed( padBottom );
			_sizeInvalid = true;
			return this;
		}