pub struct Toggles {
pub id: String,
pub label: String,
pub buttons: Vec<ToggleButton>,
}Expand description
A Widget::Toggles: icon buttons in a row under one label, each lit
while on and its words shown on hover, the way an editor shows its
alignment and wrapping. A click comes back as PanelEvent::Button with
the button’s id; whether lighting one puts the others out is the
bench’s to decide.
Fields§
§id: String§label: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Toggles
impl<'de> Deserialize<'de> for Toggles
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Toggles
Auto Trait Implementations§
impl Forget for Toggles
impl Freeze for Toggles
impl Move for Toggles
impl RefUnwindSafe for Toggles
impl Send for Toggles
impl Sync for Toggles
impl Unpin for Toggles
impl UnsafeUnpin for Toggles
impl UnwindSafe for Toggles
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