Detailed Description

Represents an instance of a media query. They resolve to either true or false.

Inheritance diagram for Css.MediaQuery:
Css.MediaQueryAnd Css.MediaQueryCurrentMedia Css.MediaQueryEqualsFeature Css.MediaQueryHasFeature Css.MediaQueryList Css.MediaQueryMaxFeature Css.MediaQueryMinFeature Css.MediaQueryNot

Public Member Functions

 MediaQuery ()
 
virtual bool IsTrue (ReflowDocument screen)
 Evaluates this media query now. More...
 
override string ToString ()
 

Static Public Member Functions

static MediaQuery Load (Value value, int start, int endInclusive)
 Loads this media query from the given CSS value between the given set indices. More...
 

Static Private Member Functions

static MediaQuery LoadSection (Value value, ref int i, int endInclusive)
 Loads the given segment of the given value. More...
 
static MediaQuery LoadFeatureExpression (ValueSet set)
 Loads a feature ref from the given brackets. It's e.g. (color) or (min-width:xpx) etc. More...
 

Constructor & Destructor Documentation

Css.MediaQuery.MediaQuery ( )
inline

Member Function Documentation

virtual bool Css.MediaQuery.IsTrue ( ReflowDocument  screen)
inlinevirtual
static MediaQuery Css.MediaQuery.Load ( Value  value,
int  start,
int  endInclusive 
)
inlinestatic

Loads this media query from the given CSS value between the given set indices.

static MediaQuery Css.MediaQuery.LoadFeatureExpression ( ValueSet  set)
inlinestaticprivate

Loads a feature ref from the given brackets. It's e.g. (color) or (min-width:xpx) etc.

static MediaQuery Css.MediaQuery.LoadSection ( Value  value,
ref int  i,
int  endInclusive 
)
inlinestaticprivate

Loads the given segment of the given value.

override string Css.MediaQuery.ToString ( )
inline