Table of Contents

Class CoordinateSpaceAttribute

Namespace
FlowGraph.Core.Rendering
Assembly
FlowGraph.Core.dll

Marks a parameter, property, or method with its expected coordinate space. Use this attribute for documentation and potential static analysis tools.

[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Parameter|AttributeTargets.ReturnValue)]
public class CoordinateSpaceAttribute : Attribute
Inheritance
CoordinateSpaceAttribute
Inherited Members

Examples

void HandleClick([CoordinateSpace(CoordinateSpace.Canvas)] Point canvasPos);

[CoordinateSpace(CoordinateSpace.Screen)]
Point PointerPosition { get; }

[return: CoordinateSpace(CoordinateSpace.Canvas)]
Point ScreenToCanvas(Point screenPoint);

Constructors

CoordinateSpaceAttribute(CoordinateSpace)

Creates a new CoordinateSpaceAttribute with the specified space.

public CoordinateSpaceAttribute(CoordinateSpace space)

Parameters

space CoordinateSpace

The coordinate space.

Properties

Space

The coordinate space this element operates in.

public CoordinateSpace Space { get; }

Property Value

CoordinateSpace