Skip to content

Class LemonUI::Elements::ScaledTexture

ClassList > LemonUI > Elements > ScaledTexture

A 2D game texture.

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

Inherited by the following classes: LemonUI::Elements::ScaledAnim

Public Properties

Type Name
property string?? Dictionary
The dictionary where the texture is loaded.
property string?? Texture
The texture to draw from the dictionary.

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 texture on the screen.
void DrawSpecific (PointF topLeft, PointF bottomRight)
Draws a specific part of the texture on the screen.
virtual override void Recalculate ()
Recalculates the position based on the size.
ScaledTexture (string dictionary, string texture)
Creates a new ScaledTexture with a Position and Size of Zero.
ScaledTexture (PointF pos, SizeF size, string dictionary, string texture)
Creates a new ScaledTexture with a Position and Size of zero.

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

property Dictionary

string?? LemonUI.Elements.ScaledTexture.Dictionary;

property Texture

string?? LemonUI.Elements.ScaledTexture.Texture;

Public Functions Documentation

function Draw

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

Implements LemonUI::Elements::BaseElement::Draw

function DrawSpecific

inline void LemonUI::Elements::ScaledTexture::DrawSpecific (
    PointF topLeft,
    PointF bottomRight
) 

function Recalculate

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

Implements LemonUI::Elements::BaseElement::Recalculate

function ScaledTexture [1/2]

Creates a new ScaledTexture with a Position and Size of Zero.

inline LemonUI::Elements::ScaledTexture::ScaledTexture (
    string dictionary,
    string texture
) 

Parameters:

  • dictionary The dictionary where the texture is located.
  • texture The texture to draw.

function ScaledTexture [2/2]

Creates a new ScaledTexture with a Position and Size of zero.

inline LemonUI::Elements::ScaledTexture::ScaledTexture (
    PointF pos,
    SizeF size,
    string dictionary,
    string texture
) 

Parameters:

  • pos The position of the Texture.
  • size The size of the Texture.
  • dictionary The dictionary where the texture is located.
  • texture The texture to draw.

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