[][src]Crate sauron_core

This is the core of sauron

Re-exports

pub use dom::*;
pub use web_sys;
pub use wasm_bindgen;
pub use mt_dom;

Modules

dom

This module provides functionalities for manipulating the actual Document Object Model in the browser

html

Provides functions and macros to build html elements

prelude

Prelude simplifies the imports from sauron This imports the necessary functions to build a basic sauron app.

svg

Provides functions and macros to build svg elements

Macros

animate

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

animateMotion

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

animateTransform

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

circle

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

clipPath

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

declare_attributes

declare a function with the name corresponds to attribute name for easy usage in html elements Example:

defs

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

desc

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

discard

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

ellipse

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feBlend

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feColorMatrix

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feComponentTransfer

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feComposite

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feConvolveMatrix

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feDiffuseLighting

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feDisplacementMap

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feDistantLight

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feDropShadow

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feFlood

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feFuncA

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feFuncB

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feFuncG

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feFuncR

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feGaussianBlur

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feImage

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feMerge

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feMergeNode

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feMorphology

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feOffset

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

fePointLight

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feSpecularLighting

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feSpotLight

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feTile

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

feTurbulence

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

filter

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

foreignObject

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

g

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

hatch

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

hatchpath

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

image

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

linearGradient

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

marker

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

mask

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

mesh

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

meshgradient

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

meshpatch

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

meshrow

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

metadata

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

mpath

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

path

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

pattern

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

polygon

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

polyline

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

radialGradient

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

rect

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

set

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

solidcolor

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

stop

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

style

a utility function for convenient styling of elements

svg

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

switch

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

symbol

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

text

creates a text node Example

textPath

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

tspan

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

unknown

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

view

name is the supplied ident in declare_tags_macro This creates an alternative macro call to the tag function This has a more cleaner syntax since it removes the need for using vec![] for both the attributes and the children

Traits

Render

render node, elements to a writable buffer

Functions

diff

This is a sauron html specific functionality diff 2 nodes with attribute using &'static str instead of generic ATT

Type Definitions

Attribute

Attribute type used in sauron where the type of the Attribute name is &'static str

AttributeKey

attribute keys

Callback

Callback where Event type is supplied

Element

Element type with tag and attribute name type set to &'static str

Event

Map the Event to DomEvent, which are browser events

Namespace

namespace type in node, which could be change to an enum

Node

A simplified version of saurdon_vdom node, where we supplied the type for the tag which is a &'static str. The missing type is now only MSG which will be supplied by the users App code.

Patch

Patch as result of diffing the current_vdom and the new vdom. The tag and attribute name types is set to &'static str

Tag

tags are using static str for now, can also be enum tags