NextPrevUpTopContentsIndex

pinboard-pane-size

Generic Function
Summary

Gets and sets the size of an object inside its parent pinboard-layout.

Package

capi

Signature

pinboard-pane-size self => width , height

Signature

(setf pinboard-pane-position) width , height self
=> width , height

Description

The generic function pinboard-pane-size returns as multiple values width , height the dimensions of self .

(setf pinboard-pane-size) sets the dimensions of self .

Example
(let* ((po (make-instance 'capi:pinboard-object
                          :x 5 :y 5 
                          :width 5 :height 5
                          :graphics-args 
                          '(:background :red)))
       (pl (capi:contain 
            (make-instance 'capi:pinboard-layout 
                           :description (list po)
                           :visible-min-width 200
                           :visible-min-height 200))))
  (capi:execute-with-interface
   (capi:element-interface pl)
   #'(lambda(po)
       (dotimes (x 20)
         (mp:wait-processing-events 1)
         (let ((new-x (* (1+ x) 10))
               (new-y (* 5 (+ 2 x))))
           (setf (capi:pinboard-pane-size po)
                 (values new-x new-y)))))
   po))
See also

pinboard-layout
pinboard-pane-position


LispWorks CAPI Reference Manual - 17 Mar 2008

NextPrevUpTopContentsIndex