Show / Hide Table of Contents

Class ScaledRectangle

A 2D rectangle.

Inheritance
object
BaseElement
ScaledRectangle
Implements
I2Dimensional
IRecalculable
IDrawable
Inherited Members
BaseElement.literalPosition
BaseElement.relativePosition
BaseElement.literalSize
BaseElement.relativeSize
BaseElement.Position
BaseElement.Size
BaseElement.Color
BaseElement.Heading
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledRectangle : BaseElement, I2Dimensional, IRecalculable, IDrawable

Constructors

View Source

ScaledRectangle(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 Source

Draw()

Draws the rectangle on the screen.

Declaration
public override void Draw()
Overrides
BaseElement.Draw()
View Source

Recalculate()

Recalculates the position based on the size.

Declaration
public override void Recalculate()
Overrides
BaseElement.Recalculate()

Implements

I2Dimensional
IRecalculable
IDrawable
  • View Source
In this article
Back to top Generated by DocFX