Re: [gtk-list] GdkGC!
- From: Hugo Varotto <hvarotto cs pitt edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GdkGC!
- Date: Fri, 30 Apr 1999 08:53:59 -0400
Hi Jesus,
To get the dimensions of the drawing area:
get a pointer to the desired drawing area
GtkWidget *drawingarea;
drawingarea = get_widget (window1, "my_drawingarea");
and then refer to
drawingarea->allocation.width
drawingarea->allocation.height
I'll look for some examples of how to allocate a color
Hugo
--
Hugo Varotto
Computer Science Dept.
University of Pittsburgh
hvarotto@cs.pitt.edu
JA wrote:
>
> I try to use the gdk_draw_point and other functions to draw in a drawable
> area, but i don't know how to define the GdkGC variable to set the color of
> the points. I know the GdkGC variable have to be a pointer to a color but I
> don't know how it works, if someone can send me some examples please do it.
> And another question is there one function to know the width and the height
> of a drawing area?
>
> Thanks in advance!.
>
> Jesús Arnáiz -> <jarnaiz@svalero.es> http://members.xoom.com/_jArn_/
>
> Jesús Arnáiz -> <jarnaiz@svalero.es> <- http://members.xoom.com/_jArn_/
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]