This commit is contained in:
wash2 2026-04-18 20:11:25 +00:00
commit 0fa87f2b35
16382 changed files with 734838 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
<!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 `repeat` mod in crate `cosmic`."><title>cosmic::cctk::sctk::seat::keyboard::repeat - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../" data-static-root-path="../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module repeat</a></h2><h3><a href="#types">Module Items</a></h3><ul class="block"><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>seat::<wbr>keyboard</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../index.html">cosmic</a>::<wbr><a href="../../../../index.html">cctk</a>::<wbr><a href="../../../index.html">sctk</a>::<wbr><a href="../../index.html">seat</a>::<wbr><a href="../index.html">keyboard</a></div><h1>Module <span>repeat</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.RepeatCallback.html" title="type cosmic::cctk::sctk::seat::keyboard::repeat::RepeatCallback">Repeat<wbr>Callback</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"type":["RepeatCallback"]};

View file

@ -0,0 +1 @@
<!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 `RepeatCallback` type in crate `cosmic`."><title>RepeatCallback in cosmic::cctk::sctk::seat::keyboard::repeat - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../" data-static-root-path="../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Repeat<wbr>Callback</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>seat::<wbr>keyboard::<wbr>repeat</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../index.html">cosmic</a>::<wbr><a href="../../../../index.html">cctk</a>::<wbr><a href="../../../index.html">sctk</a>::<wbr><a href="../../index.html">seat</a>::<wbr><a href="../index.html">keyboard</a>::<wbr><a href="index.html">repeat</a></div><h1>Type Alias <span class="type">RepeatCallback</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type RepeatCallback&lt;T&gt; = <a class="struct" href="../../../reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a>, &amp;<a class="struct" href="../../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>, <a class="struct" href="../struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>)&gt;;</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct RepeatCallback&lt;T&gt;(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::cctk::sctk::seat::keyboard::repeat::RepeatCallback" async></script></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["KeyboardError","RepeatInfo"],"mod":["repeat"],"struct":["KeyCode","KeyEvent","KeyboardData","Keymap","Keysym","Modifiers","RMLVO","RawModifiers"],"trait":["KeyboardDataExt","KeyboardHandler"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,8 @@
<!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 `KeyboardDataExt` trait in crate `cosmic`."><title>KeyboardDataExt in cosmic::cctk::sctk::seat::keyboard - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../" data-static-root-path="../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Keyboard<wbr>Data<wbr>Ext</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.State" title="State">State</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.keyboard_data" title="keyboard_data">keyboard_data</a></li><li><a href="#tymethod.keyboard_data_mut" title="keyboard_data_mut">keyboard_data_mut</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>seat::<wbr>keyboard</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../index.html">cosmic</a>::<wbr><a href="../../../index.html">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">seat</a>::<wbr><a href="index.html">keyboard</a></div><h1>Trait <span class="trait">KeyboardDataExt</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait KeyboardDataExt: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> {
type <a href="#associatedtype.State" class="associatedtype">State</a>: 'static;
// Required methods
fn <a href="#tymethod.keyboard_data" class="fn">keyboard_data</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.KeyboardData.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyboardData">KeyboardData</a>&lt;Self::<a class="associatedtype" href="trait.KeyboardDataExt.html#associatedtype.State" title="type cosmic::cctk::sctk::seat::keyboard::KeyboardDataExt::State">State</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.keyboard_data_mut" class="fn">keyboard_data_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="struct.KeyboardData.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyboardData">KeyboardData</a>&lt;Self::<a class="associatedtype" href="trait.KeyboardDataExt.html#associatedtype.State" title="type cosmic::cctk::sctk::seat::keyboard::KeyboardDataExt::State">State</a>&gt;;
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.State" class="method"><h4 class="code-header">type <a href="#associatedtype.State" class="associatedtype">State</a>: 'static</h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.keyboard_data" class="method"><h4 class="code-header">fn <a href="#tymethod.keyboard_data" class="fn">keyboard_data</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.KeyboardData.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyboardData">KeyboardData</a>&lt;Self::<a class="associatedtype" href="trait.KeyboardDataExt.html#associatedtype.State" title="type cosmic::cctk::sctk::seat::keyboard::KeyboardDataExt::State">State</a>&gt;</h4></section><section id="tymethod.keyboard_data_mut" class="method"><h4 class="code-header">fn <a href="#tymethod.keyboard_data_mut" class="fn">keyboard_data_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="struct.KeyboardData.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyboardData">KeyboardData</a>&lt;Self::<a class="associatedtype" href="trait.KeyboardDataExt.html#associatedtype.State" title="type cosmic::cctk::sctk::seat::keyboard::KeyboardDataExt::State">State</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-KeyboardDataExt-for-KeyboardData%3CT%3E" class="impl"><a href="#impl-KeyboardDataExt-for-KeyboardData%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.KeyboardDataExt.html" title="trait cosmic::cctk::sctk::seat::keyboard::KeyboardDataExt">KeyboardDataExt</a> for <a class="struct" href="struct.KeyboardData.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyboardData">KeyboardData</a>&lt;T&gt;<div class="where">where
T: 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.State-1" class="associatedtype trait-impl"><a href="#associatedtype.State-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.State" class="associatedtype">State</a> = T</h4></section></div></details></div><script src="../../../../../trait.impl/smithay_client_toolkit/seat/keyboard/trait.KeyboardDataExt.js" data-ignore-extern-crates="smithay_client_toolkit" async></script></section></div></main></body></html>

View file

@ -0,0 +1,155 @@
<!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="Handler trait for keyboard input."><title>KeyboardHandler in cosmic::cctk::sctk::seat::keyboard - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../" data-static-root-path="../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Keyboard<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.enter" title="enter">enter</a></li><li><a href="#tymethod.leave" title="leave">leave</a></li><li><a href="#tymethod.press_key" title="press_key">press_key</a></li><li><a href="#tymethod.release_key" title="release_key">release_key</a></li><li><a href="#tymethod.repeat_key" title="repeat_key">repeat_key</a></li><li><a href="#tymethod.update_modifiers" title="update_modifiers">update_modifiers</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.update_keymap" title="update_keymap">update_keymap</a></li><li><a href="#method.update_repeat_info" title="update_repeat_info">update_repeat_info</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>seat::<wbr>keyboard</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../index.html">cosmic</a>::<wbr><a href="../../../index.html">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">seat</a>::<wbr><a href="index.html">keyboard</a></div><h1>Trait <span class="trait">KeyboardHandler</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait KeyboardHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
// Required methods
fn <a href="#tymethod.enter" class="fn">enter</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
surface: &amp;<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
raw: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>],
keysyms: &amp;[<a class="struct" href="struct.Keysym.html" title="struct cosmic::cctk::sctk::seat::keyboard::Keysym">Keysym</a>],
);
<span class="item-spacer"></span> fn <a href="#tymethod.leave" class="fn">leave</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
surface: &amp;<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
);
<span class="item-spacer"></span> fn <a href="#tymethod.press_key" class="fn">press_key</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
event: <a class="struct" href="struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>,
);
<span class="item-spacer"></span> fn <a href="#tymethod.repeat_key" class="fn">repeat_key</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
event: <a class="struct" href="struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>,
);
<span class="item-spacer"></span> fn <a href="#tymethod.release_key" class="fn">release_key</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
event: <a class="struct" href="struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>,
);
<span class="item-spacer"></span> fn <a href="#tymethod.update_modifiers" class="fn">update_modifiers</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
modifiers: <a class="struct" href="struct.Modifiers.html" title="struct cosmic::cctk::sctk::seat::keyboard::Modifiers">Modifiers</a>,
raw_modifiers: <a class="struct" href="struct.RawModifiers.html" title="struct cosmic::cctk::sctk::seat::keyboard::RawModifiers">RawModifiers</a>,
layout: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
);
// Provided methods
fn <a href="#method.update_repeat_info" class="fn">update_repeat_info</a>(
&amp;mut self,
_conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
_qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
_keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
_info: <a class="enum" href="enum.RepeatInfo.html" title="enum cosmic::cctk::sctk::seat::keyboard::RepeatInfo">RepeatInfo</a>,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.update_keymap" class="fn">update_keymap</a>(
&amp;mut self,
_conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
_qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
_keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
_keymap: <a class="struct" href="struct.Keymap.html" title="struct cosmic::cctk::sctk::seat::keyboard::Keymap">Keymap</a>&lt;'_&gt;,
) { ... }
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for keyboard input.</p>
<p>The functions defined in this trait are called as keyboard events are received from the compositor.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.enter" class="method"><h4 class="code-header">fn <a href="#tymethod.enter" class="fn">enter</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
surface: &amp;<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
raw: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>],
keysyms: &amp;[<a class="struct" href="struct.Keysym.html" title="struct cosmic::cctk::sctk::seat::keyboard::Keysym">Keysym</a>],
)</h4></section></summary><div class="docblock"><p>The keyboard has entered a surface.</p>
<p>When called, you may assume the specified surface has keyboard focus.</p>
<p>When a keyboard enters a surface, the <code>raw</code> and <code>keysym</code> fields indicate which keys are currently
pressed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.leave" class="method"><h4 class="code-header">fn <a href="#tymethod.leave" class="fn">leave</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
surface: &amp;<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
)</h4></section></summary><div class="docblock"><p>The keyboard has left a surface.</p>
<p>When called, keyboard focus leaves the specified surface.</p>
<p>All currently held down keys are released when this event occurs.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.press_key" class="method"><h4 class="code-header">fn <a href="#tymethod.press_key" class="fn">press_key</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
event: <a class="struct" href="struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>,
)</h4></section></summary><div class="docblock"><p>A key has been pressed on the keyboard.</p>
<p>The key will repeat if there is no other press event afterwards or the key is released.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.repeat_key" class="method"><h4 class="code-header">fn <a href="#tymethod.repeat_key" class="fn">repeat_key</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
event: <a class="struct" href="struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>,
)</h4></section></summary><div class="docblock"><p>A key has been previously pressed and is now repeating.</p>
<p>This is only called on supporting compositors.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.release_key" class="method"><h4 class="code-header">fn <a href="#tymethod.release_key" class="fn">release_key</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
event: <a class="struct" href="struct.KeyEvent.html" title="struct cosmic::cctk::sctk::seat::keyboard::KeyEvent">KeyEvent</a>,
)</h4></section></summary><div class="docblock"><p>A key has been released.</p>
<p>This stops the key from being repeated if the key is the last key which was pressed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_modifiers" class="method"><h4 class="code-header">fn <a href="#tymethod.update_modifiers" class="fn">update_modifiers</a>(
&amp;mut self,
conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
serial: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
modifiers: <a class="struct" href="struct.Modifiers.html" title="struct cosmic::cctk::sctk::seat::keyboard::Modifiers">Modifiers</a>,
raw_modifiers: <a class="struct" href="struct.RawModifiers.html" title="struct cosmic::cctk::sctk::seat::keyboard::RawModifiers">RawModifiers</a>,
layout: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
)</h4></section></summary><div class="docblock"><p>Keyboard modifiers have been updated.</p>
<p>This happens when one of the modifier keys, such as “Shift”, “Control” or “Alt” is pressed or
released.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.update_repeat_info" class="method"><h4 class="code-header">fn <a href="#method.update_repeat_info" class="fn">update_repeat_info</a>(
&amp;mut self,
_conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
_qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
_keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
_info: <a class="enum" href="enum.RepeatInfo.html" title="enum cosmic::cctk::sctk::seat::keyboard::RepeatInfo">RepeatInfo</a>,
)</h4></section></summary><div class="docblock"><p>The keyboard has updated the rate and delay between repeating key inputs.</p>
<p>This function does nothing by default but is provided if a repeat mechanism outside of calloop is<br />
used.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_keymap" class="method"><h4 class="code-header">fn <a href="#method.update_keymap" class="fn">update_keymap</a>(
&amp;mut self,
_conn: &amp;<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
_qh: &amp;<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a>&lt;Self&gt;,
_keyboard: &amp;<a class="struct" href="../../reexports/client/protocol/wl_keyboard/struct.WlKeyboard.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_keyboard::WlKeyboard">WlKeyboard</a>,
_keymap: <a class="struct" href="struct.Keymap.html" title="struct cosmic::cctk::sctk::seat::keyboard::Keymap">Keymap</a>&lt;'_&gt;,
)</h4></section></summary><div class="docblock"><p>Keyboard keymap has been updated.</p>
<p><code>keymap.as_string()</code> can be used get the keymap as a string. It cannot be exposed directly
as an <code>xkbcommon::xkb::Keymap</code> due to the fact xkbcommon uses non-thread-safe reference
counting. But can be used to create an independent <code>Keymap</code>.</p>
<p>This is called after the default handler for keymap changes and does nothing by default.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../trait.impl/smithay_client_toolkit/seat/keyboard/trait.KeyboardHandler.js" async></script></section></div></main></body></html>