place() public method

Layouting specified region
public place ( Rectangle region, float horizontalMargin, float verticalMargine, Alignment alignment ) : Rectangle
region Microsoft.Xna.Framework.Rectangle placing rectangle
horizontalMargin float
verticalMargine float
alignment Alignment
return Microsoft.Xna.Framework.Rectangle
Example #1
0
        void onGraphicsDeviceReset()
        {
            var layout = new Layout(Core.graphicsDevice.Viewport);

            _position = layout.place(new Vector2(width, barHeight), 0, 0.075f, Alignment.TopCenter);
            //_position = new Vector2(0, 50);// layout.place( new Vector2( width, barHeight ), 0, 0.05f, Alignment.TopCenter );
        }
Example #2
0
        void onGraphicsDeviceReset()
        {
            var layout = new Layout(Core.graphicsDevice.Viewport);

            _position = layout.place(new Vector2(width, barHeight), 0, 0.01f, Alignment.BottomCenter);
        }
Example #3
0
		void onGraphicsDeviceReset()
		{
			var layout = new Layout( Core.graphicsDevice.Viewport );
			_position = layout.place( new Vector2( width, barHeight ), 0, 0.01f, Alignment.BottomCenter );
		}