Expand description
Callback handling for layout events
This module provides the CallbackInfo struct and related types for handling UI callbacks. Callbacks need access to layout information (node sizes, positions, hierarchy), which is why this module lives in azul-layout instead of azul-core.
Structs§
- Call
Callbacks Result - Result of calling callbacks, containing all state changes
- Callback
- Stores a function pointer that is executed when the given UI element is hit
- Callback
Info - CallbackInfo is a lightweight wrapper around pointers to stack-local data. It can be safely copied because it only contains pointers - the underlying data lives on the stack and outlives the callback invocation. This allows callbacks to “consume” CallbackInfo by value while the caller retains access to the same underlying data.
- Callback
Info RefData - Information about the callback that is passed to the callback whenever a callback is invoked
- Delete
Result - FFI-safe wrapper for delete inspection result (range_to_delete, deleted_text)
- External
System Callbacks - Config necessary for threading + animations to work in no_std environments
- Menu
Callback - Menu callback: What data / function pointer should be called when the menu item is clicked?
- PenTilt
- FFI-safe wrapper for pen tilt angles (x_tilt, y_tilt) in degrees
- Render
Image Callback - Callback that returns a rendered OpenGL texture
- Render
Image Callback Info - Information passed to image rendering callbacks
- Select
AllResult - FFI-safe wrapper for select-all result (full_text, selected_range)
Enums§
- Callback
Change - Represents a change made by a callback that will be applied after the callback returns
- Focus
Update Request - Request to change focus, returned from callbacks
- Option
Callback - FFI-safe Option
type for C interop. - Option
Delete Result - Option
Menu Callback - Optional MenuCallback
- Option
PenTilt - Option
Select AllResult - Result
String String - Result type for functions returning String or a String error
- Result
U8Vec String - Result type for functions returning U8Vec or a String error
- Result
Void String - Result type for functions returning () or a String error
Functions§
- callback_
type_ to_ core - Convert a raw function pointer to CoreCallback
- core_
callback_ ⚠to_ fn - Safe conversion from CoreCallback to function pointer
Type Aliases§
- Callback
Type - Main callback type for UI event handling
- Render
Image Callback Type - Callback type that renders an OpenGL texture