summaryrefslogtreecommitdiffstats
path: root/native/src/widget/operation/focusable.rs
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2023-01-04 09:50:56 -0800
committerLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2023-01-04 09:50:56 -0800
commitb2c81c163d5cb17c3931db1a807c788b19f4b7c0 (patch)
treea310b276eff2f29203c91ad5e7a02f5f428e86fe /native/src/widget/operation/focusable.rs
parentf641e20f7fb43932bb30776c607fe3745311ccd6 (diff)
downloadiced-b2c81c163d5cb17c3931db1a807c788b19f4b7c0.tar.gz
iced-b2c81c163d5cb17c3931db1a807c788b19f4b7c0.tar.bz2
iced-b2c81c163d5cb17c3931db1a807c788b19f4b7c0.zip
Make count fields pub
Diffstat (limited to 'native/src/widget/operation/focusable.rs')
-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`].