Make count fields pub

This commit is contained in:
Cory Forsstrom 2023-01-04 09:50:56 -08:00
parent f641e20f7f
commit b2c81c163d
No known key found for this signature in database
GPG key ID: 1DFE170A4415C9F5

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