Class GraphicsTypeManager

Definition

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

GraphicsTypeManager class to manage various types.

C#
Copy
public class GraphicsTypeManager : object
Inheritance
GraphicsTypeManager

Fields

View Source

DensityHigh

Constant of high(240) density dpi.

Declaration
C#
Copy
public const ushort DensityHigh = null
Field Value
Type Description
UInt16
View Source

DensityLow

Constant of low(120) density dpi.

Declaration
C#
Copy
public const ushort DensityLow = null
Field Value
Type Description
UInt16
View Source

DensityMedium

Constant of medium(160) density dpi. Baseline dpi.

Declaration
C#
Copy
public const ushort DensityMedium = null
Field Value
Type Description
UInt16
View Source

DensityXHigh

Constant of extra high(320) density dpi.

Declaration
C#
Copy
public const ushort DensityXHigh = null
Field Value
Type Description
UInt16
View Source

DensityXXHigh

Constant of double extra high(480) density dpi.

Declaration
C#
Copy
public const ushort DensityXXHigh = null
Field Value
Type Description
UInt16
View Source

DensityXXXHigh

Constant of triple extra high(640) density dpi.

Declaration
C#
Copy
public const ushort DensityXXXHigh = null
Field Value
Type Description
UInt16

Properties

View Source

BaselineDpi

Default baseline dpi. Medium(160) density dpi is origianlly provided.

Declaration
C#
Copy
public int BaselineDpi { get; }
Property Value
Type Description
Int32
View Source

Density

Density of display.

Declaration
C#
Copy
public float Density { get; }
Property Value
Type Description
Single
View Source

Dp

Default DpTypeConverter. use this Converter to convert Dp to/from other types. See DpTypeConverter.

Declaration
C#
Copy
public DpTypeConverter Dp { get; set; }
Property Value
Type Description
DpTypeConverter
View Source

Dpi

Dot per Inch value from system. See Vector Dpi in Window also.

Declaration
C#
Copy
public int Dpi { get; }
Property Value
Type Description
Int32
View Source

Instance

An unique Singleton Instance of GraphicsTypeManager

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

Singleton instance of GraphicsTypeManager

View Source

Point

Default PointTypeConverter. use this Converter to convert Point to/from other types. See PointTypeConverter.

Declaration
C#
Copy
public PointTypeConverter Point { get; set; }
Property Value
Type Description
PointTypeConverter
View Source

ScaledDensity

Scaled Density of display.

Declaration
C#
Copy
public float ScaledDensity { get; }
Property Value
Type Description
Single
View Source

ScaledDpi

Scaled Dpi for GraphicsTypeManager. ScaledDpi is scaled from Dpi with custom ScalingFactor.

Declaration
C#
Copy
public int ScaledDpi { get; }
Property Value
Type Description
Int32
View Source

ScalingFactor

Custom scale factor of display metrics. ScalingFactor scale ScaledDpi on Dpi.

Declaration
C#
Copy
public float ScalingFactor { get; }
Property Value
Type Description
Single
View Source

Sp

Default SpTypeConverter. use this Converter to convert Sp to/from other types. See SpTypeConverter.

Declaration
C#
Copy
public SpTypeConverter Sp { get; set; }
Property Value
Type Description
SpTypeConverter

Methods

View Source

ConvertScriptToPixel(String)

Converts script to pixel.

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

Pixel value that is converted from input string

Extension Methods