Detailed Description

An rule.

Inheritance diagram for Css.MediaRule:
Css.Rule

Public Member Functions

 MediaRule (StyleSheet sheet, Css.Value rawValue, MediaQuery query, SelectorBlockUnit contents)
 
void AddToDocument (ReflowDocument document)
 The parent rule of this rule. More...
 
void RemoveFromDocument (ReflowDocument document)
 Removes this rule from the lookups in the given document. More...
 
void Evaluate ()
 

Public Attributes

Css.Value RawValue
 The raw CSS value. More...
 
List< RuleRules
 The rules which activate when this media rule does. More...
 
MediaQuery Query
 The underlying media query. More...
 
StyleSheet ParentSheet
 The parent stylesheet. More...
 

Properties

string cssText [get, set]
 The CSS text of this rule. More...
 
List< RulecssRules [get]
 The rules. More...
 
StyleSheet parentStyleSheet [get]
 The parent stylesheet. More...
 
int type [get]
 Rule type. More...
 
- Properties inherited from Css.Rule
int type [get]
 The type of rule. More...
 
StyleSheet parentStyleSheet [get]
 The parent style sheet. More...
 
string cssText [get, set]
 The CSS text. More...
 

Private Member Functions

void Activate (ReflowDocument document)
 Called when this rule is now active. More...
 
void Deactivate (ReflowDocument document)
 Called when this rule is no longer active. More...
 

Private Attributes

bool PreviousStatus
 The previous status of the media rule. More...
 

Constructor & Destructor Documentation

Css.MediaRule.MediaRule ( StyleSheet  sheet,
Css.Value  rawValue,
MediaQuery  query,
SelectorBlockUnit  contents 
)
inline

Member Function Documentation

void Css.MediaRule.Activate ( ReflowDocument  document)
inlineprivate

Called when this rule is now active.

void Css.MediaRule.AddToDocument ( ReflowDocument  document)
inline

The parent rule of this rule.

Adds this rule to the lookups in the given document.

Implements Css.Rule.

void Css.MediaRule.Deactivate ( ReflowDocument  document)
inlineprivate

Called when this rule is no longer active.

void Css.MediaRule.Evaluate ( )
inline
void Css.MediaRule.RemoveFromDocument ( ReflowDocument  document)
inline

Removes this rule from the lookups in the given document.

Implements Css.Rule.

Member Data Documentation

StyleSheet Css.MediaRule.ParentSheet

The parent stylesheet.

bool Css.MediaRule.PreviousStatus
private

The previous status of the media rule.

MediaQuery Css.MediaRule.Query

The underlying media query.

Css.Value Css.MediaRule.RawValue

The raw CSS value.

List<Rule> Css.MediaRule.Rules

The rules which activate when this media rule does.

Property Documentation

List<Rule> Css.MediaRule.cssRules
get

The rules.

string Css.MediaRule.cssText
getset

The CSS text of this rule.

StyleSheet Css.MediaRule.parentStyleSheet
get

The parent stylesheet.

int Css.MediaRule.type
get

Rule type.