Re: setting line dash on Gnome2::Canvas



(Damn.  It appears that my reply last night either didn't go out or didn't go
the list.)


Torsten Schoenfeld wrote:
On Thu, 2006-03-16 at 18:04 -0500, zentara wrote:

# feeble attempt dosn't work
#$line1->set_dashes( {0,0xff,0,0xff} );

As the name gdk_gc_set_dashes suggests, you need to call the set_dashes
method on a Gtk2::Gdk::GC object:

  $gc->set_dashes(0, 0xff, 0, 0xff);

Unfortunately though, the "gc" struct member of Gnome2::Canvas::Line is
not accessible via the bindings at this point -- so right now, I think
this isn't possible.

Additionally, this gc, which is modified by the Gnome2::Canvas::Line's
line-style property, is used only for GDK canvases, not antialiased ones.  I
don't see any way to make an antialiased canvas use dashes.




-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]