Re: Canvas widget and drag and drop support
| From: | Markus Fischer | Date: | Mon, 19 Nov 2001 06:44:23 +0000 |
| Subject: | Re: Canvas widget and drag and drop support | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-176@lists.php.net to get a copy of this message | ||
On Mon, Nov 19, 2001 at 03:29:11AM -0200, Manuel Lemos wrote :
> So, unless anybody more experience would
> like to have a go at this one, where I would start?
You start by looking at ./ext_skel in php-gtk/ext. Its a
helper shell script which creates an apropriate subdirectory
with a skeleton based on the widget name you pass. This will
work for small things and most likely not for bigger things
but its a start.
Make yourself familiar with generate/h2defs.py. This is
basically where the automation starts. This takes your gtk
widgets include files and produces *.defs file which are used
by the PHP-GTK code generator to produce C-code.
Again, for small things all you probably need to add is the
proper definition of the constructor function of the class
and there you go.
However, if you methods of a widget have an unknown argument
type like **char for example, you will have to write your own
'override' function which goes into widget.overrides which is
also parsed by the code generator.
I probably left out some more important things but feel free
to ask :)
- Markus