GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Nov 24, 2014 3:04 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: mouse event between desktop and widget
PostPosted: Tue Dec 25, 2007 8:31 am 
Offline

Joined: Tue Dec 25, 2007 8:17 am
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 07, 2008 6:57 am 
Offline
GTK+ Guru

Joined: Thu Jun 21, 2007 1:52 pm
Posts: 198
Location: Wilkes Barre Pa
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 :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group