diff options
author | tcmal <me@aria.rip> | 2024-06-21 22:13:45 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-06-21 22:13:45 +0100 |
commit | 210ea31e39370336464fec76368aa77bf0411681 (patch) | |
tree | 68288fd85ed0e3da6d4bab8b1b52465ce39ea6f4 /src/conn_info | |
parent | 1c893ed1ff1dc26f4dcc425e756d56f752142ebd (diff) |
documentation cleanup
Diffstat (limited to 'src/conn_info')
-rw-r--r-- | src/conn_info/atoms.rs | 1 | ||||
-rw-r--r-- | src/conn_info/mod.rs | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/conn_info/atoms.rs b/src/conn_info/atoms.rs index 9b3a78a..ca715ef 100644 --- a/src/conn_info/atoms.rs +++ b/src/conn_info/atoms.rs @@ -1,4 +1,5 @@ xcb::atoms_struct! { + /// Interned atoms, mostly for window properties #[derive(Copy, Clone, Debug)] pub struct Atoms { pub wm_protocols => b"WM_PROTOCOLS" only_if_exists = false, diff --git a/src/conn_info/mod.rs b/src/conn_info/mod.rs index 183f691..c1d768d 100644 --- a/src/conn_info/mod.rs +++ b/src/conn_info/mod.rs @@ -1,3 +1,5 @@ +//! Global resources and utilities + use std::fmt::Debug; use xcb::{ x::{ @@ -7,9 +9,13 @@ use xcb::{ Connection as RawConnection, Cookie, VoidCookieChecked, }; +#[doc(hidden)] mod atoms; +#[doc(hidden)] mod colours; +#[doc(hidden)] mod cursors; +#[doc(hidden)] mod keys; pub use self::{ @@ -49,6 +55,7 @@ pub struct Connection<'a> { pub keyboard_state: KeyboardInfo, } +/// Helper macro to log a request / cookie when debug_assertions are on macro_rules! debug_req { ($req:ident) => { #[cfg(debug_assertions)] |