[−][src]Module tabbycat::attributes
This module implements a subset of dot language attributes.
These functions will generate some predefined AttrPair
s that be used together with
the add_attrpair
function of Edge
and the add_pair
function of AttrList
.
Notice that only an incomplete subset is implemented due to the limitations of the function prototype
and type system.
To add other attributes, you can use an unsafe way to construct an identity pair.
use tabbycat::Identity; let my_pair = (Identity::String("label"), Identity::Quoted("test"));
(Most of the time the safe way (Identity::id
) should be good, but as we didn't provide a type for something like the
lblString
, you may want to add a unquoted string using the unsafe way.)
Enums
ArrowShape | Shapes of the arrow. Notice that the dot language has a special syntax for creating different arrow shapes.
We actually expand all |
ClusterMode | Clustering Mode |
Color | A list of colors that can be used in the dot language.
Notice that we are actually listing a union of |
DirType | Arrow direction |
OutputMode | Output mode |
PageDir | Paging Direction |
Point | Point type in the dot language |
QuadType | Quadtree Algorithm |
RankDir | Rank Direction |
RankType | Ranking method |
Shape | Shapes of the node |
SmoothType | Smoothing Method |
Style | Styles, see the document |