12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Composite and Constraint<strong>Widget</strong>sautoReconfiguregravityWhether or not to layout the tree every time a node is addedor removed.Specifies the side of the widget from which the tree should grow.Valid values include WestGravity, NorthGravity, EastGravity,and SouthGravity.hSpacevSpaceThe amount of space, in pixels, to leave between the children.This resource specifies the amount of space left between theoutermost children and the edge of the box.lineWidthConstraint ResourcesThe width of the lines from nodes that do not have a treeGCconstraint resource to their children.Each child of the Tree widget must specify its superior node in the tree. In addition,it may specify a GC to use when drawing a line between it and its inferior nodes.Name Class Type Notes Default ValuetreeGC TreeGC GC NULLtreeParent TreeParent <strong>Widget</strong> NULLtreeGCThis specifies the GC to use when drawing lines between this widgetand its inferiors in the tree. If this resource is not specified, the Tree'sforeground and lineWidth will be used.treeParentLayout SemanticsThis specifies the superior node in the tree for this widget. The defaultis for the node to have no superior (and to therefore be at the top ofthe tree).Each time a child is managed or unmanaged, the Tree widget will attempt to repositionthe remaining children to fix the shape of the tree if the resource is set. Childrenat the top (most superior) of the tree are drawn at the side specified by the resource.After positioning all children, the Tree widget attempts to shrink its own size to theminimum dimensions required for the layout.Convenience RoutinesThe most efficient way to layout a tree is to set autoReconfigure to False and thenuse the XawTreeForceLayout routine to arrange the children.void XawTreeForceLayout( w);w Specifies the Tree widget.Viewport <strong>Widget</strong>123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!