//! - **Core vs Layout callback split**: `CoreCallbackType` and `CoreRenderImageCallbackType` store
//! - **FFI callable pattern**: Callback structs carry an optional `ctx: OptionRefAny` field that
//! in `cb` extracts both the user data and the foreign callable from `RefAny` and dispatches the
pub type SelectionTweenCallbackType = extern "C" fn(RefAny, SelectionTweenInfo) -> LogicalRectVec;
pub extern "C" fn default_caret_tween(_data: RefAny, info: CaretTweenInfo) -> LogicalRect {
pub const fn with_dom(dom: Dom, materialized: LogicalRect, virtual_rect: LogicalRect) -> Self {
/// `LayoutCallbackInfo::new()` from 6 to 2, making the API more maintainable and easier to extend.
/// Core callback type - uses usize instead of function pointer to avoid circular dependencies.