pub enum NodeType {
Div,
Body,
Label(DomString),
Text(TextId),
Image(ImageId),
GlTexture((GlCallback, RefAny)),
IFrame((IFrameCallback, RefAny)),
}
Expand description
List of core DOM node types built-into by azul
.
Variants§
Div
Regular div with no particular type of data attached
Body
Same as div, but only for the root node
Label(DomString)
A small label that can be (optionally) be selectable with the mouse
Text(TextId)
Larger amount of text, that has to be cached
Image(ImageId)
An image that is rendered by WebRender. The id is acquired by the
AppState::add_image()
function
GlTexture((GlCallback, RefAny))
OpenGL texture. The Svg
widget deserizalizes itself into a texture
Equality and Hash values are only checked by the OpenGl texture ID,
Azul does not check that the contents of two textures are the same
IFrame((IFrameCallback, RefAny))
DOM that gets passed its width / height during the layout
Implementations§
Trait Implementations§
Source§impl FromIterator<NodeType> for Dom
impl FromIterator<NodeType> for Dom
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl !RefUnwindSafe for NodeType
impl !Send for NodeType
impl !Sync for NodeType
impl Unpin for NodeType
impl !UnwindSafe for NodeType
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