Re: drawing functions
| From: | Steph | Date: | Mon, 26 Sep 2005 17:23:13 +0000 |
| Subject: | Re: drawing functions | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1705@lists.php.net to get a copy of this message | ||
It does work, actually - the var_dump($a) came good from the start.
I just got scribble.php running here (after a fashion) with a few internals
adjustments, but I'm not getting anything useful from
GTK_POINTER_MOTION_HINT_MASK - so is_hint is NEVER true. Fixing that's way
beyond my capabilities.
gdk_window_get_pointer() apparently doesn't exist at all, which is pretty
unhelpful :) I tried overriding it and got a bunch of errors related to the
arg_info struct, whether I tried adding arg-info or not:
gen_gdk.c
ext\gtk+\gen_gdk.c(4450) : error C2065: 'zif_GdkWindow_get_pointer' :
undeclared identifier
ext\gtk+\gen_gdk.c(4450) : error C2099: initializer is not a constant
ext\gtk+\gen_gdk.c(4450) : warning C4047: 'initializing' : 'struct
_zend_arg_info *' differs in levels of indirection from 'unsigned int '
NMAKE : fatal error U1077: 'cl' : return code '0x2'
although the actual function declaration went through OK.
I'll commit the rest of the event stuff tomorrow, still some bits to do
there. I don't know of a good reason to have gdk_pixmap_new ignored,
either... it seems to work fine?
----- Original Message -----
From: "Andrei Zmievski" <andrei@gravitonic.com>
To: "Pablo Dall'Oglio" <pablo@dalloglio.net>
Cc: <php-gtk-dev@lists.php.net>
Sent: Monday, September 26, 2005 5:45 PM
Subject: Re: [PHP-GTK-DEV] drawing functions
> I don't think GdkGC constructor works properly yet..
>
> -Andrei
>
> On Sep 25, 2005, at 4:58 PM, Pablo Dall'Oglio wrote:
>
> > Hello !
> >
> > I didn't realize how to use drawing functions on php-gtk2... This code
> > gives me an error:
> >
> > $a = new GdkGC($gdkwindow);
> > var_dump($a);
> > GdkDrawable::draw_rectangle($drawingarea, $a, 4, 4, 580, 340);
> >
> > Fatal error: Argument 1 must be an instance of GdkGC....
> >
> > Does someone know how it works ?
> >
> > regards
> > Pablo
> > --
> > :: Pablo Dall'Oglio
> > :: www.solis.coop.br - Lajeado, RS - Brasil
> > :: www.dalloglio.net - Personal Home Page
> > :: The software is free, but the work isn't.
> >
> > --
> > PHP-GTK Development Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>