aspektors

Untitled

May 29th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1.     int /*long*/ window = OS.GTK_WIDGET_WINDOW (parent.paintHandle());
  2.     if (window == 0) return;
  3.     byte [] bits = {-86, 85, -86, 85, -86, 85, -86, 85};   
  4.     int /*long*/ stipplePixmap = OS.gdk_bitmap_create_from_data (window, bits, 8, 8);
  5.     int /*long*/ gc = OS.gdk_gc_new (window);
  6.     int /*long*/ colormap = OS.gdk_colormap_get_system();
  7.     GdkColor color = new GdkColor ();
  8.     OS.gdk_color_white (colormap, color);
  9.     OS.gdk_gc_set_foreground (gc, color);  
  10.     OS.gdk_gc_set_stipple (gc, stipplePixmap);
  11.     OS.gdk_gc_set_subwindow (gc, OS.GDK_INCLUDE_INFERIORS);
  12.     OS.gdk_gc_set_fill (gc, OS.GDK_STIPPLED);
  13.     OS.gdk_gc_set_function (gc, OS.GDK_XOR);
  14.     OS.gdk_draw_rectangle (window, gc, 1, x, y, width, height);
  15.     OS.g_object_unref (stipplePixmap);
  16.     OS.g_object_unref (gc);
Advertisement
Add Comment
Please, Sign In to add comment