Re: [gnomemm] Gnome::Canvas::Item custom drawing
- From: murrayc t-online de (Murray Cumming)
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: Claude Vaillancourt <clauva videotron ca>, gnomemm-list <gnomemm-list gnome org>
- Subject: Re: [gnomemm] Gnome::Canvas::Item custom drawing
- Date: 30 Dec 2002 14:53:02 +0100
On Mon, 2002-12-30 at 15:11, Paul Davis wrote:
> >Hi all, I'm trying to write a class derived from a Gnome::Canvas::Item
> >such as Gnome::Canvas::Rect.
> >
> >I would like to override the drawing method to draw resizing handles
> >around the object when it is selected inside of my Gnome::CanvasAA
> >object.
> >
> >My understanding is that I should override the update_vfunc() method and
> >do my own drawing there. The only documentation I have shows a drawing
> >method using libart_lgpl's SVP arrays. However, the sources actually
> >uses a GnomeCanvasPathDef method. Either way, I get stuck for the
> >following reasons:
> >
> >1) SVP arrays, I can't get the fill_svp in anyway from the C++ classes.
> >The c code puts it in GnomeCanvasShapePriv private structure, so I'd
> >rather not use that directly.
> >
> >2) with the PathDef method, I can't find a way to set the PathDef to the
> >shape from the C++ classes (the c code calls
> >'gnome_canvas_shape_set_path_def()')
> >
> >Can someone put me on the right track, please.
>
> i've been using the GtkCanvas (the C backport of the old GnomeCanvas
> to pure GTK+) for more than a year.
Let's make it clear that there is no need for GtkCanvas with gtkmm2,
because we now have libgnomecanvasmm 2.0.0.
--
Murray Cumming
murray usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]