place() публичный Метод

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
Результат Microsoft.Xna.Framework.Rectangle
Пример #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 );
        }
Пример #2
0
        void onGraphicsDeviceReset()
        {
            var layout = new Layout(Core.graphicsDevice.Viewport);

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