Css.ScreenMediaType Class Reference

Detailed Description

The standard 'screen' media type.

Inheritance diagram for Css.ScreenMediaType:
Css.MediaType

Public Member Functions

 ScreenMediaType (ReflowDocument doc)
 
override bool Is (string name)
 True if this media type is suitable for the given name. For example a mobile media type returns true for at least 'handheld'. Note that 'all' is handled separately. More...
 
- Public Member Functions inherited from Css.MediaType
void Changed ()
 Prompts the re-evaluation of media queries. More...
 
bool HasFeature (string name)
 True if this media type has the given named feature (e.g. "color"). More...
 

Additional Inherited Members

- Public Attributes inherited from Css.MediaType
ReflowDocument Document
 The document that this is for (if any). More...
 
Dictionary< string, Css.ValueFeatures =new Dictionary<string,Css.Value>()
 This media types features. More...
 
- Protected Member Functions inherited from Css.MediaType
void Ready (ReflowDocument document)
 
- Properties inherited from Css.MediaType
Css.Value this[string property] [get, set]
 
virtual int Width [get, set]
 Screen width. More...
 
virtual int Height [get, set]
 Screen height. More...
 
virtual bool Landscape [get, set]
 Is the screen landscape? More...
 
virtual int Resolution [get, set]
 The resolution of the device. More...
 
virtual int Color [get, set]
 The color depth. More...
 
virtual int ColorIndex [get, set]
 The colour index (applies to lookup based devices only). More...
 
virtual int Monochrome [get, set]
 Monochrome device bit depth. More...
 
virtual string Scan [get, set]
 The scanline format of a screen (usually a TV). progressive or interlace. More...
 
virtual int Grid [get, set]
 Is this device grid based? More...
 

Constructor & Destructor Documentation

Css.ScreenMediaType.ScreenMediaType ( ReflowDocument  doc)
inline

Member Function Documentation

override bool Css.ScreenMediaType.Is ( string  name)
inlinevirtual

True if this media type is suitable for the given name. For example a mobile media type returns true for at least 'handheld'. Note that 'all' is handled separately.

Reimplemented from Css.MediaType.