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< ContentEntry > | Entries =new List<ContentEntry>() |
| The entries in the group. More... | |
Properties | |
| ContentEntry | BestByDensity [get] |
| Selects the content with the most suitable pixel density. More... | |
|
inline |
Adds the given location to the group with an optional descriptor.
|
inline |
Adds the src='' entry.
|
inline |
Selects the most suitable entry for the given density/ width descriptor.
| 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).
|
get |
Selects the content with the most suitable pixel density.