Date: Tue, 18 Apr 2006 20:43:02 +0900 (JST) Message-Id: <20060418.204302.238250427.garrigue at math.nagoya-u.ac.jp> To: tews at tcs.inf.tu-dresden.de Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: stipples and tiles in a drawable From: Jacques Garrigue In-Reply-To: <17476.46174.227906.954649 at ithif59.inf.tu-dresden.de> References: <17476.46174.227906.954649 at ithif59.inf.tu-dresden.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: Text/Plain; charset=us-ascii Content-Length: 645 From: Hendrik Tews > how can I change the stipple and tile patterns in a drawable, for > instanc in a drawing_area? I can view those things with > gc_values, but I can't access the graphic context to set stipple > and/or tile. Looks like this is missing, together with a way to access the GC directly. The fastest way is probably to create a class inheriting from drawable, and add the method by hand, as the function is available in Gdk.GC. class drawable ?colormap w = object inherit GDraw.drawable ?colormap w method set_stipple = Gdk.GC.set_stipple gc method set_tile = Gdk.GC.set_tile gc end Jacques