Sample code
<?php $pixmap = &new GdkPixmap($area->window300300, -1); ?>
1: <?php
2
:   $area = &new GtkDrawingArea();
3:   $area->size(300300);
4:   $area->realize();
5
6:   $area->connect('expose_event''handle_expose_event');
7:   $area->connect('configure_event''handle_configure_event');
8?>
 1: <?php
 2
:    function expose_event($area$event)
 
3:    {
 
4:        global $pixmap;
 
5
 
6:        gdk::draw_pixmap($event->window,
 
7:                         $area->style->fg_gc[$area->state],
 
8:                         $pixmap,
 
9:                         $event->area->x$event->area->y,
10:                         $event->area->x$event->area->y,
11:                         $event->area->width$event->area->height);
12:    }
13?>