summaryrefslogtreecommitdiffstats
path: root/native/src/user_interface.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-12 11:22:57 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-12 11:22:57 +0700
commit7ef0259a2cb7116496f438266a00b73d482eff8a (patch)
treeeebd879438633c25ee917c141b57839155325e05 /native/src/user_interface.rs
parentc85caff7a5b1ef78529c8d2a4f3f3cdd98301693 (diff)
downloadiced-7ef0259a2cb7116496f438266a00b73d482eff8a.tar.gz
iced-7ef0259a2cb7116496f438266a00b73d482eff8a.tar.bz2
iced-7ef0259a2cb7116496f438266a00b73d482eff8a.zip
Write missing docs for `user_interface` module
Diffstat (limited to '')
-rw-r--r--native/src/user_interface.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/user_interface.rs b/native/src/user_interface.rs
index b6bed5ed..4b1194be 100644
--- a/native/src/user_interface.rs
+++ b/native/src/user_interface.rs
@@ -1,3 +1,4 @@
+//! Implement your own event loop to drive a user interface.
use crate::event::{self, Event};
use crate::layout;
use crate::mouse;
@@ -568,8 +569,13 @@ impl Default for Cache {
}
}
+/// The resulting state after updating a [`UserInterface`].
#[derive(Debug, Clone, Copy)]
pub enum State {
+ /// The [`UserInterface`] is outdated and needs to be rebuilt.
Outdated,
+
+ /// The [`UserInterface`] is up-to-date and can be reused without
+ /// rebuilding.
Updated,
}