does gdk::draw_polygon work? was: Suggestions on using gdkcolor...
| From: | Alan Knowles | Date: | Tue, 28 Aug 2001 15:02:51 +0000 |
| Subject: | does gdk::draw_polygon work? was: Suggestions on using gdkcolor... | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-29@lists.php.net to get a copy of this message | ||
ouch that reply to gets me every time :)
>----- Original Message -----
> From: Alan Knowles <alan_k@hklc.com>
> To: Andrei Zmievski <andrei@ispi.net>
> Sent: Tue, 28 Aug 2001 15:01:28 -0000
> Subject: does gdk::draw_polygon work? was: Suggestions on using gdkcolor...
>
> it was that assign $gc->foreground = $cmap->alloc I failed to guess :)
>
> thx
>
> I have this on the make (generate.php output)
> Could not write function draw_polygon (parameter type GdkPoint*)
>
> looking at arg_types.php, the pointer GdkPoint, I guess is causing problems as there are not
> matchers registered for it.. any ideas on how to implement that one...
>
> thx again
>
> regards
>
> alan
>
>
> >----- Original Message -----
> > From: Andrei Zmievski <andrei@ispi.net>
> > To: Alan Knowles <alan_k@hklc.com>
> > Sent: Tue, 28 Aug 2001 08:23:38 -0500
> > Subject: Re: [PHP-GTK] Suggestions on using gdkcolor...
> >
> > On Tue, 28 Aug 2001, Alan Knowles wrote:
> > > this is a the draw_brush function from scrible.php in the test dir.
> > >
> > > what it should ! :) do is create a set of 100 dots of different colours ..
> > >
> > > what it does is creates all 'cyan' dots..
> > >
> > > ideas would be appreciated before I bang my head against a brick wall too long :)
> >
> > Here's a basic procedure for setting up color in a GC:
> >
> > $window = $widget->window;
> > $gc = $window->new_gc();
> > $cmap = $widget->get_colormap();
> > $gc->foreground = $cmap->alloc(34000, 23000, 55000);
> >
> > You can't simply use "new GdkColor()" here due to some weirdnewss of X
> > Windows system..
> >
> > -Andrei
> >
> > "You choose to do the bad things in your life;
> > the good ones come and drag you along with them."
> > - Michael Marshall Smith
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-gtk-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
> >
>
>