kzs_desktop_native.h File Reference

Kanzi desktop, Wayland implementation. More...

#include <kanzi/core.ui/platform/graphics_context/egl/kzs_egl.h>
#include <wayland-client.h>

Functions

void kzsDesktopNativeDispatch (const struct KzsDesktopNative *desktopNative)
 Dispatch the wayland default queue. More...
 
void kzsDesktopNativeDispatchQueue (const struct KzsDesktopNative *desktopNative, struct wl_event_queue *queue)
 Dispatch wayland queue. More...
 
struct wl_compositor * kzsDesktopNativeGetCompositor (const struct KzsDesktopNative *desktopNative)
 Get the wayland compositor. More...
 
struct wl_shell * kzsDesktopNativeGetShell (const struct KzsDesktopNative *desktopNative)
 Get the wayland shell. More...
 
struct xdg_shell * kzsDesktopNativeGetXdgShell (const struct KzsDesktopNative *desktopNative)
 Get the xdg-shell. More...
 
struct ivi_application * kzsDesktopNativeGetIVIApplication (const struct KzsDesktopNative *desktopNative)
 Get the ivi-application. More...
 
struct wl_display * kzsDesktopNativeGetDisplay (const struct KzsDesktopNative *desktopNative)
 Get the wayland display. More...
 
struct wl_seat * kzsDesktopNativeGetSeat (const struct KzsDesktopNative *desktopNative, size_t seatIndex)
 Get wayland handle for an input seat. More...
 
size_t kzsDesktopNativeGetSeatCount (const struct KzsDesktopNative *desktopNative)
 Get number of input seats. More...
 
struct wl_output * kzsDesktopNativeGetOutput (const struct KzsDesktopNative *desktopNative, kzUint displayID)
 Get wayland handle for a display. More...
 
struct wl_event_queue * kzsDesktopNativeGetDisplayQueue (const struct KzsDesktopNative *desktopNative, kzUint displayID)
 Get input-queue for a display. More...
 
struct wl_event_queue * kzsDesktopNativeGetInputQueue (const struct KzsDesktopNative *desktopNative)
 Store the input-device handle. More...
 
void kzsDesktopNativeSetInputDeviceNative (struct KzsDesktopNative *desktop, struct KzsInputDeviceNative *device)
 Store the input-device handle. More...
 
struct KzsInputDeviceNativekzsDesktopNativeGetInputDeviceNative (const struct KzsDesktopNative *desktopNative)
 Get the current input-device handle. More...
 
EGLNativeDisplayType kzsEGLGetNativeDisplay (const struct KzsDesktopNative *desktopNative, const struct KzsDisplayNative *displayNative, const struct KzsWindowNative *windowNative)
 

Detailed Description

Kanzi desktop, Wayland implementation.

Copyright 2008-2017 by Rightware. All rights reserved.

Function Documentation

void kzsDesktopNativeDispatch ( const struct KzsDesktopNative *  desktopNative)

Dispatch the wayland default queue.

Parameters
desktopNativeHandle to desktop-native.
void kzsDesktopNativeDispatchQueue ( const struct KzsDesktopNative *  desktopNative,
struct wl_event_queue *  queue 
)

Dispatch wayland queue.

Parameters
desktopNativeHandle to desktop-native.
queueThe wayland-queue to be dispatched.
struct wl_compositor* kzsDesktopNativeGetCompositor ( const struct KzsDesktopNative *  desktopNative)

Get the wayland compositor.

Parameters
desktopNativeHandle to desktop-native.
struct wl_shell* kzsDesktopNativeGetShell ( const struct KzsDesktopNative *  desktopNative)

Get the wayland shell.

Parameters
desktopNativeHandle to desktop-native.
struct xdg_shell* kzsDesktopNativeGetXdgShell ( const struct KzsDesktopNative *  desktopNative)

Get the xdg-shell.

Parameters
desktopNativeHandle to desktop-native.
struct ivi_application* kzsDesktopNativeGetIVIApplication ( const struct KzsDesktopNative *  desktopNative)

Get the ivi-application.

Parameters
desktopNativeHandle to desktop-native.
struct wl_display* kzsDesktopNativeGetDisplay ( const struct KzsDesktopNative *  desktopNative)

Get the wayland display.

Parameters
desktopNativeHandle to desktop-native.
struct wl_seat* kzsDesktopNativeGetSeat ( const struct KzsDesktopNative *  desktopNative,
size_t  seatIndex 
)

Get wayland handle for an input seat.

Parameters
desktopNativeHandle to desktop-native.
seatIndexindex of the seat
Returns
The wayland handle for the seatIndex specified in parameters, nullptr if seatIndex is out of range.
size_t kzsDesktopNativeGetSeatCount ( const struct KzsDesktopNative *  desktopNative)

Get number of input seats.

Parameters
desktopNativeHandle to desktop-native.
struct wl_output* kzsDesktopNativeGetOutput ( const struct KzsDesktopNative *  desktopNative,
kzUint  displayID 
)

Get wayland handle for a display.

Parameters
desktopNativeHandle to desktop-native.
displayIDThe index of the display.
Returns
The wayland handle for the displayID specified in parameters, nullptr if displayID is out of range.
struct wl_event_queue* kzsDesktopNativeGetDisplayQueue ( const struct KzsDesktopNative *  desktopNative,
kzUint  displayID 
)

Get input-queue for a display.

Parameters
desktopNativeHandle to desktop-native.
displayIDThe index of the display.
Returns
The wayland-queue for the displayID specified in parameters, nullptr if displayID is out of range.
struct wl_event_queue* kzsDesktopNativeGetInputQueue ( const struct KzsDesktopNative *  desktopNative)

Store the input-device handle.

Parameters
desktopNativeHandle to desktop-native.
Returns
A wayland-queue reserved for input-related events.
void kzsDesktopNativeSetInputDeviceNative ( struct KzsDesktopNative *  desktop,
struct KzsInputDeviceNative device 
)

Store the input-device handle.

Parameters
desktopNativeHandle to desktop-native.
deviceThe input device native to be stored.
struct KzsInputDeviceNative* kzsDesktopNativeGetInputDeviceNative ( const struct KzsDesktopNative *  desktopNative)

Get the current input-device handle.

Parameters
desktopNativeHandle to desktop-native.
Returns
The input device native that has been set previously, nullptr if not set.
EGLNativeDisplayType kzsEGLGetNativeDisplay ( const struct KzsDesktopNative *  desktopNative,
const struct KzsDisplayNative *  displayNative,
const struct KzsWindowNative windowNative 
)