</details>}</code></pre></div><h2id="variants"class="variants small-section-header">Variants<ahref="#variants"class="anchor"></a></h2><divid="variant.NoOp"class="variant small-section-header"><ahref="#variant.NoOp"class="anchor field"></a><code>NoOp</code></div><divid="variant.LeftMouseButtonDown"class="variant small-section-header"><ahref="#variant.LeftMouseButtonDown"class="anchor field"></a><code>LeftMouseButtonDown</code></div><divid="variant.LeftMouseButtonUp"class="variant small-section-header"><ahref="#variant.LeftMouseButtonUp"class="anchor field"></a><code>LeftMouseButtonUp</code></div><divclass="docblock"><p>Note: When double clicking, there will be two <code>LeftMouseButtonUp</code> events in short
</div><divclass="sub-variant"id="variant.LeftMouseButtonUp.fields"><h3>Fields of <b>LeftMouseButtonUp</b></h3><div><spanid="variant.LeftMouseButtonUp.field.is_double_click"class="variant small-section-header"><ahref="#variant.LeftMouseButtonUp.field.is_double_click"class="anchor field"></a><code>is_double_click: <aclass="primitive"href="https://doc.rust-lang.org/1.56.1/std/primitive.bool.html">bool</a></code></span></div></div><divid="variant.RightMouseButtonDown"class="variant small-section-header"><ahref="#variant.RightMouseButtonDown"class="anchor field"></a><code>RightMouseButtonDown</code></div><divid="variant.RightMouseButtonUp"class="variant small-section-header"><ahref="#variant.RightMouseButtonUp"class="anchor field"></a><code>RightMouseButtonUp</code></div><divid="variant.KeyPress"class="variant small-section-header"><ahref="#variant.KeyPress"class="anchor field"></a><code>KeyPress(<aclass="enum"href="enum.Key.html"title="enum widgetry::event::Key">Key</a>)</code></div><divclass="sub-variant"id="variant.KeyPress.fields"><h3>Tuple Fields of <b>KeyPress</b></h3><div><spanid="variant.KeyPress.field.0"class="variant small-section-header"><ahref="#variant.KeyPress.field.0"class="anchor field"></a><code>0: <aclass="enum"href="enum.Key.html"title="enum widgetry::event::Key">Key</a></code></span></div></div><divid="variant.KeyRelease"class="variant small-section-header"><ahref="#variant.KeyRelease"class="anchor field"></a><code>KeyRelease(<aclass="enum"href="enum.Key.html"title="enum widgetry::event::Key">Key</a>)</code></div><divclass="sub-variant"id="variant.KeyRelease.fields"><h3>Tuple Fields of <b>KeyRelease</b></h3><div><spanid="variant.KeyRelease.field.0"class="variant small-section-header"><ahref="#variant.KeyRelease.field.0"class="anchor field"></a><code>0: <aclass="enum"href="enum.Key.html"title="enum widgetry::event::Key">Key</a></code></span></div></div><divid="variant.Update"class="variant small-section-header"><ahref="#variant.Update"class="anchor field"></a><code>Update(<aclass="struct"href="../../geom/duration/struct.Duration.html"title="struct geom::duration::Duration">Duration</a>)</code></div><divclass="sub-variant"id="variant.Update.fields"><h3>Tuple Fields of <b>Update</b></h3><div><spanid="variant.Update.field.0"class="variant small-section-header"><ahref="#variant.Update.field.0"class="anchor field"></a><code>0: <aclass="struct"href="../../geom/duration/struct.Duration.html"title="struct geom::duration::Duration">Duration</a></code></span></div></div><divid="variant.MouseMovedTo"class="variant small-section-header"><ahref="#variant.MouseMovedTo"class="anchor field"></a><code>MouseMovedTo(<aclass="struct"href="../screen_geom/struct.ScreenPt.html"title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>)</code></div><divclass="sub-variant"id="variant.MouseMovedTo.fields"><h3>Tuple Fields of <b>MouseMovedTo</b></h3><div><spanid="variant.MouseMovedTo.field.0"class="variant small-section-header"><ahref="#variant.MouseMovedTo.field.0"class="anchor field"></a><code>0: <aclass="struct"href="../screen_geom/struct.ScreenPt.html"title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a></code></span></div></div><divid="variant.WindowLostCursor"class="variant small-section-header"><ahref="#variant.WindowLostCursor"class="anchor field"></a><code>WindowLostCursor</code></div><divid="variant.WindowGainedCursor"class="variant small-section-header"><ahref="#variant.WindowGainedCursor"class="anchor field"></a><code>WindowGainedCursor</code></div><divid="variant.MouseWheelScroll"class="variant small-section-header"><ahref="#variant.MouseWheelScroll"class="anchor field"></a><code>MouseWheelScroll(<aclass="primitive"href="https://doc.rust-lang.org/1.56.1/std/primitive.f64.html">f64</a>, <aclass="primitive"href="https://doc.rust-lang.org/1.56.1/std/primitive.f64.html">f64</a>)</code></div><divclass="sub-variant"id="variant.MouseWheelScroll.fields"><h3>Tuple Fields of <b>MouseWheelScroll</b
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.clone_from"class="method trait-impl has-srclink"><divclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/core/clone.rs.html#130"title="goto source code">[src]</a></div><ahref="#method.clone_from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.56.1/core/clone/trait.Clone.html#method.clone_from"class="fnname">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/1.56.1/std/primitive.reference.html">&</a>Self)</h4></div></summary><divclass='docblock'><p>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/1.56.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-Debug"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="../../src/widgetry/event.rs.html#16"title="goto source code">[src]</a></div><ahref="#impl-Debug"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="enum"href="enum.Event.html"title="enum widgetry::event::Event">Event</a></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.fmt"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="../../src/widgetry/event.rs.html#16"title="goto source code">[src]</a></div><ahref="#method.fmt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.56.1/core/fmt/trait.Debug.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.56.1/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.56.1/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></div></summary><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.56.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-PartialEq%3CEvent%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="../../src/widgetry/event.rs.html#16"title="goto source code">[src]</a></div><ahref="#impl-PartialEq%3CEvent%3E"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="enum"href="enum.Event.html"title="enum widgetry::event::Event">Event</a>> for <aclass="enum"href="enum.Event.html"title="enum widgetry::event::Event">Event</a></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.eq"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="../../src/widgetry/event.rs.html#16"title="goto source code">[src]</a></div><ahref="#method.eq"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.56.1/core/cmp/trait.PartialEq.html#tymethod.eq"class="fnname">eq</a>(&self, other: &<aclass="enum"href="enum.Event.html"title="enum widgetry::event::Event">Event</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.56.1/std/primitive.bool.html">bool</a></h4></div></summary><divclass='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <ahref="https://doc.rust-lang.org/1.56.1/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any">Read more</a></p>
further <code>downcast</code> into <code>Rc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any_rc">Read more</a></p>
further <code>downcast</code> into <code>Arc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any_arc">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-ToOwned"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/alloc/borrow.rs.html#84-96"title="goto source code">[src]</a></div><ahref="#impl-ToOwned"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.56.1/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Owned"class="type trait-impl has-srclink"><ahref="#associatedtype.Owned"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.56.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="type">Owned</a> = T</h4></div></summary><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.to_owned"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/alloc/borrow.rs.html#89"title="goto source code">[src]</a></div><ahref="#method.to_owned"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fnname">to_owned</a>(&self) -> T</h4></div></summary><divclass='docblock'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.56.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.clone_into"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/alloc/borrow.rs.html#93"title="goto source code">[src]</a></div><ahref="#method.clone_into"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.1/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fnname">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.56.1/std/primitive.reference.html">&mut </a>T)</h4></div></summary><divclass="item-info"><divclass="stab unstable"><details><summary><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.56.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryFrom%3CU%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/core/convert/mod.rs.html#583-592"title="goto source code">[src]</a></div><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error"class="type trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html#associatedtype.Error"class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.56.1/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></div></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_from"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/core/convert/mod.rs.html#589"title="goto source code">[src]</a></div><ahref="#method.try_from"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.56.1/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryInto%3CU%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/core/convert/mod.rs.html#569-578"title="goto source code">[src]</a></div><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error-1"class="type trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryInto.html#associatedtype.Error"class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></div></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_into"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.1/src/core/convert/mod.rs.html#575"title="goto source code">[src]</a></div><ahref="#method.try_into"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.56.1/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/1.56.1/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><divclass='docblock'><p>Performs the conversion.</p>