[mcclim-ticket] #6: gtkairo: cairo medium ellipse drawing and line styles

mcclim mcclim-devel at common-lisp.net
Wed Mar 14 21:09:52 UTC 2007


#6: gtkairo: cairo medium ellipse drawing and line styles
-------------------------+--------------------------------------------------
 Reporter:  dlichteblau  |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  major        |   Milestone:          
Component:  component1   |     Version:          
 Keywords:               |  
-------------------------+--------------------------------------------------
 Gtkairo Bug 22:

    The cairo version of medium-draw-ellipse* needs a rewrite.

 (The gdk medium can draw ellipses just fine, however.)

 The current implementation fills an ellipse, but completely fails when
 drawing its border:

 {{{
   ;; This one is tricky. Cairo doesn't know ellipses, it only knows
   ;; circles. But then it is fully capable to draw circles under affine
   ;; transformations only that the line style is transformed too. So
   ;; what we do: We setup an [additional] transformation to from our
   ;; ellipse to a circle and setup line style properly transformed. ---
   ;; This is not entirely correct in case of shearing or odd scaling
   ;; transformations.
 }}}

 Unless cairo starts supporting ellipses natively, I would suggest using
 bezier curves to approximate an ellipse.

-- 
Ticket URL: <http://trac.common-lisp.net/mcclim/ticket/6>
mcclim <http://common-lisp.net/project/mcclim>
mcclim


More information about the Mcclim-ticket mailing list