Re: [gtk-list] GC - how ?
- From: Square Avenue <dfinton d umn edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GC - how ?
- Date: Wed, 6 May 1998 10:45:47 -0500 (CDT)
On Wed, 6 May 1998, Vidar Madsen wrote:
> Hi all!
>
> I was just playing around with an idea I had about a small board game, but
> I quickly ran into problems. I figured that using a preview to display the
> board would be... well, tiresome, so I did some snooping around for info
> about GC's. To no avail... So, if anyone could point me in the right
> direction, I'd be eternally (well, almost) grateful! A tiny program that
> smacks a pixmap (or preferably, raw image data) onto a "canvas" would be
> great!
Well, there isn't any *real* documentation on the subject, so you
might have to go source code hunting. The two data structures you want to
look at are GtkDrawingArea and GdkPixmap (or GdkImage) GtkDrawingArea is a
blank canvas on which to create anything you want, and you can find out
how to get it going. You'll need to know about how to use gdk_draw_*
functions, which are defined in gdk.h
Pixmaps and GC's are defined in gdktypes.h. gdk_draw_* functions, and GC
functions are defined in the file (GTK-INSTALL-DIR)/include/gdk/gdk.h
Hope this helps!
- Dave "What the Heck is a GC Anyways?" Finton :)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Name: David Finton | "All free software is in Beta. If
Email: dfinton@d.umn.edu | there is a free software package
Web: http://www.d.umn.edu/~dfinton | bearing the version number 1.0 or
| greater, it is obsolete and must
| be replaced immediately by a
| newer, better Beta version."
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]