GripGradientInteraction

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

Constructors

GripGradientInteraction

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

Properties

Bounds

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

Control

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

ModifiedGradient

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

OriginalGradient

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

Parameter0

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

Parameter1

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

Responder

#
public Responses Responder { get; }
Responder

SnapSpace

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

SnapToGrid

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

Methods

CreateFloatingButtons

#
public void CreateFloatingButtons(IFlexControl control)
control (IFlexControl)

DrawGradient

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

DrawInterface

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

RemoveFloatingButtons

#
public void RemoveFloatingButtons(IFlexControl control)
control (IFlexControl)

RespondToWindowSelect

#
public Response RespondToWindowSelect(WindowSelectionEventArgs e)

Events

GradientChanged

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