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
Exemplo n.º 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 );
        }
Exemplo n.º 2
0
        void onGraphicsDeviceReset()
        {
            var layout = new Layout(Core.graphicsDevice.Viewport);

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