Class PointTypeConverter
Definition
- Assembly:
- Tizen.NUI.dll
Default PointTypeConverter class to convert point types.
public sealed class PointTypeConverter : GraphicsTypeConverter
- Inheritance
Properties
View SourceInstance
An unique Singleton Instance of PointTypeConverter.
Declaration
public static PointTypeConverter Instance { get; }
Property Value
Type | Description |
---|---|
PointTypeConverter | Singleton instance of PointTypeConverter |
Methods
View SourceConvertDpToPoint(float)
Converts dp type to point type.
Declaration
public float ConvertDpToPoint(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value |
Returns
Type | Description |
---|---|
float | Point value that is converted from dp. |
ConvertFromPixel(float)
Converts pixel to point type.
Declaration
public override float ConvertFromPixel(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value |
Returns
Type | Description |
---|---|
float | An converted value from pixel |
Overrides
View SourceConvertPointToDp(float)
Converts point type to dp type.
Declaration
public float ConvertPointToDp(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value |
Returns
Type | Description |
---|---|
float | Dp value that is converted from point. |
ConvertPointToSp(float)
Converts point type to sp type.
Declaration
public float ConvertPointToSp(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value |
Returns
Type | Description |
---|---|
float | Sp value that is converted from point. |
ConvertScriptToPixel(string)
Converts script to pixel.
Declaration
public override float ConvertScriptToPixel(string scriptValue)
Parameters
Type | Name | Description |
---|---|---|
string | scriptValue |
Returns
Type | Description |
---|---|
float | Pixel value that is converted from input string |
Overrides
View SourceConvertScriptToPoint(string)
Converts script to pixel.
Declaration
public float ConvertScriptToPoint(string scriptValue)
Parameters
Type | Name | Description |
---|---|---|
string | scriptValue |
Returns
Type | Description |
---|---|
float | Pixel value that is converted from input string |
ConvertSpToPoint(float)
Converts sp type to point type.
Declaration
public float ConvertSpToPoint(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value |
Returns
Type | Description |
---|---|
float | Point value that is converted from dp. |
ConvertToPixel(float)
Converts point type to pixel.
Declaration
public override float ConvertToPixel(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value |
Returns
Type | Description |
---|---|
float | Pixel value that is converted by the the display matric |