%
% API Documentation for cssutils
% Module cssutils.stylesheets.mediaquery
%
% Generated by epydoc 3.0.1
% [Fri Feb 01 19:05:22 2008]
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                          Module Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.stylesheets \textit{(package)}!cssutils.stylesheets.mediaquery \textit{(module)}|(}
\section{Module cssutils.stylesheets.mediaquery}

    \label{cssutils:stylesheets:mediaquery}

MediaQuery, see \href{http://www.w3.org/TR/css3-mediaqueries/}{http://www.w3.org/TR/css3-mediaqueries/}

A cssutils own implementation, not defined in official DOM
\begin{description}
\item[{TODO:}] \leavevmode 
add possibility to

\end{description}

part of a media{\_}query{\_}list: {\textless}media{\_}query{\textgreater} {[}, {\textless}media{\_}query{\textgreater} {]}*
see stylesheets.MediaList
\textbf{Version:} \$LastChangedRevision: 357 \$



\textbf{Date:} \$LastChangedDate: 2007-09-16 00:00:19 +0200 (So, 16 Sep 2007) \$



\textbf{Author:} \$LastChangedBy: cthedot \$




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                           Class Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.stylesheets \textit{(package)}!cssutils.stylesheets.mediaquery \textit{(module)}!cssutils.stylesheets.mediaquery.MediaQuery \textit{(class)}|(}
\subsection{Class MediaQuery}

    \label{cssutils:stylesheets:mediaquery:MediaQuery}
\begin{tabular}{cccccccc}
% Line for object, linespec=[False, False]
\multicolumn{2}{r}{\settowidth{\BCL}{object}\multirow{2}{\BCL}{object}}
&&
&&
  \\\cline{3-3}
  &&\multicolumn{1}{c|}{}
&&
&&
  \\
% Line for cssutils.util.Base, linespec=[False]
\multicolumn{4}{r}{\settowidth{\BCL}{cssutils.util.Base}\multirow{2}{\BCL}{cssutils.util.Base}}
&&
  \\\cline{5-5}
  &&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&\multicolumn{2}{l}{\textbf{cssutils.stylesheets.mediaquery.MediaQuery}}
\end{tabular}


A Media Query consists of a media type and one or more
expressions involving media features.


%___________________________________________________________________________

\hypertarget{properties}{}
\pdfbookmark[3]{Properties}{properties}
\paragraph*{Properties}
\label{properties}
\begin{description}
\item[{mediaText: of type DOMString}] \leavevmode 
The parsable textual representation of this MediaQuery

\item[{mediaType: of type DOMString}] \leavevmode 
one of MEDIA{\_}TYPES like e.g. 'print'

\item[{seq: a list (cssutils)}] \leavevmode 
All parts of this MediaQuery including CSSComments

\item[{valid:}] \leavevmode 
if this query is valid

\end{description}


%___________________________________________________________________________

\hypertarget{format}{}
\pdfbookmark[3]{Format}{format}
\paragraph*{Format}
\label{format}
\begin{quote}{\ttfamily \raggedright \noindent
media{\_}query:~{[}{[}only~|~not{]}?~<media{\_}type>~{[}~and~<expression>~{]}*{]}~\\
~~|~<expression>~{[}~and~<expression>~{]}*~\\
expression:~(~<media{\_}feature>~{[}:~<value>{]}?~)~\\
media{\_}type:~all~|~aural~|~braille~|~handheld~|~print~|~\\
~~projection~|~screen~|~tty~|~tv~|~embossed~\\
media{\_}feature:~width~|~min-width~|~max-width~\\
~~|~height~|~min-height~|~max-height~\\
~~|~device-width~|~min-device-width~|~max-device-width~\\
~~|~device-height~|~min-device-height~|~max-device-height~\\
~~|~device-aspect-ratio~|~min-device-aspect-ratio~|~max-device-aspect-ratio~\\
~~|~color~|~min-color~|~max-color~\\
~~|~color-index~|~min-color-index~|~max-color-index~\\
~~|~monochrome~|~min-monochrome~|~max-monochrome~\\
~~|~resolution~|~min-resolution~|~max-resolution~\\
~~|~scan~|~grid
}\end{quote}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                Methods                                %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Methods}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, \textit{mediaText}={\tt None}, \textit{readonly}={\tt False})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
\begin{description}
\item[{mediaText}] \leavevmode 
unicodestring of parsable media

\end{description}
\setlength{\parskip}{1ex}
      Overrides: object.\_\_init\_\_

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_repr\_\_}(\textit{self})

\setlength{\parskip}{2ex}
    repr(x)

\setlength{\parskip}{1ex}
      Overrides: object.\_\_repr\_\_ 	extit{(inherited documentation)}

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_str\_\_}(\textit{self})

\setlength{\parskip}{2ex}
    str(x)

\setlength{\parskip}{1ex}
      Overrides: object.\_\_str\_\_ 	extit{(inherited documentation)}

    \end{boxedminipage}


\large{\textbf{\textit{Inherited from object}}}

\begin{quote}
\_\_delattr\_\_(), \_\_getattribute\_\_(), \_\_hash\_\_(), \_\_new\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_setattr\_\_()
\end{quote}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                              Properties                               %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Properties}

    \vspace{-1cm}
\hspace{\varindent}\begin{longtable}{|p{\varnamewidth}|p{\vardescrwidth}|l}
\cline{1-2}
\cline{1-2} \centering \textbf{Name} & \centering \textbf{Description}& \\
\cline{1-2}
\endhead\cline{1-2}\multicolumn{3}{r}{\small\textit{continued on next page}}\\\endfoot\cline{1-2}
\endlastfoot\raggedright m\-e\-d\-i\-a\-T\-e\-x\-t\- & \raggedright (DOM) The parsable textual representation of the media list.
This is a comma-separated list of media.&\\
\cline{1-2}
\raggedright m\-e\-d\-i\-a\-T\-y\-p\-e\- & \raggedright (DOM) media type (one of MediaQuery.MEDIA{\_}TYPES) of this MediaQuery.&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                            Class Variables                            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Class Variables}

    \vspace{-1cm}
\hspace{\varindent}\begin{longtable}{|p{\varnamewidth}|p{\vardescrwidth}|l}
\cline{1-2}
\cline{1-2} \centering \textbf{Name} & \centering \textbf{Description}& \\
\cline{1-2}
\endhead\cline{1-2}\multicolumn{3}{r}{\small\textit{continued on next page}}\\\endfoot\cline{1-2}
\endlastfoot\raggedright M\-E\-D\-I\-A\-\_\-T\-Y\-P\-E\-S\- & \raggedright \textbf{Value:} 
{\tt \texttt{[}\texttt{u'}\texttt{all}\texttt{'}\texttt{, }\texttt{u'}\texttt{aural}\texttt{'}\texttt{, }\texttt{u'}\texttt{braille}\texttt{'}\texttt{, }\texttt{u'}\texttt{embossed}\texttt{'}\texttt{, }\texttt{u'}\texttt{handheld}\texttt{'}\texttt{, }\texttt{...}}&\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.stylesheets \textit{(package)}!cssutils.stylesheets.mediaquery \textit{(module)}!cssutils.stylesheets.mediaquery.MediaQuery \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.stylesheets \textit{(package)}!cssutils.stylesheets.mediaquery \textit{(module)}|)}
