rbd:clear
List of: Scheme Extensions
Subjects: Rubberbanding
Contents: Graphic Interaction

Action: Removes last rubberband driver from active driver list, or removes all drivers from stack of driver lists.

Filename: gi/gi_scm/rb_scm.cxx

Syntax: (rbd:clear [flag-all=#t])

Arg Types: flag-all boolean

Returns: unspecified

Description: This clears the entire rubberband driver stack or only the last driver added to the active driver list. The active list is the rubberband driver list at the top of the stack. If flag-all is #t, which is the default, this extension clears all drivers from all levels of the stack of lists of rubberband drivers. If flag-all is #f, only the top of the stack is affected; the last driver added to the list is removed.

Example: ; rbd:clear

; Add a rubberband driver to the active list.

(rbd:add (rbd:rectangle #f (position 0 0 0)))

;; (#[rbd-driver 4022a2f8])

; Add a rubberband driver to the active list.

(rbd:add (rbd:line #f (position 10 20 30)))

;; (#[rbd-driver 4022a3c0] #[rbd-driver 4022a2f8])

; Clear the last defined rubberbanding procedure.

(rbd:clear #f)

;; ()

; Clear the first defined rubberbanding procedure.

(rbd:clear #f)

;; ()
PDF/GI/02SCG.PDF
HTM/DATA/GI/GI/02SCG/0014.HTM