Class BaseElement
Base class for all of the 2D elements.
Inherited Members
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public abstract class BaseElement : I2Dimensional, IRecalculable, IDrawable
Constructors
View SourceBaseElement(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 SourceliteralPosition
The 1080 scaled position.
Declaration
protected PointF literalPosition
Field Value
Type | Description |
---|---|
PointF |
literalSize
The 1080 scaled size.
Declaration
protected SizeF literalSize
Field Value
Type | Description |
---|---|
SizeF |
relativePosition
The relative position between 0 and 1.
Declaration
protected PointF relativePosition
Field Value
Type | Description |
---|---|
PointF |
relativeSize
The relative size between 0 and 1.
Declaration
protected SizeF relativeSize
Field Value
Type | Description |
---|---|
SizeF |
Properties
View SourceColor
The Color of the drawable.
Declaration
public virtual Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Heading
The rotation of the drawable.
Declaration
public virtual float Heading { get; set; }
Property Value
Type | Description |
---|---|
float |
Position
The Position of the drawable.
Declaration
public virtual PointF Position { get; set; }
Property Value
Type | Description |
---|---|
PointF |
Size
The Size of the drawable.
Declaration
public virtual SizeF Size { get; set; }
Property Value
Type | Description |
---|---|
SizeF |
Methods
View SourceDraw()
Draws the item on the screen.
Declaration
public abstract void Draw()
Recalculate()
Recalculates the size and position of this item.
Declaration
public virtual void Recalculate()