pub struct ComboboxPartState {
pub popup_open: bool,
pub pressed: bool,
pub placeholder: bool,
pub valid: bool,
pub invalid: bool,
pub dirty: bool,
pub touched: bool,
pub filled: bool,
pub focused: bool,
pub read_only: bool,
pub required: bool,
}Expand description
A copyable render-state snapshot for one unstyled combobox.
These are the same facts Base UI publishes on a combobox input as data-popup-open,
data-pressed, data-placeholder, data-valid, data-invalid, data-dirty,
data-touched, data-filled, data-focused, data-readonly, and data-required. Build one
with ComboboxState::state.
Fields§
§popup_open: boolWhether the suggestion surface is open.
pressed: boolWhether the trigger is currently held down.
placeholder: boolWhether no value is committed, so the input shows its placeholder.
valid: boolWhether the control currently satisfies its declared constraints.
invalid: boolWhether the application marked the control invalid.
dirty: boolWhether the value changed at least once since the last ComboboxState::reset_dirty.
touched: boolWhether the control has been focused and left at least once.
filled: boolWhether the control holds at least one committed value.
focused: boolWhether the input currently owns keyboard focus.
read_only: boolWhether the control refuses value changes while staying focusable.
required: boolWhether the control requires a value before submission.
Trait Implementations§
Source§impl Clone for ComboboxPartState
impl Clone for ComboboxPartState
impl Copy for ComboboxPartState
Source§impl Debug for ComboboxPartState
impl Debug for ComboboxPartState
Source§impl Default for ComboboxPartState
impl Default for ComboboxPartState
Source§impl PartialEq for ComboboxPartState
impl PartialEq for ComboboxPartState
impl StructuralPartialEq for ComboboxPartState
Auto Trait Implementations§
impl Forget for ComboboxPartState
impl Freeze for ComboboxPartState
impl Move for ComboboxPartState
impl RefUnwindSafe for ComboboxPartState
impl Send for ComboboxPartState
impl Sync for ComboboxPartState
impl Unpin for ComboboxPartState
impl UnsafeUnpin for ComboboxPartState
impl UnwindSafe for ComboboxPartState
Blanket Implementations§
impl<T> Action for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.