pub struct ControlElement {
pub class: ElementClass,
pub key: Option<Key>,
pub name: Option<String>,
pub classes: Vec<String>,
pub props: Vec<PropEntry>,
pub handlers: Vec<Attach>,
pub children: Vec<Element>,
pub on_mount: Vec<Attach>,
}Expand description
An element of a control class.
Fields§
§class: ElementClassThe class of the control.
key: Option<Key>The key among its siblings.
name: Option<String>Name of the control.
classes: Vec<String>Style classes of the control.
props: Vec<PropEntry>Values of properties, in the order they were given.
handlers: Vec<Attach>Handlers.
children: Vec<Element>Children, placed into the content of the control (see
Element::mount).
on_mount: Vec<Attach>Called with the control once it was made and given its values.
Implementations§
Source§impl ControlElement
impl ControlElement
Sourcepub fn new(class: ElementClass) -> Self
pub fn new(class: ElementClass) -> Self
An element of class with nothing set.
Trait Implementations§
Source§impl Clone for ControlElement
impl Clone for ControlElement
Auto Trait Implementations§
impl !RefUnwindSafe for ControlElement
impl !Send for ControlElement
impl !Sync for ControlElement
impl !UnwindSafe for ControlElement
impl Freeze for ControlElement
impl Unpin for ControlElement
impl UnsafeUnpin for ControlElement
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromValue<Option<T>> for Twhere
T: Clone,
impl<T> FromValue<Option<T>> for Twhere
T: Clone,
Source§fn from_value(value: &Option<T>) -> Option<T>
fn from_value(value: &Option<T>) -> Option<T>
The value of the signal, or
None when the value of the property has
none (the signal keeps its value).Source§impl<T> FromValue<T> for Twhere
T: Clone,
impl<T> FromValue<T> for Twhere
T: Clone,
Source§fn from_value(value: &T) -> Option<T>
fn from_value(value: &T) -> Option<T>
The value of the signal, or
None when the value of the property has
none (the signal keeps its value).