Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

difference between signal and event

Status
Not open for further replies.

sukhdeepmankoo

Member level 2
Joined
May 14, 2009
Messages
47
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,616
Hi,
Can any body tell me, what is the difference between signal and event and which situation can we use signal and event.
Thanks.
 

An event is often a collection of signals and certain conditions.



for eg.
A button emits a "clicked" event when the mouse button is clicked

The Mouse-down event fires the Mouse-down signal. The difference
here would be the user causes events, which emit signals, which are
handled by the application. But the application can fire signals
itself, without user input.
 

In what context are you talking?
--
Amr Ali
 

A signal is mainly a callback mechanism. It's a way
for one object to register it's interest in being notified of another
objects action or state change. You register your interest by providing
a callback, when the object "emits a signal" it simply iterates over the
list of callbacks which have been registered with it and calls the
callback passing some predefined data with it.

An event is an almost one-to-one mapping of window system events. Window
system events are things like "key press" or "window move". Window
system events are reported to the applications main loop. GDK/GTK
interprets the window system events passes them along to you.
 

Friends ....
I think this thread will really enlighten our thought process in this particular topic ....
**broken link removed**

And "sukhdeepmankoo" thanks to you for asking such a question which is really somewhat different from our as usual theoretical questions .

Regards,
SD :D
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top