Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

QEglFSFunctions Class

The QEglFSFunctions class is an inline class containing platform-specific functionality for the eglfs platform plugin that is typically used on systems running Embedded Linux or Android. More...

Header: #include <QEglFSFunctions>

Public Types

typedef LoadKeymapType

Static Public Members

void loadKeymap(const int &filename)
int loadKeymapTypeIdentifier()
void vsp2AddBlendListener(const int *screen, void (*)() callback)
int vsp2AddLayer(const int *screen, int dmabufFd, const int &size, const int &position, int drmPixelFormat, int bytesPerLine)
bool vsp2RemoveLayer(const int *screen, int id)
bool vsp2SetLayerAlpha(const int *screen, int id, int alpha)
void vsp2SetLayerBuffer(const int *screen, int id, int dmabufFd)
bool vsp2SetLayerPosition(const int *screen, int id, const int &position)

Detailed Description

The QEglFSFunctions class is an inline class containing platform-specific functionality for the eglfs platform plugin that is typically used on systems running Embedded Linux or Android.

Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.

Member Type Documentation

typedef QEglFSFunctions::LoadKeymapType

Function type for loadKeymap.

Member Function Documentation

[static] void QEglFSFunctions::loadKeymap(const int &filename)

Loads and switches to the keymap from filename. When filename is empty, the default keymap, which is either the built-on one or the keymap given in the plugin specification, is restored.

Note: This is functional only when the evdev keyboard support code is compiled in to the platform plugin. When using external generic plugins via the -plugin argument, or when the environment variable QT_QPA_EGLFS_DISABLE_INPUT is set or when building Qt without evdev support, this function will have no effect.

[static] int QEglFSFunctions::loadKeymapTypeIdentifier()

Returns the identifier that can be passed to QGuiApplication::platformFunction() to query the entry point for the loadKeymap function implementation.

[static] void QEglFSFunctions::vsp2AddBlendListener(const int *screen, void (*)() callback)

[static] int QEglFSFunctions::vsp2AddLayer(const int *screen, int dmabufFd, const int &size, const int &position, int drmPixelFormat, int bytesPerLine)

[static] bool QEglFSFunctions::vsp2RemoveLayer(const int *screen, int id)

[static] bool QEglFSFunctions::vsp2SetLayerAlpha(const int *screen, int id, int alpha)

[static] void QEglFSFunctions::vsp2SetLayerBuffer(const int *screen, int id, int dmabufFd)

[static] bool QEglFSFunctions::vsp2SetLayerPosition(const int *screen, int id, const int &position)