Re: [gtk-list] Using GDK-- with Gtk_DrawingArea
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Using GDK-- with Gtk_DrawingArea
- Date: 18 Feb 1999 19:11:07 +0100
Mario Schubert <schuberb@informatik.uni-muenchen.de> writes:
> If anybody can help me, i would be very pleased.
My current work has led me to something similar to what you're
doing. Here's a sum up of how I do it :
Gtk_DrawingArea m_drawingarea;
Gdk_Window m_gdkwindow;
m_gdkwindow = m_drawingarea.get_window();
Gdk_Imlib::Image m_image;
// put something in m_image
Gdk_Pixmap tmppix(m_image.move_image());
Gdk_Bitmap tmpbit(m_image.move_mask());
Gdk_GC tmpGC(m_gdkwindow);
if (tmpbit.gdkobj())
{
tmpGC.set_clip_mask(tmpbit);
tmpGC.set_clip_origin(40, 0);
}
m_gdkwindow.draw_pixmap(tmpGC, tmppix,
0, 0,
40, 0);
Hope this helps.
--
Guillaume.
http://www.worldnet.fr/~glaurent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]