Skip to content

Commit

Permalink
Merge pull request #1635 from tarkah/fix/pub-count-fields
Browse files Browse the repository at this point in the history
Make count fields pub
  • Loading branch information
hecrj authored Jan 4, 2023
2 parents e7f06af + b2c81c1 commit b5e4e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/src/widget/operation/focusable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down

0 comments on commit b5e4e0e

Please sign in to comment.