macro_rules! connect_stream {
(return $stream:expr, $widget:expr, $event:ident($($args:pat),*), $msg:expr) => { ... };
($widget:expr, $event:ident($($args:pat),*), $other_stream:expr, $msg:expr) => { ... };
($src_stream:ident @ $message:pat, $dst_stream:expr, $msg:expr) => { ... };
}Expand description
Connect events to sending a message.
Similar to connect! but wants a stream instead of a component.
ยงRules
-
Send
$msgto$other_streamwhen the GTK+$eventis emitted on$widget. -
Send
$msgto$widgetwhen the$messageis received on$stream.