[][src]Module tabbycat::attributes

This module implements a subset of dot language attributes. These functions will generate some predefined AttrPairs 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 [modifier] primitive shapes here and you can you the functions like arrowhead2, arrowhead3, arrowhead4 to repeat the patterns.

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 X11 colors and SVG colors, you should be aware of what color scheme you are really using. For unlisted colors, see the instructions above on how to implement your own attribute pairs.

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

Functions

Damping
K
URL
_backgroud
area
arrowhead
arrowhead2
arrowhead3
arrowhead4
arrowsize
arrowtail
arrowtail2
arrowtail3
arrowtail4
bgcolor
center
charset
class
clusterrank
color
colorscheme
comment
compound
concentrate
constraint
decorate
defaultdist
dim
dimen
dir
diredgeconstraints
distortion
dpi
edgeURL
edgehref
edgetarget
edgetooltip
epsilon
fillcolor
fontname
fontnames
fontpath
fontsize
forcelables
gradientangle
group
headURL
head_lp
headclip
headhref
headlabel
headtarget
headtooltip
height
href
id
image
imagepath
imagepos
imagescale
inputscale
label
labelURL
label_scheme
labelangle
labeldistance
labelfloat
labelfontcolor
labelfontname
labelfontsize
labelhref
labeljust
labelloc
labeltarget
labeltooltip
landscape
layerlistsep
layersep
layout
len
levels
levelsgap
lhead
lheight
lp
ltail
lwidth
margin
maxiter
mclimit
mindist
minlen
mode
model
mosek
newrank
nodesep
nojustify
normalize
notranslate
nslimit
nslimit1
ordering
orientation
outputorder
overlap_scaling
overlap_shrink
pad
page
pagedir
pencolor
penwidth
peripheries
pin
pos
quadtree
quantum
rank
rankdir
ranksep
ratio
regular
remincross
repulsiveforce
resolution
root
rotate
rotation
samehead
sametail
samplepoints
scale
searchsize
shape
shapefile
showboxes
sides
size
skew
smoothing
sortv
style
stylesheet
tailURL
tail_lp
tailclip
tailhref
taillabel
tailtarget
tailtooltip
target
tooltip
truecolor
voro_margin
weight
width
xdotversion
xlabel
xlp
z