pub struct ChoiceState {
pub area: Rect,
pub z_areas: [ZRect; 2],
pub item_area: Rect,
pub button_area: Rect,
pub item_areas: Vec<Rect>,
pub selected: Option<usize>,
pub scroll: ScrollState,
pub popup: PopupCoreState,
pub focus: FocusFlag,
pub non_exhaustive: NonExhaustive,
}Expand description
State.
Fields§
§area: RectTotal area.
z_areas: [ZRect; 2]All areas
item_area: RectSelected item
Button
item_areas: Vec<Rect>Visible items
selected: Option<usize>Select item.
scroll: ScrollStateVertical scroll.
popup: PopupCoreStatePopup state
focus: FocusFlagFocus flag.
non_exhaustive: NonExhaustiveImplementations§
Trait Implementations§
source§impl Clone for ChoiceState
impl Clone for ChoiceState
source§fn clone(&self) -> ChoiceState
fn clone(&self) -> ChoiceState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ChoiceState
impl Debug for ChoiceState
source§impl Default for ChoiceState
impl Default for ChoiceState
source§impl HandleEvent<Event, Regular, Outcome> for ChoiceState
impl HandleEvent<Event, Regular, Outcome> for ChoiceState
source§impl HasFocus for ChoiceState
impl HasFocus for ChoiceState
source§fn z_areas(&self) -> &[ZRect]
fn z_areas(&self) -> &[ZRect]
The widget might have several disjointed/overlapping areas.
This is the case if it is showing a popup, but there might be other causes. Read more
source§fn build(&self, builder: &mut FocusBuilder)
fn build(&self, builder: &mut FocusBuilder)
Build the focus-structure for the container.
Declares how the widget interacts with focus. Read more
source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Focused?
source§fn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
Just lost focus.
source§fn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
Just gained focus.
Auto Trait Implementations§
impl !Freeze for ChoiceState
impl !RefUnwindSafe for ChoiceState
impl !Send for ChoiceState
impl !Sync for ChoiceState
impl Unpin for ChoiceState
impl !UnwindSafe for ChoiceState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more