Skip to main content

Crate azul_core

Crate azul_core 

Source
Expand description

Shared datatypes for azul-* crates

Modules§

animation
Animation system Core data structures for configuring and tracking CSS animations
callbacks
Type definitions for various types of callbacks plus focus and scroll handling
debug
Unified debug logging system Unified Debug Logging System for Azul
diff
Algorithms to create git-like diffs between two doms in linear time DOM Reconciliation Module
dom
Dom construction, NodeData and NodeType management functions Defines the core Document Object Model (DOM) structures.
dom_table
Table layout support (anonymous box generation)
drag
Unified drag context for text selection, scrollbar, node, and window drags Unified drag context for all drag operations.
events
Event handling (mouse, keyboard, window events) Event and callback filtering module
geom
Geometry module for physical and logical sizes
gl
Contains OpenGL helper functions (to compile / link shaders)
gl_fxaa
FXAA (Fast Approximate Anti-Aliasing) shader implementation FXAA (Fast Approximate Anti-Aliasing) shader implementation.
glconst
OpenGL constants Constants for OpenGL 1.1
glyph
Type definitions for Glyphs
gpu
GPU value synchronization (colors, transforms) for WebRender preparation GPU value caching for CSS transforms and opacity.
hit_test
Hit-testing module
hit_test_tag
Type-safe hit-test tag system for WebRender integration Type-safe hit-test tag system for WebRender integration.
icon
Icon system for loading and resolving icons from fonts, images, or zip packs Generic icon provider system for Azul
id
Internal, arena-based storage for Dom nodes Node tree data structures and hierarchy management.
macros
Useful macros for implementing Azul APIs without duplicating code
menu
Types for handling menus (context menu, menubar) Menu system for context menus, dropdown menus, and application menus.
prop_cache
Cache for CSS Properties CSS property cache for efficient style resolution and animation.
refany
Type-erased reference wrapper (like Box<dyn Any> but for references) Type-erased, reference-counted smart pointer with runtime borrow checking.
resources
Functions to manage adding fonts + images, garbage collection
selection
Primitives for cursor and text selection handling Text selection and cursor positioning for inline content.
style
CSS cascading module DOM tree to CSS style tree cascading
styled_dom
StyledDom = CSSOM
svg
SVG module SVG rendering and path tessellation.
task
Async (task, thread, timer) helper functions Timer and thread management for asynchronous operations.
transform
CSS transform computation 3D transform matrix computations for CSS transforms.
ua_css
User-agent default stylesheet User-Agent Default Stylesheet for Azul
ui_solver
Handles the UI layout and UI layout solver
window
Window creation / interaction with the OS’ windowing API
xml
XML structures XML and XHTML parsing for declarative UI definitions.

Macros§

impl_callback
Implements Display, Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Hash for a Callback with a .cb and .ctx field.
impl_callback_simple
Macro to implement callback traits for simple system callbacks (no callable field)
impl_display
Implement Display for an enum.
impl_from
Implement the From trait for any type.
impl_task_api
Implements functions for CallbackInfo and Info, to prevent duplicating the functions
log_debug
log_error
log_info
log_trace
Convenience macro for logging with automatic category and format
log_warn

Type Aliases§

FastBTreeSet
FastHashMap