\section{DOM::CSSMedia\-Rule Class Reference}
\label{classDOM_1_1CSSMediaRule}\index{DOM::CSSMediaRule@{DOM::CSSMediaRule}}
The {\tt {\bf CSSMedia\-Rule}{\rm (p.\,\pageref{classDOM_1_1CSSMediaRule})}} interface represents a {\tt @media rule } in a CSS style sheet.  


{\tt \#include $<$css\_\-rule.h$>$}

Inheritance diagram for DOM::CSSMedia\-Rule:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classDOM_1_1CSSMediaRule__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::CSSMedia\-Rule:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classDOM_1_1CSSMediaRule__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CSSMedia\-Rule} (const {\bf CSSMedia\-Rule} \&other)\label{classDOM_1_1CSSMediaRule_a1}

\item 
{\bf CSSMedia\-Rule} (const {\bf CSSRule} \&other)\label{classDOM_1_1CSSMediaRule_a2}

\item 
{\bf CSSMedia\-Rule} (CSSMedia\-Rule\-Impl $\ast$impl)\label{classDOM_1_1CSSMediaRule_a3}

\item 
{\bf CSSMedia\-Rule} \& {\bf operator=} (const {\bf CSSMedia\-Rule} \&other)\label{classDOM_1_1CSSMediaRule_a4}

\item 
{\bf CSSMedia\-Rule} \& {\bf operator=} (const {\bf CSSRule} \&other)\label{classDOM_1_1CSSMediaRule_a5}

\item 
{\bf Media\-List} {\bf media} () const 
\item 
{\bf CSSRule\-List} {\bf css\-Rules} () const 
\item 
unsigned long {\bf insert\-Rule} (const {\bf DOM::DOMString} \&rule, unsigned long index)
\item 
void {\bf delete\-Rule} (unsigned long index)
\end{CompactItemize}


\subsection{Detailed Description}
The {\tt {\bf CSSMedia\-Rule}{\rm (p.\,\pageref{classDOM_1_1CSSMediaRule})}} interface represents a {\tt @media rule } in a CSS style sheet. 

A {\tt @media} rule can be used to delimit style rules for specific media types. 



Definition at line 270 of file css\_\-rule.h.

\subsection{Member Function Documentation}
\index{DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}!media@{media}}
\index{media@{media}!DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Media\-List} CSSMedia\-Rule::media () const}\label{classDOM_1_1CSSMediaRule_a7}


A list of {\tt media types } for this rule. 



Definition at line 295 of file css\_\-rule.cpp.\index{DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}!cssRules@{cssRules}}
\index{cssRules@{cssRules}!DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CSSRule\-List} CSSMedia\-Rule::css\-Rules () const}\label{classDOM_1_1CSSMediaRule_a8}


A list of all CSS rules contained within the media block. 



Definition at line 301 of file css\_\-rule.cpp.\index{DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}!insertRule@{insertRule}}
\index{insertRule@{insertRule}!DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned long CSSMedia\-Rule::insert\-Rule (const {\bf DOM::DOMString} \& {\em rule}, unsigned long {\em index})}\label{classDOM_1_1CSSMediaRule_a9}


Used to insert a new rule into the media block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rule}]The parsable text representing the rule. For rule sets this contains both the selector and the style declaration. For at-rules, this specifies both the at-identifier and the rule content.\item[{\em index}]The index within the media block's rule collection of the rule before which to insert the specified rule. If the specified index is equal to the length of the media blocks's rule collection, the rule will be added to the end of the media block.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The index within the media block's rule collection of the newly inserted rule.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]HIERARCHY\_\-REQUEST\_\-ERR: Raised if the rule cannot be inserted at the specified index. e.g. if an {\tt @import} rule is inserted after a standard rule set or other at-rule.\end{description}
\end{Desc}
INDEX\_\-SIZE\_\-ERR: Raised if the specified index is not a valid insertion point.

NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raised if this media rule is readonly.

\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em CSSException}]SYNTAX\_\-ERR: Raised if the specified rule has a syntax error and is unparsable. \end{description}
\end{Desc}


Definition at line 307 of file css\_\-rule.cpp.\index{DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}!deleteRule@{deleteRule}}
\index{deleteRule@{deleteRule}!DOM::CSSMediaRule@{DOM::CSSMedia\-Rule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSSMedia\-Rule::delete\-Rule (unsigned long {\em index})}\label{classDOM_1_1CSSMediaRule_a10}


Used to delete a rule from the media block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index within the media block's rule collection of the rule to remove.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INDEX\_\-SIZE\_\-ERR: Raised if the specified index does not correspond to a rule in the media rule list.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raised if this media rule is readonly. 

Definition at line 313 of file css\_\-rule.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
css\_\-rule.h\item 
css\_\-rule.cpp\end{CompactItemize}
