Merge pull request #1635 from tarkah/fix/pub-count-fields

Make count fields pub
This commit is contained in:
Héctor Ramón 2023-01-04 19:31:37 +01:00 committed by GitHub
commit b5e4e0e2f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`].