RE: [PHP-GTK-DEV] RV: Using GtkExtra under phpgtk
| From: | Angel Maza | Date: | Tue, 06 May 2003 15:38:05 +0000 |
| Subject: | RE: [PHP-GTK-DEV] RV: Using GtkExtra under phpgtk | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-468@lists.php.net to get a copy of this message | ||
I've found explain for my question
(parameter (type-and-name GdkDrawable* drawable)(null-ok)(default "NULL"))
Thanks.
Best Regards.
Angel Maza.
-----Mensaje original-----
De: Angel Maza [mailto:amaza@samca.com]
Enviado el: martes, 06 de mayo de 2003 17:08
Para: php-gtk-dev@lists.php.net
Asunto: [PHP-GTK-DEV] RV: Using GtkExtra under phpgtk
I have send this to the general list, excuse me...
-----Mensaje original-----
De: Angel Maza
Enviado el: martes, 06 de mayo de 2003 8:58
Para: php-gtk-general@lists.php.net
Asunto: Using GtkExtra under phpgtk
I'm starting to create plot.defs for making a GtkPlot/Canvas class...
;; -*- scheme -*-
; object definitions ...
(object Plot
(in-module Gtk)
(parent Widget (Gtk))
(c-name GtkPlot)
)
(object Canvas
(in-module Gtk)
(parent Widget (Gtk))
(c-name GtkCanvas)
)
(function gtk_plot_canvas_new
(c-name gtk_plot_canvas_new)
(is-constructor-of GtkCanvas)
(return-type GtkWidget*)
(parameter (type-and-name gint width))
(parameter (type-and-name gint height))
(parameter (type-and-name gdouble magnification))
)
(function gtk_plot_new_with_size
(c-name gtk_plot_new_with_size)
(is-constructor-of GtkPlot)
(return-type GtkWidget*)
(parameter (type-and-name GdkDrawable* drawable))
(parameter (type-and-name gdouble width))
(parameter (type-and-name gdouble height))
)
With the canvas all is ok, I draw it in the window. But with plot I have the
next problem.
In C, gtk_plot_new_with_size is called using a NULL as GdkDrawable, but in
PHP I can't send it a Null, it claims a GtkDrawable widget.
Best Regards.
Angel Maza.
--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php