PowerUI.ContentGroup Class Reference

Detailed Description

A group of multiple URLs (usually for images). Used by srcset.

Public Member Functions

void AddSrc (string src)
 Adds the src='' entry. More...
 
int Add (string src, string descriptor)
 Adds the given location to the group with an optional descriptor. More...
 
ContentEntry MostSuitable (float descriptor)
 Selects the most suitable entry for the given density/ width descriptor. More...
 

Public Attributes

int SrcIndex =-1
 Index of the src='' entry (-1 if none). More...
 
List< ContentEntryEntries =new List<ContentEntry>()
 The entries in the group. More...
 

Properties

ContentEntry BestByDensity [get]
 Selects the content with the most suitable pixel density. More...
 

Member Function Documentation

int PowerUI.ContentGroup.Add ( string  src,
string  descriptor 
)
inline

Adds the given location to the group with an optional descriptor.

void PowerUI.ContentGroup.AddSrc ( string  src)
inline

Adds the src='' entry.

ContentEntry PowerUI.ContentGroup.MostSuitable ( float  descriptor)
inline

Selects the most suitable entry for the given density/ width descriptor.

Member Data Documentation

List<ContentEntry> PowerUI.ContentGroup.Entries =new List<ContentEntry>()

The entries in the group.

int PowerUI.ContentGroup.SrcIndex =-1

Index of the src='' entry (-1 if none).

Property Documentation

ContentEntry PowerUI.ContentGroup.BestByDensity
get

Selects the content with the most suitable pixel density.