Class PointTypeConverter

Definition

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

Default PointTypeConverter class to convert point types.

C#
Copy
public sealed class PointTypeConverter : GraphicsTypeConverter
Inheritance
PointTypeConverter

Properties

View Source

Instance

An unique Singleton Instance of PointTypeConverter.

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

Singleton instance of PointTypeConverter

Methods

View Source

ConvertDpToPoint(Single)

Converts dp type to point type.

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

Point value that is converted from dp.

View Source

ConvertFromPixel(Single)

Converts pixel to point 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

ConvertPointToDp(Single)

Converts point type to dp type.

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

Dp value that is converted from point.

View Source

ConvertPointToSp(Single)

Converts point type to sp type.

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

Sp value that is converted from point.

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

ConvertScriptToPoint(String)

Converts script to pixel.

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

Pixel value that is converted from input string

View Source

ConvertSpToPoint(Single)

Converts sp type to point type.

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

Point value that is converted from dp.

View Source

ConvertToPixel(Single)

Converts point 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