Extracted from Pike v7.3 release 14 at 2002-02-15.
pike.roxen.com
[Top]
GTK
GTK.Widget

Method GTK.Widget()->shape_combine_mask()


Method shape_combine_mask

object(GTK.Widget) GTK.Widget()->shape_combine_mask(object(GDK.Bitmap) shape, int xoffset, int yoffset)

Description

Set the shape of the widget, or, rather, it's window, to that of the supplied bitmap. Notice how the window behind the example window can be seen because of the rather odd shape the example window has.

 GTK.Window( GTK.WINDOW_TOPLEVEL )->add(GTK.Label("A rather Oddly shaped\n" "Window\n" "Indeed\n" "Or what do you\nthink?\n" "This text\n" "should\n" "be long enough"))->shape_combine_mask( GDK.Bitmap(Image.image(100,100,255,255,255)->rotate(10,0,0,0) ), 20,20)

NOTE: The widget must be realized before this function can be used