Skip to main content

Crate euv_core

Crate euv_core 

Source
Expand description

euv

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.

Structs§

AttrValueAdapter
Adapts an arbitrary attribute value expression into an AttributeValue.
AttributeEntry
Represents a single attribute on a virtual DOM node.
CssClass
Represents a CSS class with a name, its style declarations, and optional pseudo rules.
DynamicNode
A closure-based dynamic node that re-renders when its dependency signals change.
EventAdapter
Adapts various event value types into an AttributeValue for event attributes.
HookContext
Manages hook state across render cycles for a DynamicNode.
HookContextCell
A Sync wrapper for single-threaded global HookContextInner access.
HookContextInner
Internal storage for hook state, holding boxed Any values.
MediaRule
Represents a CSS @media rule attached to a class.
NativeChangeEvent
Data associated with a change event.
NativeClipboardEvent
Data associated with a clipboard event.
NativeDragEvent
Data associated with a drag event.
NativeEventHandler
A wrapper around an event callback.
NativeFocusEvent
Data associated with a focus event.
NativeInputEvent
Data associated with an input event.
NativeKeyboardEvent
Data associated with a keyboard event.
NativeMediaEvent
Data associated with a media event.
NativeMouseEvent
Data associated with a mouse event.
NativeSubmitEvent
Data associated with a form submit event.
NativeTouchEvent
Data associated with a touch event.
NativeWheelEvent
Data associated with a wheel event.
PseudoRule
Represents a CSS pseudo-class or pseudo-element rule attached to a class.
Renderer
Manages the rendering of virtual DOM nodes to the real DOM.
Signal
A reactive signal handle.
SignalCell
A Sync wrapper for single-threaded global Signal access.
Style
A collection of CSS style properties that can be converted to a style string.
StyleProperty
Represents a CSS style property.
TextNode
Represents a text node in the virtual DOM.

Enums§

AttributeValue
Represents the value of an HTML attribute.
NativeEvent
Represents different kinds of UI events.
NativeEventName
Represents the name of a DOM event.
Tag
Represents the type of an HTML tag or a component.
VirtualNode
Represents a node in the virtual DOM tree.

Traits§

AsNode
Trait for types that can be converted into a VirtualNode for use in HTML expressions.
AsReactiveText
Trait for types that can be converted into a reactive text VirtualNode.
IntoCallbackAttribute
Trait for types that can be converted into a callback attribute value.
IntoNode
Trait for converting a value into a VirtualNode by consuming it.
IntoReactiveString
Trait for converting a value into a string for reactive attribute updates.
IntoReactiveValue
Trait for types that can be converted into a reactive string value.

Functions§

create_dynamic_node
Constructs a VirtualNode::Dynamic from a render closure with hook context management.
create_dynamic_node_with_context
Constructs a VirtualNode::Dynamic for match expressions where arm hook isolation is required. The render closure receives a &mut HookContext so it can call set_arm_changed before each arm body.
create_hook_context
Creates a new HookContext allocated via Box::leak.
create_reactive_attr_signal
Creates a reactive attribute AttributeValue for conditional attribute values.
create_reactive_style_attribute
Creates a reactive style AttributeValue that updates when signals change.
get_current_hook_context
Returns the currently active HookContext.
mount
Mounts the given virtual DOM tree to a specific element matched by a CSS selector.
mount_body
Mounts the given virtual DOM tree to the document body.
subscribe_attr_signal
Subscribes an attribute signal to the global __euv_signal_update__ event so that whenever any signal changes, the attribute value is recomputed and the attribute signal is updated. This enables reactive if conditions inside any HTML attribute, including style, class, and others.
use_signal
Creates a new reactive signal with the given initial value.
with_hook_context
Runs a closure with the given HookContext set as the active context.
with_suppressed_updates
Executes a closure with signal update scheduling suppressed.