Improve typesetting and fix a typo
[kugel-rb.git] / manual / advanced_topics / viewports / colour-vp-syntax.tex
blobde424dcd4ecbc81dedc3755062f1c638ca327a0c
1 \subsubsection{Viewport Declaration Syntax}
3 {\config{\%V}}{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}[fgcolour]{\textbar}[bgcolour]{\textbar}%
5 \begin{itemize}
6 \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF.
7 \item `font' is a number: 0 is the built-in system font, 1 is the
8 user-selected font.
9 \item Only the coordinates \emph{have} to be specified. Leaving the other
10 definitions blank will set them to their default values.
11 \note{The correct number of `{\textbar}'s (vertical bars) with hyphens in
12 blank fields are still needed in any case.}
13 \end{itemize}
15 \begin{example}
16 %V|12|20|-|-|1|-|-|
17 %sThis viewport is displayed permanently. It starts 12px from the left and
18 %s20px from the top of the screen, and fills the rest of the screen from
19 %sthat point. The lines will scroll if this text does not fit in the viewport.
20 %sThe user font is used, as are the default foreground/background colours.
21 \end{example}
22 \begin{rbtabular}{.75\textwidth}{XX}{Viewport definition & Default value}{}{}
23 width/height & remaining part of screen \\
24 font & user defined \\
25 forground/background colours & defined by theme \\
26 \end{rbtabular}