.TH "ttypt/lam-mobile.h" 3 "Version 1.0.0" "liblamina" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/lam-mobile.h \- Native mobile host bridge (Android EGL/GLES3 & iOS GLES3/Metal) for liblamina\&. .SH SYNOPSIS .br .PP \fR#include \fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBlam_safe_insets_t\fP" .br .ti -1c .RI "struct \fBlam_mobile_ops_t\fP" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBlam_mobile_set_ops\fP (const \fBlam_mobile_ops_t\fP *ops)" .br .ti -1c .RI "void \fBlam_mobile_set_safe_insets\fP (float top, float right, float bottom, float left)" .br .ti -1c .RI "void \fBlam_safe_insets\fP (\fBlam_safe_insets_t\fP *out)" .br .ti -1c .RI "void \fBlam_ime_show\fP (int flags)" .br .ti -1c .RI "void \fBlam_ime_hide\fP (void)" .br .ti -1c .RI "void \fBlam_mobile_touch_down\fP (int32_t pointer_id, float px_x, float px_y)" .br .ti -1c .RI "void \fBlam_mobile_commit_utf8\fP (const char *utf8)" .br .ti -1c .RI "void \fBlam_mobile_key_event\fP (uint32_t lam_key, int action, int mods)" .br .ti -1c .RI "void \fBlam_mobile_surface_resized\fP (uint32_t fb_w, uint32_t fb_h, float content_scale)" .br .ti -1c .RI "void \fBlam_android_set_window\fP (void *anative_window, uint32_t w, uint32_t h, float density)" .br .ti -1c .RI "void \fBlam_ios_attach_layer\fP (void *native_layer, uint32_t fb_w, uint32_t fb_h, float scale)" .br .in -1c .SH "Detailed Description" .PP Native mobile host bridge (Android EGL/GLES3 & iOS GLES3/Metal) for liblamina\&. Keeps the public <\fBttypt/lam\&.h\fP> API completely unchanged so existing apps compile unmodified for mobile and desktop\&. Desktop builds provide safe no-op defaults (zero safe-area insets, no-op IME show/hide)\&. .SH "Function Documentation" .PP .SS "void lam_android_set_window (void * anative_window, uint32_t w, uint32_t h, float density)" Android ANativeWindow / EGL lifecycle hooks (src/android_egl\&.c)\&. .SS "void lam_ime_hide (void )" Dismiss the soft keyboard if visible\&. .SS "void lam_ime_show (int flags)" Request soft-keyboard presentation (flags: LAM_INPUT_MULTILINE / LAM_INPUT_NUMERIC)\&. .SS "void lam_ios_attach_layer (void * native_layer, uint32_t fb_w, uint32_t fb_h, float scale)" iOS CAEAGLLayer / CAMetalLayer lifecycle hooks (src/ios_gl\&.m)\&. .SS "void lam_mobile_commit_utf8 (const char * utf8)" Commit UTF-8 text from mobile IME, emitting LAM_EV_CHAR (and LAM_EV_KEY for ' .br ')\&. .SS "void lam_mobile_key_event (uint32_t lam_key, int action, int mods)" Forward a key event (e\&.g\&. LAM_KEY_BACKSPACE, LAM_KEY_ENTER, hardware keyboard)\&. .SS "void lam_mobile_set_ops (const \fBlam_mobile_ops_t\fP * ops)" Register mobile host callbacks (IME show/hide & clipboard)\&. .SS "void lam_mobile_set_safe_insets (float top, float right, float bottom, float left)" Update logical-dp safe-area insets from Android WindowInsets / iOS UIView\&.safeAreaInsets\&. .SS "void lam_mobile_surface_resized (uint32_t fb_w, uint32_t fb_h, float content_scale)" Notify liblamina of a mobile surface resize / density update\&. .SS "void lam_mobile_touch_down (int32_t pointer_id, float px_x, float px_y)" Multi-touch & IME ingestion hooks (called from Android JNI / iOS UIView)\&. Coordinates (px_x, px_y) are in physical surface pixels and are automatically scaled by lam_get_dpi_scale() into logical dp matching desktop liblamina\&. .SS "void lam_safe_insets (\fBlam_safe_insets_t\fP * out)" Query current logical-dp safe-area insets (zeros on desktop)\&. .SH "Author" .PP Generated automatically by Doxygen for liblamina from the source code\&.