[pygtk] adding gdk functions

Dave Reed dreed@capital.edu
Sat, 22 Jul 2000 15:08:21 -0400 (EDT)


> Date: Sat, 22 Jul 2000 11:22:55 -0700
> From: "Scott F. Johnston" <pygtk@fleetingimage.com>
> Sender: scotter@mta5.snfc21.pbi.net
> Cc: pygtk@daa.com.au
> Content-type: text/plain; charset=us-ascii
> X-Accept-Language: en
> Content-Length: 468
> 
> Yes, it's possible to add some more routines by adding
> the proper prototypes.
> 
> I've added a few myself:
> 
>   (define-func gdk_window_clear_area
>     none
>     ((GdkDrawable drawable)
>      (int x) (int y)
>      (int width) (int height)))
> 
>   (define-func gdk_input_set_mode
>     int
>     ((uint deviceid) (GdkInputMode mode)))
> 
>   (define-func gdk_string_width
>     int
>     ((GdkFont font) (string text)))
> 
> Not all routines are this easy to add, however. Some will require code.

Ok, I'll bite :-), how to you tell whether you just need to add the
define-func or do something more?

Dave