mirror of
https://github.com/neogeek23/rusty_snek_gaem.git
synced 2026-02-04 11:08:40 +00:00
107 lines
28 KiB
HTML
107 lines
28 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `WindowEvent` enum in crate `winit`."><meta name="keywords" content="rust, rustlang, rust-lang, WindowEvent"><title>winit::WindowEvent - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum WindowEvent</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Resized">Resized</a><a href="#variant.Moved">Moved</a><a href="#variant.CloseRequested">CloseRequested</a><a href="#variant.Destroyed">Destroyed</a><a href="#variant.DroppedFile">DroppedFile</a><a href="#variant.HoveredFile">HoveredFile</a><a href="#variant.HoveredFileCancelled">HoveredFileCancelled</a><a href="#variant.ReceivedCharacter">ReceivedCharacter</a><a href="#variant.Focused">Focused</a><a href="#variant.KeyboardInput">KeyboardInput</a><a href="#variant.CursorMoved">CursorMoved</a><a href="#variant.CursorEntered">CursorEntered</a><a href="#variant.CursorLeft">CursorLeft</a><a href="#variant.MouseWheel">MouseWheel</a><a href="#variant.MouseInput">MouseInput</a><a href="#variant.TouchpadPressure">TouchpadPressure</a><a href="#variant.AxisMotion">AxisMotion</a><a href="#variant.Refresh">Refresh</a><a href="#variant.Touch">Touch</a><a href="#variant.HiDpiFactorChanged">HiDpiFactorChanged</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='index.html'>winit</a></p><script>window.sidebarCurrent = {name: 'WindowEvent', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='index.html'>winit</a>::<wbr><a class="enum" href=''>WindowEvent</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/winit/events.rs.html#26-109' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum WindowEvent {
|
||
Resized(<a class="struct" href="../winit/dpi/struct.LogicalSize.html" title="struct winit::dpi::LogicalSize">LogicalSize</a>),
|
||
Moved(<a class="struct" href="../winit/dpi/struct.LogicalPosition.html" title="struct winit::dpi::LogicalPosition">LogicalPosition</a>),
|
||
CloseRequested,
|
||
Destroyed,
|
||
DroppedFile(<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>),
|
||
HoveredFile(<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>),
|
||
HoveredFileCancelled,
|
||
ReceivedCharacter(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>),
|
||
Focused(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>),
|
||
KeyboardInput {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
input: <a class="struct" href="../winit/struct.KeyboardInput.html" title="struct winit::KeyboardInput">KeyboardInput</a>,
|
||
},
|
||
CursorMoved {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
position: <a class="struct" href="../winit/dpi/struct.LogicalPosition.html" title="struct winit::dpi::LogicalPosition">LogicalPosition</a>,
|
||
modifiers: <a class="struct" href="../winit/struct.ModifiersState.html" title="struct winit::ModifiersState">ModifiersState</a>,
|
||
},
|
||
CursorEntered {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
},
|
||
CursorLeft {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
},
|
||
MouseWheel {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
delta: <a class="enum" href="../winit/enum.MouseScrollDelta.html" title="enum winit::MouseScrollDelta">MouseScrollDelta</a>,
|
||
phase: <a class="enum" href="../winit/enum.TouchPhase.html" title="enum winit::TouchPhase">TouchPhase</a>,
|
||
modifiers: <a class="struct" href="../winit/struct.ModifiersState.html" title="struct winit::ModifiersState">ModifiersState</a>,
|
||
},
|
||
MouseInput {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
state: <a class="enum" href="../winit/enum.ElementState.html" title="enum winit::ElementState">ElementState</a>,
|
||
button: <a class="enum" href="../winit/enum.MouseButton.html" title="enum winit::MouseButton">MouseButton</a>,
|
||
modifiers: <a class="struct" href="../winit/struct.ModifiersState.html" title="struct winit::ModifiersState">ModifiersState</a>,
|
||
},
|
||
TouchpadPressure {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
pressure: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
stage: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>,
|
||
},
|
||
AxisMotion {
|
||
device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a>,
|
||
axis: <a class="type" href="../winit/type.AxisId.html" title="type winit::AxisId">AxisId</a>,
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||
},
|
||
Refresh,
|
||
Touch(<a class="struct" href="../winit/struct.Touch.html" title="struct winit::Touch">Touch</a>),
|
||
HiDpiFactorChanged(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>),
|
||
}</pre></div><div class='docblock'><p>Describes an event from a <code>Window</code>.</p>
|
||
</div><h2 id='variants' class='variants small-section-header'>
|
||
Variants<a href='#variants' class='anchor'></a></h2>
|
||
<span id="variant.Resized" class="variant small-section-header"><a href="#variant.Resized" class="anchor field"></a><span id='Resized.v' class='invisible'><code>Resized(<a class="struct" href="../winit/dpi/struct.LogicalSize.html" title="struct winit::dpi::LogicalSize">LogicalSize</a>)</code></span></span><div class='docblock'><p>The size of the window has changed. Contains the client area's new dimensions.</p>
|
||
</div><span id="variant.Moved" class="variant small-section-header"><a href="#variant.Moved" class="anchor field"></a><span id='Moved.v' class='invisible'><code>Moved(<a class="struct" href="../winit/dpi/struct.LogicalPosition.html" title="struct winit::dpi::LogicalPosition">LogicalPosition</a>)</code></span></span><div class='docblock'><p>The position of the window has changed. Contains the window's new position.</p>
|
||
</div><span id="variant.CloseRequested" class="variant small-section-header"><a href="#variant.CloseRequested" class="anchor field"></a><span id='CloseRequested.v' class='invisible'><code>CloseRequested</code></span></span><div class='docblock'><p>The window has been requested to close.</p>
|
||
</div><span id="variant.Destroyed" class="variant small-section-header"><a href="#variant.Destroyed" class="anchor field"></a><span id='Destroyed.v' class='invisible'><code>Destroyed</code></span></span><div class='docblock'><p>The window has been destroyed.</p>
|
||
</div><span id="variant.DroppedFile" class="variant small-section-header"><a href="#variant.DroppedFile" class="anchor field"></a><span id='DroppedFile.v' class='invisible'><code>DroppedFile(<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>)</code></span></span><div class='docblock'><p>A file has been dropped into the window.</p>
|
||
</div><span id="variant.HoveredFile" class="variant small-section-header"><a href="#variant.HoveredFile" class="anchor field"></a><span id='HoveredFile.v' class='invisible'><code>HoveredFile(<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>)</code></span></span><div class='docblock'><p>A file is being hovered over the window.</p>
|
||
</div><span id="variant.HoveredFileCancelled" class="variant small-section-header"><a href="#variant.HoveredFileCancelled" class="anchor field"></a><span id='HoveredFileCancelled.v' class='invisible'><code>HoveredFileCancelled</code></span></span><div class='docblock'><p>A file was hovered, but has exited the window.</p>
|
||
</div><span id="variant.ReceivedCharacter" class="variant small-section-header"><a href="#variant.ReceivedCharacter" class="anchor field"></a><span id='ReceivedCharacter.v' class='invisible'><code>ReceivedCharacter(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>)</code></span></span><div class='docblock'><p>The window received a unicode character.</p>
|
||
</div><span id="variant.Focused" class="variant small-section-header"><a href="#variant.Focused" class="anchor field"></a><span id='Focused.v' class='invisible'><code>Focused(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</code></span></span><div class='docblock'><p>The window gained or lost focus.</p>
|
||
<p>The parameter is true if the window has gained focus, and false if it has lost focus.</p>
|
||
</div><span id="variant.KeyboardInput" class="variant small-section-header"><a href="#variant.KeyboardInput" class="anchor field"></a><span id='KeyboardInput.v' class='invisible'><code>KeyboardInput</code></span></span><div class='docblock'><p>An event from the keyboard has been received.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.KeyboardInput.fields'><h3 class='fields'>Fields of <code>KeyboardInput</code></h3>
|
||
|
||
<table><tr><td id='variant.KeyboardInput.field.device_id'><span id='KeyboardInput.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr><tr><td id='variant.KeyboardInput.field.input'><span id='KeyboardInput.v.input.v' class='invisible'><code>input: <a class="struct" href="../winit/struct.KeyboardInput.html" title="struct winit::KeyboardInput">KeyboardInput</a></code></span></td><td></td></tr></table></span><span id="variant.CursorMoved" class="variant small-section-header"><a href="#variant.CursorMoved" class="anchor field"></a><span id='CursorMoved.v' class='invisible'><code>CursorMoved</code></span></span><div class='docblock'><p>The cursor has moved on the window.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.CursorMoved.fields'><h3 class='fields'>Fields of <code>CursorMoved</code></h3>
|
||
|
||
<table><tr><td id='variant.CursorMoved.field.device_id'><span id='CursorMoved.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr><tr><td id='variant.CursorMoved.field.position'><span id='CursorMoved.v.position.v' class='invisible'><code>position: <a class="struct" href="../winit/dpi/struct.LogicalPosition.html" title="struct winit::dpi::LogicalPosition">LogicalPosition</a></code></span></td><td><div class='docblock'><p>(x,y) coords in pixels relative to the top-left corner of the window. Because the range of this data is
|
||
limited by the display area and it may have been transformed by the OS to implement effects such as cursor
|
||
acceleration, it should not be used to implement non-cursor-like interactions such as 3D camera control.</p>
|
||
</div></td></tr><tr><td id='variant.CursorMoved.field.modifiers'><span id='CursorMoved.v.modifiers.v' class='invisible'><code>modifiers: <a class="struct" href="../winit/struct.ModifiersState.html" title="struct winit::ModifiersState">ModifiersState</a></code></span></td><td></td></tr></table></span><span id="variant.CursorEntered" class="variant small-section-header"><a href="#variant.CursorEntered" class="anchor field"></a><span id='CursorEntered.v' class='invisible'><code>CursorEntered</code></span></span><div class='docblock'><p>The cursor has entered the window.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.CursorEntered.fields'><h3 class='fields'>Fields of <code>CursorEntered</code></h3>
|
||
|
||
<table><tr><td id='variant.CursorEntered.field.device_id'><span id='CursorEntered.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr></table></span><span id="variant.CursorLeft" class="variant small-section-header"><a href="#variant.CursorLeft" class="anchor field"></a><span id='CursorLeft.v' class='invisible'><code>CursorLeft</code></span></span><div class='docblock'><p>The cursor has left the window.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.CursorLeft.fields'><h3 class='fields'>Fields of <code>CursorLeft</code></h3>
|
||
|
||
<table><tr><td id='variant.CursorLeft.field.device_id'><span id='CursorLeft.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr></table></span><span id="variant.MouseWheel" class="variant small-section-header"><a href="#variant.MouseWheel" class="anchor field"></a><span id='MouseWheel.v' class='invisible'><code>MouseWheel</code></span></span><div class='docblock'><p>A mouse wheel movement or touchpad scroll occurred.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.MouseWheel.fields'><h3 class='fields'>Fields of <code>MouseWheel</code></h3>
|
||
|
||
<table><tr><td id='variant.MouseWheel.field.device_id'><span id='MouseWheel.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr><tr><td id='variant.MouseWheel.field.delta'><span id='MouseWheel.v.delta.v' class='invisible'><code>delta: <a class="enum" href="../winit/enum.MouseScrollDelta.html" title="enum winit::MouseScrollDelta">MouseScrollDelta</a></code></span></td><td></td></tr><tr><td id='variant.MouseWheel.field.phase'><span id='MouseWheel.v.phase.v' class='invisible'><code>phase: <a class="enum" href="../winit/enum.TouchPhase.html" title="enum winit::TouchPhase">TouchPhase</a></code></span></td><td></td></tr><tr><td id='variant.MouseWheel.field.modifiers'><span id='MouseWheel.v.modifiers.v' class='invisible'><code>modifiers: <a class="struct" href="../winit/struct.ModifiersState.html" title="struct winit::ModifiersState">ModifiersState</a></code></span></td><td></td></tr></table></span><span id="variant.MouseInput" class="variant small-section-header"><a href="#variant.MouseInput" class="anchor field"></a><span id='MouseInput.v' class='invisible'><code>MouseInput</code></span></span><div class='docblock'><p>An mouse button press has been received.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.MouseInput.fields'><h3 class='fields'>Fields of <code>MouseInput</code></h3>
|
||
|
||
<table><tr><td id='variant.MouseInput.field.device_id'><span id='MouseInput.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr><tr><td id='variant.MouseInput.field.state'><span id='MouseInput.v.state.v' class='invisible'><code>state: <a class="enum" href="../winit/enum.ElementState.html" title="enum winit::ElementState">ElementState</a></code></span></td><td></td></tr><tr><td id='variant.MouseInput.field.button'><span id='MouseInput.v.button.v' class='invisible'><code>button: <a class="enum" href="../winit/enum.MouseButton.html" title="enum winit::MouseButton">MouseButton</a></code></span></td><td></td></tr><tr><td id='variant.MouseInput.field.modifiers'><span id='MouseInput.v.modifiers.v' class='invisible'><code>modifiers: <a class="struct" href="../winit/struct.ModifiersState.html" title="struct winit::ModifiersState">ModifiersState</a></code></span></td><td></td></tr></table></span><span id="variant.TouchpadPressure" class="variant small-section-header"><a href="#variant.TouchpadPressure" class="anchor field"></a><span id='TouchpadPressure.v' class='invisible'><code>TouchpadPressure</code></span></span><div class='docblock'><p>Touchpad pressure event.</p>
|
||
<p>At the moment, only supported on Apple forcetouch-capable macbooks.
|
||
The parameters are: pressure level (value between 0 and 1 representing how hard the touchpad
|
||
is being pressed) and stage (integer representing the click level).</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.TouchpadPressure.fields'><h3 class='fields'>Fields of <code>TouchpadPressure</code></h3>
|
||
|
||
<table><tr><td id='variant.TouchpadPressure.field.device_id'><span id='TouchpadPressure.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr><tr><td id='variant.TouchpadPressure.field.pressure'><span id='TouchpadPressure.v.pressure.v' class='invisible'><code>pressure: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span></td><td></td></tr><tr><td id='variant.TouchpadPressure.field.stage'><span id='TouchpadPressure.v.stage.v' class='invisible'><code>stage: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span></td><td></td></tr></table></span><span id="variant.AxisMotion" class="variant small-section-header"><a href="#variant.AxisMotion" class="anchor field"></a><span id='AxisMotion.v' class='invisible'><code>AxisMotion</code></span></span><div class='docblock'><p>Motion on some analog axis. May report data redundant to other, more specific events.</p>
|
||
</div><span class='docblock autohide sub-variant' id='variant.AxisMotion.fields'><h3 class='fields'>Fields of <code>AxisMotion</code></h3>
|
||
|
||
<table><tr><td id='variant.AxisMotion.field.device_id'><span id='AxisMotion.v.device_id.v' class='invisible'><code>device_id: <a class="struct" href="../winit/struct.DeviceId.html" title="struct winit::DeviceId">DeviceId</a></code></span></td><td></td></tr><tr><td id='variant.AxisMotion.field.axis'><span id='AxisMotion.v.axis.v' class='invisible'><code>axis: <a class="type" href="../winit/type.AxisId.html" title="type winit::AxisId">AxisId</a></code></span></td><td></td></tr><tr><td id='variant.AxisMotion.field.value'><span id='AxisMotion.v.value.v' class='invisible'><code>value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span></td><td></td></tr></table></span><span id="variant.Refresh" class="variant small-section-header"><a href="#variant.Refresh" class="anchor field"></a><span id='Refresh.v' class='invisible'><code>Refresh</code></span></span><div class='docblock'><p>The window needs to be redrawn.</p>
|
||
</div><span id="variant.Touch" class="variant small-section-header"><a href="#variant.Touch" class="anchor field"></a><span id='Touch.v' class='invisible'><code>Touch(<a class="struct" href="../winit/struct.Touch.html" title="struct winit::Touch">Touch</a>)</code></span></span><div class='docblock'><p>Touch event has been received</p>
|
||
</div><span id="variant.HiDpiFactorChanged" class="variant small-section-header"><a href="#variant.HiDpiFactorChanged" class="anchor field"></a><span id='HiDpiFactorChanged.v' class='invisible'><code>HiDpiFactorChanged(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code></span></span><div class='docblock'><p>The DPI factor of the window has changed.</p>
|
||
<p>The following user actions can cause DPI changes:</p>
|
||
<ul>
|
||
<li>Changing the display's resolution.</li>
|
||
<li>Changing the display's DPI factor (e.g. in Control Panel on Windows).</li>
|
||
<li>Moving the window to a display with a different DPI factor.</li>
|
||
</ul>
|
||
<p>For more information about DPI in general, see the <a href="dpi/index.html"><code>dpi</code></a> module.</p>
|
||
</div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../winit/enum.WindowEvent.html" title="enum winit::WindowEvent">WindowEvent</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/winit/events.rs.html#25' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../winit/enum.WindowEvent.html" title="enum winit::WindowEvent">WindowEvent</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/winit/events.rs.html#25' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../winit/enum.WindowEvent.html" title="enum winit::WindowEvent">WindowEvent</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/winit/events.rs.html#25' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/winit/events.rs.html#25' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../winit/enum.WindowEvent.html" title="enum winit::WindowEvent">WindowEvent</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../winit/enum.WindowEvent.html" title="enum winit::WindowEvent">WindowEvent</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "winit";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |