[][src]Module azul_core::dom

Dom construction, NodeData and NodeType management functions

Re-exports

pub use crate::id_tree::NodeHierarchy;
pub use crate::id_tree::Node;

Structs

CompactDom

Same as Dom, but arena-based for more efficient memory layout

Dom

The document model, similar to HTML. This is a create-only structure, you don't actually read anything back

DomHash

Calculated hash of a DOM node, used for querying attributes of the DOM node

DomId

DomID - used for identifying different DOMs (for example IFrameCallbacks) have a different DomId than the root DOM

DomPtr

Pointer to rust-allocated Box<Dom<*mut c_void>> struct

NodeData

Represents one single DOM node (node type, classes, ids and callbacks are stored here)

NodeId

A node identifier within a particular Arena.

ScrollTagId

Same as the TagId, but only for scrollable nodes

TagId

Unique Ttag" that is used to annotate which rectangles are relevant for hit-testing

Enums

DomString

Most strings are known at compile time, spares a bit of heap allocations - for &'static str, simply stores the pointer, instead of converting it into a String. This is good for class names or IDs, whose content rarely changes.

EventFilter

Sets the target for what events can reach the callbacks specifically.

FocusEventFilter

Event filter similar to HoverEventFilter that only fires when the element is focused

HoverEventFilter

Event filter that only fires when an element is hovered over

NodeType

List of core DOM node types built-into by azul.

NotEventFilter

The inverse of an onclick event filter, fires when an item is not hovered / focused. This is useful for cleanly implementing things like popover dialogs or dropdown boxes that want to close when the user clicks any where but the item itself.

On

When to call a callback action - On::MouseOver, On::MouseOut, etc.

TabIndex
WindowEventFilter

Event filter that fires when any action fires on the entire window (regardless of whether any element is hovered or focused over).