Class GraphicsTypeManager
Definition
- Assembly:
- Tizen.NUI.dll
GraphicsTypeManager class to manage various types.
public class GraphicsTypeManager
- Inheritance
-
objectGraphicsTypeManager
Fields
View SourceDensityHigh
Constant of high(240) density dpi.
Declaration
public const ushort DensityHigh
Field Value
| Type | Description |
|---|---|
| ushort |
DensityLow
Constant of low(120) density dpi.
Declaration
public const ushort DensityLow
Field Value
| Type | Description |
|---|---|
| ushort |
DensityMedium
Constant of medium(160) density dpi. Baseline dpi.
Declaration
public const ushort DensityMedium
Field Value
| Type | Description |
|---|---|
| ushort |
DensityXHigh
Constant of extra high(320) density dpi.
Declaration
public const ushort DensityXHigh
Field Value
| Type | Description |
|---|---|
| ushort |
DensityXXHigh
Constant of double extra high(480) density dpi.
Declaration
public const ushort DensityXXHigh
Field Value
| Type | Description |
|---|---|
| ushort |
DensityXXXHigh
Constant of triple extra high(640) density dpi.
Declaration
public const ushort DensityXXXHigh
Field Value
| Type | Description |
|---|---|
| ushort |
Properties
View SourceBaselineDpi
Default baseline dpi. Medium(160) density dpi is origianlly provided.
Declaration
public int BaselineDpi { get; }
Property Value
| Type | Description |
|---|---|
| int |
Density
Density of display.
Declaration
public float Density { get; }
Property Value
| Type | Description |
|---|---|
| float |
Dp
Default DpTypeConverter. use this Converter to convert Dp to/from other types. See DpTypeConverter.
Declaration
public DpTypeConverter Dp { get; set; }
Property Value
| Type | Description |
|---|---|
| DpTypeConverter |
Dpi
Dot per Inch value from system. See Vector Dpi in Window also.
Declaration
public int Dpi { get; }
Property Value
| Type | Description |
|---|---|
| int |
Instance
An unique Singleton Instance of GraphicsTypeManager
Declaration
public static GraphicsTypeManager Instance { get; }
Property Value
| Type | Description |
|---|---|
| GraphicsTypeManager | Singleton instance of GraphicsTypeManager |
Point
Default PointTypeConverter. use this Converter to convert Point to/from other types. See PointTypeConverter.
Declaration
public PointTypeConverter Point { get; set; }
Property Value
| Type | Description |
|---|---|
| PointTypeConverter |
ScaledDensity
Scaled Density of display.
Declaration
public float ScaledDensity { get; }
Property Value
| Type | Description |
|---|---|
| float |
ScaledDpi
Scaled Dpi for GraphicsTypeManager. ScaledDpi is scaled from Dpi with custom ScalingFactor.
Declaration
public int ScaledDpi { get; }
Property Value
| Type | Description |
|---|---|
| int |
ScalingFactor
Custom scale factor of display metrics. ScalingFactor scale ScaledDpi on Dpi.
Declaration
public float ScalingFactor { get; }
Property Value
| Type | Description |
|---|---|
| float |
Sdp
Default SdpTypeConverter. use this Converter to convert Sdp to/from other types. See SdpTypeConverter.
Declaration
public SdpTypeConverter Sdp { get; set; }
Property Value
| Type | Description |
|---|---|
| SdpTypeConverter |
Sp
Default SpTypeConverter. use this Converter to convert Sp to/from other types. See SpTypeConverter.
Declaration
public SpTypeConverter Sp { get; set; }
Property Value
| Type | Description |
|---|---|
| SpTypeConverter |
Methods
View SourceConvertScriptToPixel(string)
Converts script to pixel.
Declaration
public float ConvertScriptToPixel(string scriptValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | scriptValue |
Returns
| Type | Description |
|---|---|
| float | Pixel value that is converted from input string |