Expand description
Callback handling for layout events (invocation, result processing). 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§
- Callback
- Stores a function pointer that is executed when the given UI element is hit
- Callback
Info CallbackInfois a lightweight wrapper around pointers to stack-local data.- Callback
Info RefData - Reference data container for
CallbackInfo(all read-only fields) - 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_stdenvironments - 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
U8Vecor a String error - Result
Void String - Result type for functions returning () or a String error
Statics§
- CALLBACK_
INVOKER - Process-global slot for this callback kind’s host-side invoker.
Functions§
- AzApp_
setCallback Invoker - Register the host-side invoker for this callback kind.
- AzCallback_
create From Host Handle - C-ABI export wrapping
<Wrapper>::create_from_host_handle. - base64_
encode - Encode bytes to Base64 string
- css_
properties_ need_ relayout - Whether a batch of CSS property overrides can move geometry, i.e. whether applying it has to re-run layout or only has to repaint.
Type Aliases§
- AzCallback
Invoker - Pointer-arg variant of this callback kind’s typedef.
- Callback
Type - Main callback type for UI event handling
- Render
Image Callback Type - Callback type that renders an OpenGL texture