[Gtk-sharp-list] Gtk Drawing Area

Mark Lewis mark@fortressofgeekdom.org
Mon, 27 Oct 2003 22:28:59 -0800


--=-1YE+zGClVRsiJXpky8jo
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Well, just looking around at the docs at go-mono.org:8080 should help,
but here's a sample app I've been working on which graphs the Mandelbrot
set: http://lewisworld.org/~mark/mandelbrot

Basically, you need to draw onto the widget's Gdk.Window.  The easiest
way to do this is probably on the Exposed event, but that's up to you.=20
Look at the documentation for Gdk.Drawable to see what the drawing
methods available are.

In the example I linked to, I'm actually drawing onto a Pixmap, and then
drawing the pixmap to the screen.   The code is almost the same as just
drawing directly to the screen, but it's more efficient with XServer.

Hope that helps

-- Mark

On Mon, 2003-10-27 at 10:04, Diego Carrera wrote:
> Hi there ive been trying to use the Drawing Area but I haven=B4t found
> how to, can anybody point me to a good example or documentation.
> =20
> Thnx in Advance
> Diego.
--=20
Mark Lewis <mark@fortressofgeekdom.org>

--=-1YE+zGClVRsiJXpky8jo
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA/ngyqnLRtTOS1IUURAqBeAJ4pOMiaPM2sxfQUIRAV5QDKy3kutgCdEcgB
mf4e0ULm05e8t6TI4xvXdSE=
=SWap
-----END PGP SIGNATURE-----

--=-1YE+zGClVRsiJXpky8jo--