Module ohos

Source
Expand description

OpenHarmony OS Window Handles

§Background

Applications on OpenHarmony use ArkUI for defining their UI. Applications can use an XComponent to render using native Code (e.g. Rust) via EGL. Native code will receive a callback OnSurfaceCreatedCB(OH_NativeXComponent *component, void *window) when the XComponent is created. The window argument has the type OHNativeWindow / EGLNativeWindowType. The window can then be used to create a surface with eglCreateWindowSurface(eglDisplay_, eglConfig_, window, NULL)

Structs§

OhosDisplayHandle
Raw display handle for OpenHarmony.
OhosNdkWindowHandle
Raw window handle for Ohos NDK.