expose event & pixmap question



gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) {
   gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)],
      Pixmaps::myPicture, event->area.x, event->area.y,
      event->area.x, event->area.y, event->area.width, event->area.height);

   return FALSE;
};


Pixmaps make expose event handlers easy I think because you can just
redraw uncovered portion with a single function call as in function above.

WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME
WAY AND AVOID NEED FOR PIXMAP?

Chris

-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940  (office) |
| SPAWARSYSCEN 2363       || (619) 553-2836  (fax)    |
| 53560 HULL ST           ||                          |
| SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
=======================================================



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