Class SpTypeConverter

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

Default SpTypeConverter class to convert dp types.

C#
Copy
public sealed class SpTypeConverter : GraphicsTypeConverter
Inheritance
SpTypeConverter

Properties

View Source

Instance

An unique Singleton Instance of SpTypeConverter

Declaration
C#
Copy
public static SpTypeConverter Instance { get; }
Property Value
Type Description
SpTypeConverter

Singleton instance of SpTypeConverter

Methods

View Source

ConvertFromPixel(Single)

Converts pixel to sp type

Declaration
C#
Copy
public override float ConvertFromPixel(float value)
Parameters
Type Name Description
Single value
Returns
Type Description
Single

An converted value from pixel

Overrides
View Source

ConvertScriptToPixel(String)

Converts script to pixel

Declaration
C#
Copy
public override float ConvertScriptToPixel(string scriptValue)
Parameters
Type Name Description
String scriptValue
Returns
Type Description
Single

Pixel value that is converted from input string

Overrides
View Source

ConvertToPixel(Single)

Converts sp type to pixel

Declaration
C#
Copy
public override float ConvertToPixel(float value)
Parameters
Type Name Description
Single value
Returns
Type Description
Single

Pixel value that is converted by the the display matric

Overrides

Extension Methods