Skip to content

Class LemonUI::Elements::ScaledRectangle

ClassList > LemonUI > Elements > ScaledRectangle

A 2D rectangle.

Inherits the following classes: LemonUI::Elements::BaseElement

Public Properties inherited from LemonUI::Elements::BaseElement

See LemonUI::Elements::BaseElement

Type Name
property Color Color
The Color of the drawable.
property float Heading
The rotation of the drawable.
property PointF Position
The Position of the drawable.
property SizeF Size
The Size of the drawable.

Public Properties inherited from LemonUI::Elements::I2Dimensional

See LemonUI::Elements::I2Dimensional

Type Name
property Color Color
The Color of the drawable.
property PointF Position
The Position of the drawable.
property SizeF Size
The Size of the drawable.

Public Functions

Type Name
virtual override void Draw ()
Draws the rectangle on the screen.
virtual override void Recalculate ()
Recalculates the position based on the size.
ScaledRectangle (PointF pos, SizeF size)
Creates a new ScaledRectangle with the specified Position and Size.

Public Functions inherited from LemonUI::Elements::BaseElement

See LemonUI::Elements::BaseElement

Type Name
BaseElement (PointF pos, SizeF size)
Creates a new BaseElement with the specified Position and Size.
virtual abstract void Draw () = 0
Draws the item on the screen.
virtual void Recalculate ()
Recalculates the size and position of this item.

Public Functions inherited from LemonUI::IRecalculable

See LemonUI::IRecalculable

Type Name
void Recalculate ()
Recalculates the values.

Public Functions inherited from LemonUI::IDrawable

See LemonUI::IDrawable

Type Name
void Draw ()
Draws the item on the screen.

Public Functions Documentation

function Draw

inline virtual override void LemonUI::Elements::ScaledRectangle::Draw () 

Implements LemonUI::Elements::BaseElement::Draw

function Recalculate

inline virtual override void LemonUI::Elements::ScaledRectangle::Recalculate () 

Implements LemonUI::Elements::BaseElement::Recalculate

function ScaledRectangle

Creates a new ScaledRectangle with the specified Position and Size.

inline LemonUI::Elements::ScaledRectangle::ScaledRectangle (
    PointF pos,
    SizeF size
) 

Parameters:

  • pos The position of the Rectangle.
  • size The size of the Rectangle.

The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Elements/ScaledRectangle.cs