 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
klose86
Joined: 05 Apr 2007 Posts: 1
|
Posted: Thu Apr 05, 2007 6:41 pm Post subject: Widget Backgrounds and Images |
|
|
Hi Everyone
I'm very new to GTK, and I need to write an application that simulates highways and its traffic. So... I was thinking of using images for that purpose, and a basic drawing area, but I just can't draw any image on it. The idea is to draw a background image (the highways) and then several images (the cars, buses, traffic). But I'm getting messed up.
Any Idea how to deal with that?
Lastyl, I was reading about the GNOME-canvas. I tried some code, but my system doesn't find the "gnome.h" header. I installed everything related to gnome, including dev files, and nothing. BTW, im using Ubuntu 6.10.
I appreciate all your help.
THANKS |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 505 Location: Portland, OR USA
|
Posted: Thu Apr 12, 2007 4:47 pm Post subject: |
|
|
| You could use a GtkDrawable widget with the gdk_draw_* functions (gdk_draw_image() for example). |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|