Skip to content

Class LemonUI::Extensions::SizeExtensions

ClassList > LemonUI > Extensions > SizeExtensions

Extensions for the Size and SizeF classes.

Public Static Functions

Type Name
SizeF ToAbsolute (this SizeF size)
Converts a normalized 0-1 size into a scaled one.
SizeF ToRelative (this SizeF size)
Converts a scaled 1080-based size into a relative one.

Public Static Functions Documentation

function ToAbsolute

Converts a normalized 0-1 size into a scaled one.

static SizeF LemonUI::Extensions::SizeExtensions::ToAbsolute (
    this SizeF size
) 

Parameters:

  • size The relative SizeF.

Returns:

A new SizeF with scaled values.

function ToRelative

Converts a scaled 1080-based size into a relative one.

static SizeF LemonUI::Extensions::SizeExtensions::ToRelative (
    this SizeF size
) 

Parameters:

  • size The scaled SizeF.

Returns:

A new SizeF with relative values.


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