type=“grid”
factorys
<factory type="grid" id="statusrow"> <padding> <side>all</side> <padding>2</padding> </padding> <element> <name>label</name> </element> </factory>
The contents of a
factorys of
type=“grid”
specify the methods invoked on a
grid
factory.
halign<factory type="grid" id="statusrow"> <!-- ... --> <halign>right</halign> <!-- ... --> </factory>
halign
invokes the grid factory's
halign()
method.
The
halign element contains an x::w::halign value.
valign<factory type="grid" id="statusrow"> <!-- ... --> <valign>middle</valign> <!-- ... --> </factory>
The
valign
invokes the grid factory's
valign()
method.
The
valign element contains an x::w::valign value.
padding<factory type="grid" id="statusrow"> <!-- ... --> <padding> <side>all</side> <padding>cell-padding</padding> </padding> <!-- ... --> </factory>
padding
invokes the grid factory's
padding(),
left_padding(),
right_padding(),
top_padding(), or
bottom_padding() method.
The side value is one of
“all”,
“left”,
“right”,
“top”, or
“bottom”.
border<factory type="grid" id="statusrow"> <!-- ... --> <border> <side>all</side> <border>thick-border</border> </padding> <!-- ... --> </factory>
border
invokes the grid factory's
border(),
left_border(),
right_border(),
top_border(), or
bottom_border() method.
The side value is one of
“all”,
“left”,
“right”,
“top”, or
“bottom”.
colspan and
rowspan<factory type="grid" id="statusrow"> <!-- ... --> <colspan> <columns>2</columns> </colspan> <rowspan> <rows>2</rows> </rowspan> <!-- ... --> </factory>
colspan
and
rowspan
invoke the grid factory's
colspan() and
rowspan() methods, respectively.
elements and
containers<factory type="grid" id="statusrow"> <!-- ... --> <element> <name>label</name> </element> <!-- ... --> <container> <type>grid</type> <name>bottom-container</name> </container> <!-- ... --> </factory>
elements and
containers
use the factory to create a new
theme widget or container.