Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Event listeners relationship with GTK

Hi everyone,

I've been doing some code traversing for a few days to better understand how SWT handles events with uses of ___event.java, ___Listener.java, and ____Adapter.java.

Now my main question is, where is the communication done between GTK to SWT in order for SWT events to have the correct information given from GTK? For example, say the user does a mouse event of clicking down. My understanding is is that Widget:windowProc will get the gtk event of the mouse down action, and deal with it using gtk_button_press_event(). But, how does it eventually run down to any event listeners that are hooked to SWT.MouseDown?

I am working on creating the Gestures event listener for GTK here and this information will help me greatly : https://bugs.eclipse.org/bugs/show_bug.cgi?id=482018


thank you,

--
Ian Pun
Software Engineering Intern at Red Hat
Eclipse Team



Back to the top