ResponseRotationArgs

References
public sealed class ResponseRotationArgs
Rotation gesture payload delivered to Responses handlers. Carries the cursor location in both Control and Content coordinate systems plus the per-tick rotation delta in degrees.

Constructors

ResponseRotationArgs

#
public ResponseRotationArgs(FlexControl host, PointF controlLocation, PointF contentLocation, float rotation, bool isNewGesture)
host (FlexControl)
controlLocation (PointF)
contentLocation (PointF)
rotation (float)
isNewGesture (bool)

Properties

ContentLocation

#
public PointF ContentLocation { get; }
Cursor location in content-space (the host's projected coordinates).

ControlLocation

#
public PointF ControlLocation { get; }
Cursor location in raw control-space pixels.

IsNewGesture

#
public bool IsNewGesture { get; }
True when this activation appears to start a new rotation session — i.e. the time since the previous activation exceeded the FlexControl-internal gap threshold. Use this to reset per-session accumulators.
Remarks: This is currently inferred from a time-gap heuristic. Once Eto surfaces the underlying gesture state (Began/Changed/Ended), the heuristic will be replaced and this flag will become authoritative.

Rotation

#
public float Rotation { get; }
Rotation delta for this activation, in degrees. Positive values indicate clockwise rotation. This is the change since the last activation, not the absolute rotation since the gesture began.

Methods

Invalidate

#
public void Invalidate()
Schedule a redraw on the hosting control.