All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

graph-pane-direction Accessor

Summary

Returns or sets the direction of a graph.

Package

capi

Signature

graph-pane-direction graph-pane => direction

(setf graph-pane-direction) direction graph-pane => direction

Arguments
graph-pane
direction
One of :forwards or :backwards.
Values
direction
One of :forwards or :backwards.
Description

The accessor graph-pane-direction accesses the direction of the graph graph-pane. If the layout-function of graph-pane is :top-down or :left-right then direction is :forwards. Otherwise direction is :backwards.

The setter (setf graph-pane-direction) maintains the dimension of the layout-function but potentially reverses its direction.

Examples
(setf gp 
      (make-instance 'capi:graph-pane 
                     :layout-function :top-down))
=>
#<CAPI:GRAPH-PANE [0 items] 20603294>
 
(setf (capi:graph-pane-direction gp) 
      :backwards)
=>
NIL
 
(capi:graph-pane-layout-function gp)
=>
:TOP-DOWN
See also

graph-pane


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27