1: <?php
 2
:   function configure_event($area$event)
 
3:   {
 
4:       global  $pixmap
 
5
 
6:       $new_pixmap = &new GdkPixmap($event->window,
 
7:                                    $event->width,
 
8:                                    $event->height,
 
9:                                    -1);
10:       if ($pixmap) {
11:           $new_pixmap->copy_area($area->style->white_gc00$pixmap00,
12:                                  min($pixmap->width$new_pixmap->width),
13:                                  min($pixmap->height$new_pixmap->height));
14:       }
15:       $pixmap $new_pixmap;
16:   }
17?>
Let your imagination run wild. For now, we'll draw a filled black rectangle.

<?php
  gdk
::draw_rectangle($pixmap$area->style->black_gctrue1010100100);
?>
Some other drawing functions