GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mouse event between desktop and widget

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
greencactusy



Joined: 25 Dec 2007
Posts: 1

PostPosted: Tue Dec 25, 2007 8:31 am    Post subject: mouse event between desktop and widget Reply with quote

If i press the mouse button on the Desktop and then move the cursor on the widget, the widget cannot know the mouse-button is pressed.
How could the widget know that the mouse button is already pressed and trigger the related event function?
Thanks
Back to top
caracal
GTK+ Geek


Joined: 21 Jun 2007
Posts: 80
Location: Wilkes Barre Pa

PostPosted: Mon Jan 07, 2008 6:57 am    Post subject: Reply with quote

GDK
The GIMP Drawing Kit (GDK) is a computer graphics library originally designed for the
X Window System that wraps around low-level drawing and window functions. GDK acts as
the intermediary between Xlib and GTK+.
It renders drawings, raster graphics, cursors, and fonts in all GTK+ applications. Also,
since it is implemented in every GTK+ program, GDK provides drag-and-drop support and
window events.
GDK provides GTK+ widgets the ability to be drawn to the screen. To do this, every widget
has an associated GdkWindow object, except for a few widgets that will be discussed in a later
chapter. A GdkWindow is essentially a rectangular area located on the screen in which the widget
is drawn. GdkWindow objects also allow widgets to detect X Window System events.

Quote:
GdkWindow objects also allow widgets to detect X Window System events.


Get Foundations of GTK+ Development :)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP