pub fn set_state<L: ListViewer + ?Sized>(
this: &mut L,
flag: StateFlag,
enable: bool,
ctx: &mut Context<'_>,
)Expand description
Update a state flag and propagate scrollbar visibility.
Applies flag/enable to the embedded ViewState. On a Focused change
it also broadcasts Command::RECEIVED_FOCUS or Command::RELEASED_FOCUS.
On Active, Selected, or Visible changes it shows or hides both scroll
bars: bars are visible iff active && visible (unlike the scroller,
which uses active || selected). Concrete list widgets call this from their
View::set_state implementation.