[−][src]Type Definition azul_core::callbacks::LayoutCallback
type LayoutCallback = fn(_: RefAnyPtr, _: LayoutInfoPtr) -> DomPtr;
Callback function pointer (has to be a function pointer in order to be compatible with C APIs later on).
NOTE: The original callback was fn(&self, LayoutInfo) -> Dom
which then evolved to fn(&RefAny, LayoutInfo) -> Dom
.
The indirection is necessary because of the memory management
around the C API
See azul-core/ui_state.rs:298 for how the memory is managed across the callback boundary.