Class SelectionRectangle
Used to render a selection rectangle on the UI.
Inherited Members
Namespace: Gorgon.Editor.Rendering
Assembly: Gorgon.Editor.API.dll
Syntax
public class SelectionRectangle : ISelectionRectangle, IDisposable
Constructors
| Edit this page View SourceSelectionRectangle(IGraphicsContext)
Initializes a new instance of the SelectionRectangle class.
Declaration
public SelectionRectangle(IGraphicsContext graphics)
Parameters
Type | Name | Description |
---|---|---|
IGraphicsContext | graphics | The graphics context to use. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
Properties
| Edit this page View SourceBorderColor
Property to set or return the color for the selection rectangle border.
Declaration
public GorgonColor BorderColor { get; set; }
Property Value
Type | Description |
---|---|
GorgonColor |
Color
Property to set or return the color for the selection rectangle.
Declaration
public GorgonColor Color { get; set; }
Property Value
Type | Description |
---|---|
GorgonColor |
Speed
Property to set or return the speed of the overlay animation.
Declaration
public Vector2 Speed { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Draw(RectangleF)
Function to draw the selection region.
Declaration
public void Draw(RectangleF region)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | region | The region to draw. |