element
widgets<dim id="strip_width">10</dim> <dim id="strip_height">10</dim> <element id="fixed-canvas"> <canvas> <background_color>white</background> <width>strip_width</width> <height>strip_height</height> </canvas> </element>
Specifying an element
that contains a canvas
creates a new theme widget
which is an
x::w::canvas
widget.
This is equivalent to invoking the factory's
create_canvas
() method.
The contents of the canvas
set the values
of create_canvas
()'s
x::w::canvas_config
parameter:
background_color
References a color
in the theme file, defining the canvas's background color.
minimum_width
,
preferred_width
,
maximum_width
,
minimum_height
,
preferred_height
, and
maximum_height
These elements reference other
dim
s
in the theme file, defining the canvas's size.
width
This is equivalent to defining the same minimum, preferred, and maximum width.
height
This is equivalent to defining the same minimum, preferred, and maximum height.