1
<section id="dsp-tag-label" xmlns:xi="http://www.w3.org/2001/XInclude">
2
<title><label></title>
4
<para>A label for displaying one or more lines of text. The Pango markup
5
language can be used for marking up passages of text.</para>
10
<imagedata fileref="gfx/dsp-label" format="PNG"/>
16
<section><title>Attributes</title>
18
<informaltable frame="topbot">
25
<entry>Default Value</entry>
26
<entry>Description</entry>
32
<entry valign="top">color</entry>
33
<entry valign="top">color</entry>
34
<entry valign="top">(system default)</entry>
35
<entry valign="top">The text color. You cannot use an alpha channel for
36
colors here. The text color can also be changed with markup tags in
38
(<emph>[new in 0.35]</emph> the alpha channel can be used!)</entry>
41
<entry valign="top">font</entry>
42
<entry valign="top">font</entry>
43
<entry valign="top">(system default)</entry>
44
<entry valign="top">The text font. The font can also be changed with
45
markup tags in the running text.</entry>
48
<entry valign="top">value</entry>
49
<entry valign="top">string</entry>
50
<entry valign="top"></entry>
51
<entry valign="top">The text to display. It has to be in valid UTF-8
52
encoding and has to escape characters which are reserved in XML by
53
using the usual XML entities.</entry>
56
<entry valign="top">wrap-at</entry>
57
<entry valign="top">unit</entry>
58
<entry valign="top"></entry>
59
<entry valign="top">The width at which the label should wrap to the
60
next line. Wrapping is disabled by default.</entry>
71
<section><title>Examples</title>
73
<programlisting><![CDATA[
76
<label value="gDesklets rocks!" font="Sans 3cm" color="red"/>
79
value="This is a really long line, but it will be
80
wrapped at 1 CM because I'm going to tell it to!
81
I'll wrap it to 1/2 an inch in the script though..."
88
# The following will change the wrapping to 0.5 inches
89
Dsp.line2.wrap_at = Unit( 0.5, IN )