newbie simple graphics contexts & *color* question
- From: Christian Seberino <seberino spawar navy mil>
- To: gtk-list gnome org
- Subject: newbie simple graphics contexts & *color* question
- Date: Wed, 13 Mar 2002 00:07:33 -0800
I've noticed if one wants to draw on a pixmap
with a certain color they pull some component
off the drawing area like so:
myDrawingArea1->style->black_gc
myDrawingArea2->style->black_gc
Q1:
Is black_gc on
drawing area1 different from black_gc
on number 2???
Can I get these pointers from elsewhere so I don't have
to pull them off some arbitrary drawing area???
Q2:
By the way, in a gdk_draw_pixmap I saw something like
following...
gdk_draw_pixmap(myDrawingArea->window,
myDrawingArea->style->fg_gc[GTK_WIDGET_STATE(widget)],
myPixmap, 0, 0, 0, 0, width, height);
What is going on in that second arg??? ... is fg_gc the
"current" foreground or something???
Thanks,
Chris
--
=======================================================
| Dr. Christian Seberino || (619) 553-7940 (office) |
| SPAWARSYSCEN 2363 || (619) 553-2836 (fax) |
| 53560 HULL ST || |
| SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
=======================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]