Interface ICoordTransform
Interface for coordinate tranform complient
Namespace: FormsGestures
Assembly: FormsGestures.dll
Syntax
public interface ICoordTransform
Methods
BoundsInWindowCoord(VisualElement)
Returns bounds of view in DIP Screen Coordinates
Declaration
Rectangle BoundsInWindowCoord(VisualElement element)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | element |
Returns
Type | Description |
---|---|
Rectangle |
CoordTransform(VisualElement, Point, VisualElement)
point transform
Declaration
Point CoordTransform(VisualElement fromElement, Point p, VisualElement toElement)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | fromElement | |
Point | p | |
VisualElement | toElement |
Returns
Type | Description |
---|---|
Point |
CoordTransform(VisualElement, Rectangle, VisualElement)
rectangle transform
Declaration
Rectangle CoordTransform(VisualElement fromElement, Rectangle r, VisualElement toElement)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | fromElement | |
Rectangle | r | |
VisualElement | toElement |
Returns
Type | Description |
---|---|
Rectangle |
PointInWindowCoord(VisualElement, Point)
Returns point within view in DIP Screen Coordinates
Declaration
Point PointInWindowCoord(VisualElement element, Point point)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | element | |
Point | point |
Returns
Type | Description |
---|---|
Point |