pub struct View { /* private fields */ }Implementations§
Source§impl View
impl View
Sourcepub fn mark(self, name: &'static str) -> Self
pub fn mark(self, name: &'static str) -> Self
Name a part of an explicit static plan; not a DOM id or data key.
pub fn backend_options<T: 'static>(self, value: T) -> Self
Source§impl View
impl View
Sourcepub fn class(self, value: impl Into<Vary<String>>) -> Self
pub fn class(self, value: impl Into<Vary<String>>) -> Self
Set the complete whitespace-separated class list (last call wins).
Sourcepub fn class_fn(self, read: impl FnMut() -> String + 'static) -> Self
pub fn class_fn(self, read: impl FnMut() -> String + 'static) -> Self
Compute one property directly in its pure Binding.
pub fn style_fn(self, read: impl FnMut() -> Style + 'static) -> Self
pub fn style(self, value: impl Into<Vary<Style>>) -> Self
Sourcepub fn name(self, value: impl Into<Vary<String>>) -> Self
pub fn name(self, value: impl Into<Vary<String>>) -> Self
Accessible name. Plain inline/paragraph text uses content; decorative images have no accessible name. A named generic View becomes an accessible group without changing its layout box.
pub fn focus(self, mode: impl Into<Vary<FocusMode>>) -> Self
Sourcepub fn semantics(self, value: impl Into<Vary<Option<Box<Semantics>>>>) -> Self
pub fn semantics(self, value: impl Into<Vary<Option<Box<Semantics>>>>) -> Self
Finite composite-widget state and document-scoped relations.
pub fn on(self, kind: EventKind, handler: impl FnMut(Event) + 'static) -> Self
Source§impl View
impl View
Sourcepub fn document_part(self, part: DocumentPart) -> Self
pub fn document_part(self, part: DocumentPart) -> Self
Intrinsic document structure, installed before reactive metadata. Its kind cannot change on a live node; remount for a different document part.
Sourcepub fn field_part(self, part: FieldPart) -> Self
pub fn field_part(self, part: FieldPart) -> Self
Structural form kind is installed before reactive metadata bindings.
Sourcepub fn role(self, role: Role) -> Self
pub fn role(self, role: Role) -> Self
Structural role; controls, text and images retain their own semantics.
pub fn item(self, value: impl Into<Vary<Option<ItemPosition>>>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Send for View
impl !Sync for View
impl !UnwindSafe for View
impl Forget for View
impl Freeze for View
impl Move for View
impl Unpin for View
impl UnsafeUnpin for View
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