A fixed value that is not computed each time it is used.
Inheritance: Value
示例#1
0
文件: Container.cs 项目: v-karpov/Nez
 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);
 }
示例#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;
		}
示例#3
0
文件: Container.cs 项目: v-karpov/Nez
        /// <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);
        }
示例#4
0
文件: Container.cs 项目: v-karpov/Nez
 public Container SetPadRight(float padRight)
 {
     _padRight = new Value.Fixed(padRight);
     return(this);
 }
示例#5
0
文件: Container.cs 项目: v-karpov/Nez
 public Container SetPadBottom(float padBottom)
 {
     _padBottom = new Value.Fixed(padBottom);
     return(this);
 }
示例#6
0
文件: Container.cs 项目: v-karpov/Nez
 public Container SetMaxHeight(float maxHeight)
 {
     _maxHeightValue = new Value.Fixed(maxHeight);
     return(this);
 }
示例#7
0
文件: Container.cs 项目: v-karpov/Nez
 public Container SetPrefHeight(float prefHeight)
 {
     _prefHeightValue = new Value.Fixed(prefHeight);
     return(this);
 }
示例#8
0
 public Container setPadLeft(float padLeft)
 {
     _padLeft = new Value.Fixed(padLeft);
     return(this);
 }
示例#9
0
 public Container setMinHeight(float minHeight)
 {
     _minHeightValue = new Value.Fixed(minHeight);
     return(this);
 }
示例#10
0
文件: Table.cs 项目: RastaCow/Nez
		/// <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;
		}
示例#11
0
文件: Table.cs 项目: RastaCow/Nez
		/// <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;
		}
示例#12
0
文件: Table.cs 项目: RastaCow/Nez
		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;
		}
示例#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;
		}
示例#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;
		}