Css.CssAtRule Class Reference

Detailed Description

A CSS at rule. You can create custom ones by deriving from this class. Note that they are instanced globally.

Inheritance diagram for Css.CssAtRule:
Css.AtRules.Charset Css.AtRules.CounterStyleRule Css.AtRules.CssFontFeatureSubRule Css.AtRules.FontFaceRule Css.AtRules.FontFeatureValuesRule Css.AtRules.Import Css.AtRules.Keyframes Css.AtRules.Media Css.AtRules.NamespaceRule Css.AtRules.PageRule Css.AtRules.SupportsRule Css.AtRules.ViewportRule

Public Member Functions

virtual string[] GetNames ()
 The set of all names that this at rule can use. Usually just one. E.g. font-face etc. More...
 
virtual void SetupParsing (CssLexer lexer)
 This e.g. sets AtRuleMode. It's true if this @ rule uses nested selectors. Media and keyframes are two examples. More...
 
virtual CssAtRule Copy ()
 Copies this at rule. More...
 
virtual Rule LoadRule (Css.Rule parent, StyleSheet style, Css.Value value)
 Called on this instance object to load it's values from the given value object. More...
 

Properties

string Name [get]
 The main name of this function. Originates from the first result returned by GetNames. More...
 

Member Function Documentation

virtual string [] Css.CssAtRule.GetNames ( )
inlinevirtual
virtual void Css.CssAtRule.SetupParsing ( CssLexer  lexer)
inlinevirtual

This e.g. sets AtRuleMode. It's true if this @ rule uses nested selectors. Media and keyframes are two examples.

Reimplemented in Css.AtRules.CssFontFeatureSubRule, Css.AtRules.FontFeatureValuesRule, Css.AtRules.SupportsRule, Css.AtRules.Keyframes, and Css.AtRules.Media.

Property Documentation

string Css.CssAtRule.Name
get

The main name of this function. Originates from the first result returned by GetNames.