Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
Default PointTypeConverter class to convert point types.
public sealed class PointTypeConverter : GraphicsTypeConverter
- Inheritance
-
Properties
View Source
Instance
An unique Singleton Instance of PointTypeConverter.
Declaration
public static PointTypeConverter Instance { get; }
Property Value
Methods
View Source
ConvertDpToPoint(Single)
Converts dp type to point type.
Declaration
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
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
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
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
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
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
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
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