Re: GtkDrawingArea



Hi,

Jean-Yves Lamoureux <jylam lnxscene org> writes:

> And what about displaying method ? Is  a drawing area using Xshm when 
> available ?  Is there a way to do some dga stuff with it (don't think so) ?
> What about screen resolution change ? (XF86VidModeSwitchToMode).

you can use a GdkImage of type GDK_IMAGE_FASTEST. If possible it will
be created as GDK_IMAGE_SHARED (which means it uses Xshm). You can
then write your pixel data to the image and blit it to the
drawing_area using gdk_draw_image.  That should be the fastest method
available if you need to draw pixel data. I wouldn't care too much
about the speed penalty of using GdkRGB however. It's pretty fast.

I'm not sure if there's a widget for DGA available. It's certainly not
part of the standard GTK+ distribution.


Salut, Sven



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