Re: Tiled Image with GdkFill?
- From: Ronald Vincent Tarrant <rontarrant sympatico ca>
- To: gtk-app-devel-list gnome org
- Subject: Re: Tiled Image with GdkFill?
- Date: Thu, 05 Jan 2006 06:54:23 -0500
Tristan Van Berkom wrote:
There may be other ways to do this that I'm not aware of;
afaik the theme engine does not support this (all images
are scaled to fit the widget backgrounds afaik; using
engine "pixbuf" that is).
One thing I do know you can do is:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-set-back-pixmap
Which is originally an X semantic I believe; but as a part of GDK,
must be portable anyway.
Thanks, Tristan. I'm working in PHP-Gtk2, so I don't have access to
everything that are available in C. I did, eventually, come up with a
solution that seems to work by building an array of tiles (copies of the
image) and using GtkLayout::put(). It just occurred to me that if I add
more tiles during runtime, I may have to refresh everything in the
foreground by hand, but I'm guessing that won't be too big a deal.
Again, Tristan, thanks for your input. You helped me get looking in the
right direction.
-Ron T.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]