GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Aug 29, 2016 11:29 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Widget Backgrounds and Images
PostPosted: Thu Apr 05, 2007 6:41 pm 

Joined: Thu Apr 05, 2007 6:35 pm
Posts: 1
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.


 Post subject:
PostPosted: Thu Apr 12, 2007 4:47 pm 
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
You could use a GtkDrawable widget with the gdk_draw_* functions (gdk_draw_image() for example).

Micah Carrick - Forum Administrator

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group