GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Widget Backgrounds and Images

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
klose86



Joined: 05 Apr 2007
Posts: 1

PostPosted: Thu Apr 05, 2007 6:41 pm    Post subject: Widget Backgrounds and Images Reply with quote

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

PostPosted: Thu Apr 12, 2007 4:47 pm    Post subject: Reply with quote

You could use a GtkDrawable widget with the gdk_draw_* functions (gdk_draw_image() for example).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP