summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-01-04 19:31:37 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-04 19:31:37 +0100
commitb5e4e0e2f52a1c329214a9a00f03f0ab0992fdb6 (patch)
treeecece8ff90413eac87d298b6e38555e00f26f621 /native
parente7f06af873d9622ddd179bd5165ddeec52e39d97 (diff)
parentb2c81c163d5cb17c3931db1a807c788b19f4b7c0 (diff)
downloadiced-b5e4e0e2f52a1c329214a9a00f03f0ab0992fdb6.tar.gz
iced-b5e4e0e2f52a1c329214a9a00f03f0ab0992fdb6.tar.bz2
iced-b5e4e0e2f52a1c329214a9a00f03f0ab0992fdb6.zip
Merge pull request #1635 from tarkah/fix/pub-count-fields
Make count fields pub
Diffstat (limited to '')
-rw-r--r--native/src/widget/operation/focusable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/operation/focusable.rs b/native/src/widget/operation/focusable.rs
index 0067006b..312e4894 100644
--- a/native/src/widget/operation/focusable.rs
+++ b/native/src/widget/operation/focusable.rs
@@ -18,10 +18,10 @@ pub trait Focusable {
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct Count {
/// The index of the current focused widget, if any.
- focused: Option<usize>,
+ pub focused: Option<usize>,
/// The total amount of focusable widgets.
- total: usize,
+ pub total: usize,
}
/// Produces an [`Operation`] that focuses the widget with the given [`Id`].