Merge pull request #1635 from tarkah/fix/pub-count-fields
Make count fields pub
This commit is contained in:
commit
b5e4e0e2f5
1 changed files with 2 additions and 2 deletions
|
|
@ -18,10 +18,10 @@ pub trait Focusable {
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
|
||||||
pub struct Count {
|
pub struct Count {
|
||||||
/// The index of the current focused widget, if any.
|
/// The index of the current focused widget, if any.
|
||||||
focused: Option<usize>,
|
pub focused: Option<usize>,
|
||||||
|
|
||||||
/// The total amount of focusable widgets.
|
/// The total amount of focusable widgets.
|
||||||
total: usize,
|
pub total: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Produces an [`Operation`] that focuses the widget with the given [`Id`].
|
/// Produces an [`Operation`] that focuses the widget with the given [`Id`].
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue