Class ScaledRectangle
A 2D rectangle.
Inherited Members
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledRectangle : BaseElement, I2Dimensional, IRecalculable, IDrawable
Constructors
View SourceScaledRectangle(PointF, SizeF)
Creates a new ScaledRectangle with the specified Position and Size.
Declaration
public ScaledRectangle(PointF pos, SizeF size)
Parameters
Type | Name | Description |
---|---|---|
PointF | pos | The position of the Rectangle. |
SizeF | size | The size of the Rectangle. |
Methods
View SourceDraw()
Draws the rectangle on the screen.
Declaration
public override void Draw()
Overrides
View SourceRecalculate()
Recalculates the position based on the size.
Declaration
public override void Recalculate()