C# Class Artemis.Engine.LayoutDesigner

Exibir arquivo Open project: ArtemisEngine/Artemis-Engine

Public Methods

Method Description
Space ( AbstractLayoutSpacingProvider spacer, Vector2 initialPosition, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void

Space the given objects using the given AbstractLayoutSpacingProvider and the initial position.

SpaceHorizontally ( float spacing, Vector2 initialPosition, HorizontalSpacingDirection direction = HorizontalSpacingDirection.Left, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void

Space the given objects horizontally, starting at the given initial position and with the given amount of space between each object.

SpaceInDirection ( float spacing, Vector2 initialPosition, Vector2 direction, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void

Space the given objects in the given direction, starting at the given initial position and with the given amount of space between each object.

SpaceVertically ( float spacing, Vector2 initialPosition, VerticalSpacingDirection direction = VerticalSpacingDirection.Down, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void

Space the given objects vertically, starting at the given initial position and with the given amount of space between each object.

Method Details

Space() public static method

Space the given objects using the given AbstractLayoutSpacingProvider and the initial position.
public static Space ( AbstractLayoutSpacingProvider spacer, Vector2 initialPosition, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void
spacer AbstractLayoutSpacingProvider
initialPosition Microsoft.Xna.Framework.Vector2
coordinateSpace CoordinateSpace
return void

SpaceHorizontally() public static method

Space the given objects horizontally, starting at the given initial position and with the given amount of space between each object.
public static SpaceHorizontally ( float spacing, Vector2 initialPosition, HorizontalSpacingDirection direction = HorizontalSpacingDirection.Left, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void
spacing float
initialPosition Microsoft.Xna.Framework.Vector2
direction HorizontalSpacingDirection
coordinateSpace CoordinateSpace
return void

SpaceInDirection() public static method

Space the given objects in the given direction, starting at the given initial position and with the given amount of space between each object.
public static SpaceInDirection ( float spacing, Vector2 initialPosition, Vector2 direction, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void
spacing float
initialPosition Microsoft.Xna.Framework.Vector2
direction Microsoft.Xna.Framework.Vector2
coordinateSpace CoordinateSpace
return void

SpaceVertically() public static method

Space the given objects vertically, starting at the given initial position and with the given amount of space between each object.
public static SpaceVertically ( float spacing, Vector2 initialPosition, VerticalSpacingDirection direction = VerticalSpacingDirection.Down, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void
spacing float
initialPosition Microsoft.Xna.Framework.Vector2
direction VerticalSpacingDirection
coordinateSpace CoordinateSpace
return void