#include "qscreenqnx_qws.h"
#include <qapplication.h>
#include <qregexp.h>
#include <gf/gf.h>
Go to the source code of this file.
◆ attachDevice()
Attaches to the named device name.
- Warning
- This function is not part of the public interface.
Definition at line 177 of file qscreenqnx_qws.cpp.
Referenced by QQnxScreen::connect().
180 if (ret != GF_ERR_OK) {
181 qWarning(
"QQnxScreen: gf_dev_attach(%s) failed with error code %d",
name, ret);
Q_CORE_EXPORT void qWarning(const char *,...)
◆ attachDisplay()
Attaches to the display at index displayIndex.
- Warning
- This function is not part of the public interface.
Definition at line 194 of file qscreenqnx_qws.cpp.
Referenced by QQnxScreen::connect().
197 if (ret != GF_ERR_OK) {
198 qWarning(
"QQnxScreen: gf_display_attach(%d) failed with error code %d", displayIndex, ret);
Q_CORE_EXPORT void qWarning(const char *,...)
gf_display_info_t displayInfo
◆ attachLayer()
Attaches to the layer layerIndex.
- Warning
- This function is not part of the public interface.
Definition at line 211 of file qscreenqnx_qws.cpp.
Referenced by QQnxScreen::connect().
214 int ret = gf_layer_attach(&d->
layer, d->
display, layerIndex, flags);
215 if (ret != GF_ERR_OK) {
216 qWarning(
"QQnxScreen: gf_layer_attach(%d) failed with error code %d", layerIndex, ret);
Q_CORE_EXPORT void qWarning(const char *,...)
static Type type()
Returns the type of application (Tty , GuiClient, or GuiServer).
◆ createHwSurface()
- Warning
- This function is not part of the public interface. Creates a new hardware surface (usually on the Gfx card memory) with the dimensions w * h.
Definition at line 227 of file qscreenqnx_qws.cpp.
Referenced by QQnxScreen::connect().
231 if (ret != GF_ERR_OK) {
232 qWarning(
"QQnxScreen: gf_surface_create_layer(%dx%d) failed with error code %d", w, h, ret);
238 gf_layer_enable(d->
layer);
240 ret = gf_layer_update(d->
layer, 0);
241 if (ret != GF_ERR_OK) {
242 qWarning(
"QQnxScreen: gf_layer_update() failed with error code %d\n", ret);
246 ret = gf_context_create(&d->
context);
247 if (ret != GF_ERR_OK) {
248 qWarning(
"QQnxScreen: gf_context_create() failed with error code %d", ret);
253 if (ret != GF_ERR_OK) {
254 qWarning(
"QQnxScreen: gf_context_set_surface() failed with error code %d", ret);
Q_CORE_EXPORT void qWarning(const char *,...)
gf_display_info_t displayInfo
◆ createMemSurface()
- Warning
- This function is not part of the public interface. Creates an in-memory, linear accessible surface of dimensions w * h. This is the main surface that QWS blits to.
Definition at line 266 of file qscreenqnx_qws.cpp.
Referenced by QQnxScreen::connect().
268 #ifndef QT_NO_QWS_MULTIPROCESS 270 unsigned sidlist[64];
271 int n = gf_surface_sidlist(d->
device, sidlist);
272 for (
int i = 0; i < n; ++i) {
274 if (ret == GF_ERR_OK) {
278 unsigned flags = GF_SURFACE_CPU_LINEAR_READABLE | GF_SURFACE_CPU_LINEAR_WRITEABLE;
287 qWarning(
"QQnxScreen: cannot attach to an usable surface; create a new one.");
291 GF_SURFACE_CREATE_CPU_FAST_ACCESS | GF_SURFACE_CREATE_CPU_LINEAR_ACCESSIBLE
292 | GF_SURFACE_CREATE_PHYS_CONTIG | GF_SURFACE_CREATE_SHAREABLE);
293 if (ret != GF_ERR_OK) {
294 qWarning(
"QQnxScreen: gf_surface_create(%dx%d) failed with error code %d",
302 qWarning(
"QQnxScreen: gf_surface_get_info() failed.");
Q_CORE_EXPORT void qWarning(const char *,...)
gf_surface_info_t memSurfaceInfo
gf_display_info_t displayInfo
static Type type()
Returns the type of application (Tty , GuiClient, or GuiServer).