kzs_desktop_native.hpp File Reference
#include <kanzi/core.ui/platform/graphics_context/egl/kzs_egl.h>
#include <xf86drmMode.h>

Functions

int kzsDesktopNativeGetHandle (const struct KzsDesktopNative *desktopNative)
 Get DRM device native handle. More...
 
drmModeRes * kzsDesktopNativeGetResources (const struct KzsDesktopNative *desktopNative)
 Get DRM resource list. More...
 
const char * kzsDesktopNativeGetDriverName (const struct KzsDesktopNative *desktopNative)
 Get name of the DRM driver module. More...
 
kzsError kzsDesktopNativeSetDimensions (struct KzsDesktopNative *desktopNative, kzUint width, kzUint height)
 Set dimensions of desktop-native. More...
 

Function Documentation

int kzsDesktopNativeGetHandle ( const struct KzsDesktopNative *  desktopNative)

Get DRM device native handle.

Parameters
desktopNativeHandle to desktop-native.
Returns
File descriptor for DRM device.
drmModeRes* kzsDesktopNativeGetResources ( const struct KzsDesktopNative *  desktopNative)

Get DRM resource list.

Parameters
desktopNativeHandle to desktop-native.
Returns
Pointer to Structure of DRM resources.
const char* kzsDesktopNativeGetDriverName ( const struct KzsDesktopNative *  desktopNative)

Get name of the DRM driver module.

Parameters
desktopNativeHandle to desktop-native.
Returns
Name of the DRM driver, null if not known.
kzsError kzsDesktopNativeSetDimensions ( struct KzsDesktopNative *  desktopNative,
kzUint  width,
kzUint  height 
)

Set dimensions of desktop-native.

Parameters
desktopNativeHandle to desktop-native.
widthDesktop width
heightDesktop height
Returns
KZS_SUCCESS on success.