GripGradientInteraction

References
public sealed class GripGradientInteraction : IResponsive
Interaction object for GripGradient.

Constructors

GripGradientInteraction

#
Create a new gradient interaction.
public GripGradientInteraction(
gradient
Original gradient.
)

Properties

Bounds

#
Gets or sets the bounds rectangle into which this gradient interaction object exists.
public RectangleF Bounds { get; set; }

Control

#
Gets or sets the control hosting this interaction. Hosts must assign this while the interaction is attached so the responsive can reach floating buttons.
public IFlexControl Control { get; set; }

ModifiedGradient

#
Gets the current gradient which contains all modifications to the original one.
public GripGradient ModifiedGradient { get; }

OriginalGradient

#
Gets the original gradient used to construct this interaction object.
public GripGradient OriginalGradient { get; }

Parameter0

#
Gets or sets the parameter along the left edge of the bounds rectangle.
public double Parameter0 { get; set; }

Parameter1

#
Gets or sets the parameter along the right edge of the bounds rectangle.
public double Parameter1 { get; set; }

Responder

#
public Responses Responder { get; }
Responder

SnapSpace

#
Gets or sets the snapping grid for this interaction.
public SnapSpace SnapSpace { get; set; }

SnapToGrid

#
Gets or sets whether this interaction ought to snap to the grid.
public bool SnapToGrid { get; set; }

Methods

CreateFloatingButtons

#
public void CreateFloatingButtons(
control
)

DrawGradient

#
Draw the gradient into the bounds.
public void DrawGradient(
context
Graphics object.
)

DrawInterface

#
Draw the interface elements into the bounds.
public void DrawInterface(
context
Graphics object.
)

RemoveFloatingButtons

#
public void RemoveFloatingButtons(
control
)

RespondToWindowSelect

#
public Response RespondToWindowSelect()

Events

GradientChanged

#
Raised whenever the gradient changes outside of the standard mouse event pipeline.
public event EventHandler<EventArgs> GradientChanged