Re: Text in Drawing area



On 12 Oct, Marco Quezada wrote:
Hi all,

A quick question since the tutorial doesn't have the drawing area
documented.  Is it possible to insert text strings into a drawing area?

You can use all the gdk_draw_* functions on a pixmap.

And can this be rotated at different angles?

No. The gdk_draw_* functions are just simple front ends for their Xlib
namesakes.

The Gnome canvas widget supports transformations on items you place on it.
Transformation matrices can describe rotations, scalings, skewing and
translations.

There's a chapter on the canvas in Havoc's excellent book.

If you want to do real spiffy stuff (especially 3D stuff, or transparecy),
you could consider using OpenGL, with the OpenGL widget. But that does add
_another_ learning curve to climb ;-)

Roland
-- 
Roland Smith                        "When life hands you a lemon,
r s m i t h @ x s 4 a l l . n l      make lemonade."
http://www.xs4all.nl/~rsmith/





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