[−][src]Struct hobo::BasicElement
This is the most common kind of hobo element - both children and event handlign
Fields
element: T
children: Vec<Box<dyn Element>>
event_handlers: EventHandlers
Implementations
impl<T: AsRef<Element> + 'static> BasicElement<T>
[src]
impl<T: AsRef<Node> + AsRef<Element> + 'static + JsCast> BasicElement<T>
[src]
pub fn clone_html(&self) -> Self
[src]
impl BasicElement<HtmlHtmlElement>
[src]
impl BasicElement<HtmlBaseElement>
[src]
impl BasicElement<HtmlHeadElement>
[src]
impl BasicElement<HtmlLinkElement>
[src]
impl BasicElement<HtmlMetaElement>
[src]
impl BasicElement<HtmlStyleElement>
[src]
impl BasicElement<HtmlTitleElement>
[src]
impl BasicElement<HtmlBodyElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlHeadingElement>
[src]
impl BasicElement<HtmlHeadingElement>
[src]
impl BasicElement<HtmlHeadingElement>
[src]
impl BasicElement<HtmlHeadingElement>
[src]
impl BasicElement<HtmlHeadingElement>
[src]
impl BasicElement<HtmlHeadingElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlQuoteElement>
[src]
pub fn blockquote() -> Self
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlDivElement>
[src]
impl BasicElement<HtmlDListElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
pub fn figcaption() -> Self
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlHrElement>
[src]
impl BasicElement<HtmlLiElement>
[src]
impl BasicElement<HtmlOListElement>
[src]
impl BasicElement<HtmlParagraphElement>
[src]
impl BasicElement<HtmlPreElement>
[src]
impl BasicElement<HtmlUListElement>
[src]
impl BasicElement<HtmlAnchorElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlBrElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlDataElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlQuoteElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlSpanElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlTimeElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlAreaElement>
[src]
impl BasicElement<HtmlAudioElement>
[src]
impl BasicElement<HtmlImageElement>
[src]
impl BasicElement<HtmlMapElement>
[src]
impl BasicElement<HtmlTrackElement>
[src]
impl BasicElement<HtmlVideoElement>
[src]
impl BasicElement<HtmlEmbedElement>
[src]
impl BasicElement<HtmlIFrameElement>
[src]
impl BasicElement<HtmlObjectElement>
[src]
impl BasicElement<HtmlParamElement>
[src]
impl BasicElement<HtmlPictureElement>
[src]
impl BasicElement<HtmlSourceElement>
[src]
impl BasicElement<HtmlCanvasElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlScriptElement>
[src]
impl BasicElement<HtmlModElement>
[src]
impl BasicElement<HtmlModElement>
[src]
impl BasicElement<HtmlTableCaptionElement>
[src]
impl BasicElement<HtmlTableColElement>
[src]
impl BasicElement<HtmlTableColElement>
[src]
impl BasicElement<HtmlTableElement>
[src]
impl BasicElement<HtmlTableSectionElement>
[src]
impl BasicElement<HtmlTableCellElement>
[src]
impl BasicElement<HtmlTableSectionElement>
[src]
impl BasicElement<HtmlTableCellElement>
[src]
impl BasicElement<HtmlTableSectionElement>
[src]
impl BasicElement<HtmlTableRowElement>
[src]
impl BasicElement<HtmlButtonElement>
[src]
impl BasicElement<HtmlDataListElement>
[src]
impl BasicElement<HtmlFieldSetElement>
[src]
impl BasicElement<HtmlFormElement>
[src]
impl BasicElement<HtmlInputElement>
[src]
impl BasicElement<HtmlLabelElement>
[src]
impl BasicElement<HtmlLegendElement>
[src]
impl BasicElement<HtmlMeterElement>
[src]
impl BasicElement<HtmlOptGroupElement>
[src]
impl BasicElement<HtmlOptionElement>
[src]
impl BasicElement<HtmlOutputElement>
[src]
impl BasicElement<HtmlProgressElement>
[src]
impl BasicElement<HtmlSelectElement>
[src]
impl BasicElement<HtmlTextAreaElement>
[src]
impl BasicElement<HtmlDetailsElement>
[src]
impl BasicElement<HtmlDialogElement>
[src]
impl BasicElement<HtmlMenuElement>
[src]
impl BasicElement<HtmlElement>
[src]
impl BasicElement<HtmlSlotElement>
[src]
impl BasicElement<HtmlTemplateElement>
[src]
impl BasicElement<SvgsvgElement>
[src]
impl BasicElement<SvgAnimateElement>
[src]
impl BasicElement<SvgAnimateMotionElement>
[src]
pub fn animateMotion() -> Self
[src]
impl BasicElement<SvgAnimateTransformElement>
[src]
pub fn animateTransform() -> Self
[src]
impl BasicElement<SvgCircleElement>
[src]
impl BasicElement<SvgClipPathElement>
[src]
impl BasicElement<SvgDefsElement>
[src]
impl BasicElement<SvgDescElement>
[src]
impl BasicElement<SvgEllipseElement>
[src]
impl BasicElement<SvgfeBlendElement>
[src]
impl BasicElement<SvgfeColorMatrixElement>
[src]
pub fn feColorMatrix() -> Self
[src]
impl BasicElement<SvgfeComponentTransferElement>
[src]
pub fn feComponentTransfer() -> Self
[src]
impl BasicElement<SvgfeCompositeElement>
[src]
pub fn feComposite() -> Self
[src]
impl BasicElement<SvgfeConvolveMatrixElement>
[src]
pub fn feConvolveMatrix() -> Self
[src]
impl BasicElement<SvgfeDiffuseLightingElement>
[src]
pub fn feDiffuseLighting() -> Self
[src]
impl BasicElement<SvgfeDisplacementMapElement>
[src]
pub fn feDisplacementMap() -> Self
[src]
impl BasicElement<SvgfeDistantLightElement>
[src]
pub fn feDistantLight() -> Self
[src]
impl BasicElement<SvgfeDropShadowElement>
[src]
pub fn feDropShadow() -> Self
[src]
impl BasicElement<SvgfeFloodElement>
[src]
impl BasicElement<SvgfeFuncAElement>
[src]
impl BasicElement<SvgfeFuncBElement>
[src]
impl BasicElement<SvgfeFuncGElement>
[src]
impl BasicElement<SvgfeFuncRElement>
[src]
impl BasicElement<SvgfeGaussianBlurElement>
[src]
pub fn feGaussianBlur() -> Self
[src]
impl BasicElement<SvgfeImageElement>
[src]
impl BasicElement<SvgfeMergeElement>
[src]
impl BasicElement<SvgfeMergeNodeElement>
[src]
pub fn feMergeNode() -> Self
[src]
impl BasicElement<SvgfeMorphologyElement>
[src]
pub fn feMorphology() -> Self
[src]
impl BasicElement<SvgfeOffsetElement>
[src]
impl BasicElement<SvgfePointLightElement>
[src]
pub fn fePointLight() -> Self
[src]
impl BasicElement<SvgfeSpecularLightingElement>
[src]
pub fn feSpecularLighting() -> Self
[src]
impl BasicElement<SvgfeSpotLightElement>
[src]
pub fn feSpotLight() -> Self
[src]
impl BasicElement<SvgfeTileElement>
[src]
impl BasicElement<SvgfeTurbulenceElement>
[src]
pub fn feTurbulence() -> Self
[src]
impl BasicElement<SvgFilterElement>
[src]
impl BasicElement<SvgForeignObjectElement>
[src]
pub fn foreignObject() -> Self
[src]
impl BasicElement<SvggElement>
[src]
impl BasicElement<SvgImageElement>
[src]
impl BasicElement<SvgLineElement>
[src]
impl BasicElement<SvgLinearGradientElement>
[src]
pub fn linearGradient() -> Self
[src]
impl BasicElement<SvgMarkerElement>
[src]
impl BasicElement<SvgMaskElement>
[src]
impl BasicElement<SvgMetadataElement>
[src]
impl BasicElement<SvgmPathElement>
[src]
impl BasicElement<SvgPathElement>
[src]
impl BasicElement<SvgPatternElement>
[src]
impl BasicElement<SvgPolygonElement>
[src]
impl BasicElement<SvgPolylineElement>
[src]
impl BasicElement<SvgRadialGradientElement>
[src]
pub fn radialGradient() -> Self
[src]
impl BasicElement<SvgRectElement>
[src]
impl BasicElement<SvgSetElement>
[src]
impl BasicElement<SvgStopElement>
[src]
impl BasicElement<SvgSwitchElement>
[src]
impl BasicElement<SvgSymbolElement>
[src]
impl BasicElement<SvgTextElement>
[src]
impl BasicElement<SvgTextPathElement>
[src]
impl BasicElement<SvgtSpanElement>
[src]
impl BasicElement<SvgUseElement>
[src]
impl BasicElement<SvgViewElement>
[src]
Trait Implementations
impl<T: AsRef<Element> + 'static> Container for BasicElement<T>
[src]
fn children(&self) -> &Vec<Box<dyn Element>>
[src]
fn children_mut(&mut self) -> &mut Vec<Box<dyn Element>>
[src]
fn attach_child_box(&mut self, child: Box<dyn Element + 'static>)
[src]
fn add_child(&mut self, child: impl Element + 'static)
[src]
fn add_child_ref(&self, child: &impl Element + 'static)
[src]
fn child(self, child: impl Element + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn child_ref(self, child: &impl Element + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn with_children<Item>(self, children: impl IntoIterator<Item = Item>) -> Self where
Self: Sized,
Item: Element + 'static,
[src]
Self: Sized,
Item: Element + 'static,
fn with_children_refs<'a, Item>(
self,
children: impl IntoIterator<Item = &'a Item>
) -> Self where
Self: Sized,
Item: Element + 'static,
[src]
self,
children: impl IntoIterator<Item = &'a Item>
) -> Self where
Self: Sized,
Item: Element + 'static,
impl<T: AsRef<Element> + 'static> Drop for BasicElement<T>
[src]
impl<T: AsRef<Element> + 'static> Element for BasicElement<T>
[src]
fn element(&self) -> Cow<Element>
[src]
fn type_class_string() -> String where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn class<'a>(self, style: impl Into<Cow<'a, AtRules>>) -> Self where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn style<'a>(self, style: impl Into<Cow<'a, [Property]>>) -> Self where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn attr<'a>(
self,
key: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>
) -> Self where
Self: Sized + 'static,
[src]
self,
key: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>
) -> Self where
Self: Sized + 'static,
fn set_attr<'a>(
&self,
key: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>
) where
Self: Sized + 'static,
[src]
&self,
key: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>
) where
Self: Sized + 'static,
fn bool_attr<'a>(self, key: impl Into<Cow<'a, str>>) -> Self where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn set_bool_attr<'a>(&self, key: impl Into<Cow<'a, str>>) where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn set_class<'a>(&self, style: impl Into<Cow<'a, AtRules>>) -> &Self where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn set_style<'a>(&self, style: impl Into<Cow<'a, [Property]>>) where
Self: Sized,
[src]
Self: Sized,
fn remove_style(&self)
[src]
fn add_class<'a>(self, style: impl Into<Cow<'a, AtRules>>) -> Self where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
impl<T: AsRef<Element> + 'static> EventTarget for BasicElement<T>
[src]
fn event_handlers(&self) -> RefMut<Vec<EventHandler>>
[src]
fn add_on_click(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_click_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_click(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_click_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_context_menu(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_context_menu_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_context_menu(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_context_menu_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_dbl_click(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_dbl_click_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_dbl_click(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_dbl_click_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_down(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_down_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_down(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_down_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_enter(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_enter_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_enter(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_enter_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_leave(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_leave_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_leave(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_leave_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_move(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_move_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_move(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_move_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_over(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_over_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_over(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_over_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_out(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_out_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_out(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_out_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_mouse_up(&self, f: impl FnMut(MouseEvent) + 'static)
[src]
fn add_on_mouse_up_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
)
fn on_mouse_up(self, f: impl FnMut(MouseEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_mouse_up_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, MouseEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_key_down(&self, f: impl FnMut(KeyboardEvent) + 'static)
[src]
fn add_on_key_down_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
)
fn on_key_down(self, f: impl FnMut(KeyboardEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_key_down_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_key_up(&self, f: impl FnMut(KeyboardEvent) + 'static)
[src]
fn add_on_key_up_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
)
fn on_key_up(self, f: impl FnMut(KeyboardEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_key_up_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, KeyboardEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_change(&self, f: impl FnMut(Event) + 'static)
[src]
fn add_on_change_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
)
fn on_change(self, f: impl FnMut(Event) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_change_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
) -> Self where
Self: Sized,
fn add_on_scroll(&self, f: impl FnMut(Event) + 'static)
[src]
fn add_on_scroll_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
)
fn on_scroll(self, f: impl FnMut(Event) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_scroll_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, Event) + 'static
) -> Self where
Self: Sized,
fn add_on_blur(&self, f: impl FnMut(FocusEvent) + 'static)
[src]
fn add_on_blur_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
)
fn on_blur(self, f: impl FnMut(FocusEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_blur_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
) -> Self where
Self: Sized,
fn add_on_focus(&self, f: impl FnMut(FocusEvent) + 'static)
[src]
fn add_on_focus_mut<T: 'static>(
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
)
[src]
&self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
)
fn on_focus(self, f: impl FnMut(FocusEvent) + 'static) -> Self where
Self: Sized,
[src]
Self: Sized,
fn on_focus_mut<T: 'static>(
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
) -> Self where
Self: Sized,
[src]
self,
this: &Rc<MaybeUninit<RefCell<T>>>,
f: impl FnMut(&mut T, FocusEvent) + 'static
) -> Self where
Self: Sized,
impl<'a> From<Document<'a>> for BasicElement<SvgElement>
[src]
impl<'a, 'b> From<Node<'a, 'b>> for BasicElement<SvgElement>
[src]
impl<T: AsRef<Element> + 'static> RawElement for BasicElement<T>
[src]
type RawElementType = T
fn raw_element(&self) -> &T
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for BasicElement<T>
impl<T> !Send for BasicElement<T>
impl<T> !Sync for BasicElement<T>
impl<T> Unpin for BasicElement<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for BasicElement<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, E> SetText<E> for T where
E: AsRef<Element> + AsRef<HtmlElement>,
T: RawElement<RawElementType = E>,
[src]
E: AsRef<Element> + AsRef<HtmlElement>,
T: RawElement<RawElementType = E>,
fn set_text<'a>(&self, x: impl Into<Cow<'a, str>>)
[src]
fn text<'a>(self, x: impl Into<Cow<'a, str>>) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,