PowerUI.ResolutionInfo Class Reference

Detailed Description

This class represents resolution information. Use this and Document.SetResolution if you are targeting different resolutions.

Public Member Functions

 ResolutionInfo (float scale)
 
Parameters
scaleAll px values will be multiplied by this scale when this resolution is active.
More...
 
 ResolutionInfo (DesignSize size)
 
Parameters
sizeThe screen will be sized such that the given design size will visually look the best it can on all devices.
More...
 
 ResolutionInfo (string name, float scale)
 The name for this resolution mode, e.g. "ipad". This name is tacked onto the end of image, animation and video files so you can select one at a different resolution. if you don't want this to occur, use background-resolution:fixed-resolution. More...
 

Public Attributes

string Name
 The name for this resolution mode, e.g. "ipad". This name is tacked onto the end of image, animation and video files so you can select one at a different resolution. More...
 
float Scale =1f
 All px values will be multiplied by this scale when this resolution is active. More...
 

Constructor & Destructor Documentation

PowerUI.ResolutionInfo.ResolutionInfo ( float  scale)
inline

Parameters
scaleAll px values will be multiplied by this scale when this resolution is active.

PowerUI.ResolutionInfo.ResolutionInfo ( DesignSize  size)
inline

Parameters
sizeThe screen will be sized such that the given design size will visually look the best it can on all devices.

PowerUI.ResolutionInfo.ResolutionInfo ( string  name,
float  scale 
)
inline

The name for this resolution mode, e.g. "ipad". This name is tacked onto the end of image, animation and video files so you can select one at a different resolution. if you don't want this to occur, use background-resolution:fixed-resolution.

Parameters
scaleAll px values will be multiplied by this scale when this resolution is active.

Member Data Documentation

string PowerUI.ResolutionInfo.Name

The name for this resolution mode, e.g. "ipad". This name is tacked onto the end of image, animation and video files so you can select one at a different resolution.

float PowerUI.ResolutionInfo.Scale =1f

All px values will be multiplied by this scale when this resolution is active.