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

Re: Please explain



On Thu, 21 Dec 2000 pavel@klebanov.ne.mediaone.net wrote:

> Can someone, please, explain these lines of code.
> (The example does not give sufficient explanation...)
>   int x, y;
>   GdkModifierType state;

Not the code but the book ISBN 0-7357-0021-4 gives a good
explanation on page 316.

GH

> 
>   if (event->is_hint)
>     gdk_window_get_pointer (event->window, &x, &y, &state);
>   else
>     {
>       x = event->x;
>       y = event->y;
>       state = event->state;
>     }
>     
>   if (state & GDK_BUTTON1_MASK && pixmap != NULL)
>     draw_brush (widget, x, y);
> 
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 

----------------------------------------------------------------
Göran Hasse            email: gh@raditex.se     Tel: +46 8 694 92 70
Raditex AB             http://www.raditex.se    Fax: +46 8 442 05 91
Sickla Alle 7, 1tr                              Mob: 070-5530148
131 34  NACKA, SWEDEN






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