Skip to main content

LumenClickFn

Type Alias LumenClickFn 

Source
pub type LumenClickFn = unsafe extern "C" fn(id: *const c_char, user_data: *mut c_void);
Expand description

Id-scoped native click callback (ABI 0.3). Registered with lumen_app_on_click; invoked once per [ClickEvent] whose target element carries the matching LumenId. id is the element id (UTF-8, NUL-terminated), borrowed for the duration of the call.

Fires on the Lumen tick thread (which may be a bevy_ecs worker, not the thread that built the app); user_data carries the same Send/Sync contract as lumen_app_expose’s.