Struct BarChipProps
pub struct BarChipProps {
pub name: String,
pub label: Option<String>,
pub icon: Option<Icon>,
pub trailing: Option<Icon>,
pub who: Vec<Person>,
pub open: bool,
pub focused: bool,
pub label_width: Option<f64>,
pub tone: Option<Person>,
pub press: Event,
}Expand description
One bar control that stands for people: their faces, a label and a press. A chip with faces
opens who is here, an invite opens the host’s own invite flow; a press reaches the view’s
press event, which is the same action the palette, scripts and agents invoke.
Fields§
§name: StringWhat the chip is for assistive technology (and its tooltip when it shows only a glyph).
label: Option<String>The words beside the faces: “Editing”, “Invite”.
icon: Option<Icon>A glyph before the faces: a watch, an invitation.
trailing: Option<Icon>A trailing glyph: the chevron of a chip that opens a panel.
who: Vec<Person>Who it stands for, in order: the faces it shows, then a count for everyone past them.
open: boolThe chip’s panel is open: it holds the whole lift.
focused: boolKeyboard focus. The ring shows only while focus is visible.
label_width: Option<f64>The most the label may grow to before it elides.
tone: Option<Person>A person whose presence colour washes the chip’s body: who the state it says is about.
press: EventA press: the chip’s own action.
Trait Implementations§
§impl Component for BarChipProps
impl Component for BarChipProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<BarChipProps, Error>
fn from_source(source: &mut dyn Source) -> Result<BarChipProps, Error>
source gives. Read more§impl Default for BarChipProps
impl Default for BarChipProps
§fn default() -> BarChipProps
fn default() -> BarChipProps
Auto Trait Implementations§
impl Freeze for BarChipProps
impl !RefUnwindSafe for BarChipProps
impl !Send for BarChipProps
impl !Sync for BarChipProps
impl Unpin for BarChipProps
impl UnsafeUnpin for BarChipProps
impl !UnwindSafe for BarChipProps
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§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>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§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.§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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