[][src]Function ul_sys::ulViewGetSurface

pub unsafe extern "C" fn ulViewGetSurface(view: ULView) -> ULSurface

Get the Surface for the View (native pixel buffer container).

@note Only valid when the GPU renderer is disabled in Config.

   (Will return a nullptr when the GPU renderer is enabled.)

   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().