[][src]Enum azul_core::dom::NodeType

pub enum NodeType {
    Div,
    Body,
    Label(DomString),
    Text(TextId),
    Image(ImageId),
    GlTexture((GlCallback, RefAny)),
    IFrame((IFrameCallback, RefAny)),
}

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

DOM that gets passed its width / height during the layout

Implementations

impl NodeType[src]

pub fn get_path(&self) -> NodeTypePath[src]

Trait Implementations

impl Clone for NodeType[src]

impl Debug for NodeType[src]

impl Eq for NodeType[src]

impl FromIterator<NodeType> for Dom[src]

impl Hash for NodeType[src]

impl PartialEq<NodeType> for NodeType[src]

impl StructuralEq for NodeType[src]

impl StructuralPartialEq for NodeType[src]

Auto Trait Implementations

impl !RefUnwindSafe for NodeType

impl !Send for NodeType

impl !Sync for NodeType

impl Unpin for NodeType

impl !UnwindSafe for NodeType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.