Some things.
| From: | Dimitri Giardina | Date: | Mon, 23 Jun 2003 10:55:57 +0000 |
| Subject: | Some things. | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3565@lists.php.net to get a copy of this message | ||
<pre>Sorry for my English</pre>
from an experience of extensive programming on php, i've started to use some
windows in php-gtk.
in the 5.2 implementation (i wish that the development flow is'nt stopped),
there's no class for use
of the gtk_pixbuf (or i haven't seen yet). i don't know gtk very deep; i see
the creation of objects,
the layout, the connection for events, the implementation of all this in
objects, the loading of xpm files
(for images).
so,i want to develop big programs in php-gtk.
because i know php, and i like it.
some lacks, and some workarounds:
1) the absence of other image fileformats ...
$imagemagick->convert($file_other, $file_xpm) -> load xpm.
2) the absence of gnome_canvas_item. (or similar).
i see in the project gcompris (a tool for children that exists only under
gnome... and the cygwin version of that isn't very easy to adapt), that the
interface is structured as a tree of these "containers"; every object
encapsulate a gtk object.
an example (project):
for making more "planes" in a window, the 1st step (for me) was to create an
array of layers, where some layer is an array of bitmaps (moved each one to
a point). all this structure acts in a gtkdrawingarea. the beatiful thing is
that each bitmap has 3 states (over, clicked and normal). an alternative is
to make a tree. (it's very easy).
2step: let's use some other object. (and my mind wavers...)
in gtk, there is a object that's named "gtkfixed", its dad is a
"gtkcontainer" ;)
with it, i can divide a screen into a rectangular blocks, and insert into
them a widget.
it's possible ? ( i don't see any example to do it).
any idea?