C# Class Treefrog.Presentation.Tools.SnappingManager

Mostra file Open project: jaquadro/Treefrog Class Usage Examples

Public Methods

Method Description
SnappingManager ( Point subjectOrigin, Rectangle subjectBounds, Size gridSize ) : System
Translate ( Point coord, ObjectSnappingTarget mode ) : Point

Private Methods

Method Description
ClosestValue ( int refVal, int candidates ) : int
Mod ( int x, int m ) : int
SnapXCenter ( int x ) : int
SnapXLeft ( int x ) : int
SnapXRight ( int x ) : int
SnapYBottom ( int y ) : int
SnapYCenter ( int y ) : int
SnapYTop ( int y ) : int

Method Details

SnappingManager() public method

public SnappingManager ( Point subjectOrigin, Rectangle subjectBounds, Size gridSize ) : System
subjectOrigin Point
subjectBounds Treefrog.Framework.Imaging.Rectangle
gridSize Treefrog.Framework.Imaging.Size
return System

Translate() public method

public Translate ( Point coord, ObjectSnappingTarget mode ) : Point
coord Point
mode ObjectSnappingTarget
return Point