Re: [gtk-list] draw_line
- From: Roland Bock <rbock eudoxos de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] draw_line
- Date: Tue, 02 Mar 1999 18:40:43 +0100
Hi!
If you do not see anything, you probably update the wrong area of the
widget with
gtk_widget_draw (..., &rectangle)
The example works in two steps:
First draw the rectangle on the pixmap, then bring the area to the
screen, that has been changed by drawing.
If you hack that example, you must make sure, that the updated area and
the area you draw the line in are the same (You could use the
coordinates of the update_rect for drawing a line across this rectangle,
for example, just to see, that it works).
Try to understand that scribble_simple program completely and you will
have no problems of that kind anymore :-)
(I seem to remember that the tutorial provides you with some information
on that program, too)
Greetings,
Roland Bock
Sune Fischer wrote:
>
> Hi
>
> I need to know how to draw a line between to points, and that funktion
> is I belive
> gdk_draw_line(...)
> but nothing happens.
> I have tried to hacke one of the examples that came with gtk, it draws
> a rectangle but uses a function to "realize" the rectangle.
> gdk_draw_rectangle (...)
> gtk_widget_draw (..., &rectangle)
>
> I don't know what to do to "realize" this:
> gdk_draw_line (pixmap, drawing_area->style->black_gc, 0, 0, 56, 78);
>
> I hope someone can help me with this problem?
>
> Thanks a billion everybody,
> Sune Fischer
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> 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]