Skip to content

Class LemonUI::Elements::BaseElement

ClassList > LemonUI > Elements > BaseElement

Base class for all of the 2D elements.

Inherits the following classes: LemonUI::Elements::I2Dimensional

Inherited by the following classes: LemonUI::Elements::ScaledBink, LemonUI::Elements::ScaledRectangle, LemonUI::Elements::ScaledTexture

Public Properties

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
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 Properties Documentation

property Color

virtual Color LemonUI.Elements.BaseElement.Color;

property Heading

virtual float LemonUI.Elements.BaseElement.Heading;

property Position

virtual PointF LemonUI.Elements.BaseElement.Position;

property Size

virtual SizeF LemonUI.Elements.BaseElement.Size;

Public Functions Documentation

function BaseElement

Creates a new BaseElement with the specified Position and Size.

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

Parameters:

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

function Draw

virtual abstract void LemonUI::Elements::BaseElement::Draw () = 0

Implements LemonUI::IDrawable::Draw

function Recalculate

inline virtual void LemonUI::Elements::BaseElement::Recalculate () 

Implements LemonUI::IRecalculable::Recalculate


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