<Type Name="CanvasEventHandler" FullName="Gnome.CanvasEventHandler"> <TypeSignature Language="C#" Maintainer="auto" Value="public delegate void CanvasEventHandler(object o, Gnome.CanvasEventArgs args);" /> <AssemblyInfo> <AssemblyName>gnome-sharp</AssemblyName> <AssemblyVersion>2.6.0.0</AssemblyVersion> </AssemblyInfo> <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement> <Docs> <param name="o">To be added.</param> <param name="args">To be added.</param> <summary>Called when a canvas receives events from a <see cref="T:Gnome.CanvasItem" /> such as enter/leave, mouse movements, etc.</summary> <remarks> <para>The <see cref="M:Gnome.CanvasItem.CanvasEvent" /> event utilizes this delegate:</para> <para>Event data is passed via the <see cref="T:Gnome.CanvasEventArgs" /> parameter.</para> <para>To attach a <see cref="T:Gnome.CanvasEventHandler" /> to an event, add the CanvasEventHandler instance to the event. The methods referenced by the CanvasEventHandler instance are invoked whenever the event is raised, until the CanvasEventHandler is removed from the event.</para> </remarks> </Docs> <Base> <BaseTypeName>System.Delegate</BaseTypeName> </Base> <Members /> <Parameters> <Parameter Name="o" Type="System.Object" /> <Parameter Name="args" Type="Gnome.CanvasEventArgs" /> </Parameters> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> </Type>