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 Sep 22, 2014 6:16 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 
Offline

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.

THANKS


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:47 pm 
Offline
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
http://www.micahcarrick.com


Top
 Profile  
 
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: Google [Bot] 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group