Re: Drawing lines in a gtk_layout



On 21 Apr 2001, Havoc Pennington wrote:

> 
> Hi,
> 
> Drawing to a layout you have to draw to layout->bin_window and offset
> by layout->xoffset and layout->yoffset.

You mean that I should offset the drawing coordinates like this:

gdk_draw_line(GTK_LAYOUT(widget)->bin_window, widget->style->black_gc, xini, yini, xfin + layout->xoffset, yfin + layout->yoffset);

> 
> Havoc
> 

Jose.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]