Function ul_next_sys::ulViewGetSurface
source · pub unsafe extern "C" fn ulViewGetSurface(view: ULView) -> ULSurface
Expand description
Get the Surface for the View (native pixel buffer that the CPU renderer draws into).
@note This operation is only valid if you’re managing the Renderer yourself (eg, you’ve previously called ulCreateRenderer() instead of ulCreateApp()).
This function will return NULL if this View is GPU accelerated.
The default Surface is BitmapSurface but you can provide your own Surface implementation
via ulPlatformSetSurfaceDefinition.
When using the default Surface, you can retrieve the underlying bitmap by casting
ULSurface to ULBitmapSurface and calling ulBitmapSurfaceGetBitmap().