Show / Hide Table of Contents

Class BaseElement

Base class for all of the 2D elements.

Inheritance
object
BaseElement
ScaledBink
ScaledRectangle
ScaledTexture
Implements
I2Dimensional
IRecalculable
IDrawable
Inherited Members
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 abstract class BaseElement : I2Dimensional, IRecalculable, IDrawable

Constructors

View Source

BaseElement(PointF, SizeF)

Creates a new BaseElement with the specified Position and Size.

Declaration
public BaseElement(PointF pos, SizeF size)
Parameters
Type Name Description
PointF pos

The position of the Element.

SizeF size

The size of the Element.

Fields

View Source

literalPosition

The 1080 scaled position.

Declaration
protected PointF literalPosition
Field Value
Type Description
PointF
View Source

literalSize

The 1080 scaled size.

Declaration
protected SizeF literalSize
Field Value
Type Description
SizeF
View Source

relativePosition

The relative position between 0 and 1.

Declaration
protected PointF relativePosition
Field Value
Type Description
PointF
View Source

relativeSize

The relative size between 0 and 1.

Declaration
protected SizeF relativeSize
Field Value
Type Description
SizeF

Properties

View Source

Color

The Color of the drawable.

Declaration
public virtual Color Color { get; set; }
Property Value
Type Description
Color
View Source

Heading

The rotation of the drawable.

Declaration
public virtual float Heading { get; set; }
Property Value
Type Description
float
View Source

Position

The Position of the drawable.

Declaration
public virtual PointF Position { get; set; }
Property Value
Type Description
PointF
View Source

Size

The Size of the drawable.

Declaration
public virtual SizeF Size { get; set; }
Property Value
Type Description
SizeF

Methods

View Source

Draw()

Draws the item on the screen.

Declaration
public abstract void Draw()
View Source

Recalculate()

Recalculates the size and position of this item.

Declaration
public virtual void Recalculate()

Implements

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