55 { *native = 0;
return true; }
93 Q_ASSERT_X(
false,
"EGLNullWSScreen",
"Unknown format");
103 "%s: Valid options are:\n" 104 "size=WIDTHxHEIGHT Screen size reported by this driver\n" 105 "format=FORMAT Screen format, where FORMAT is one of the following:\n" 131 if (
w == 0 ||
h == 0) {
145 static const int Dpi = 120;
146 static const qreal ScalingFactor =
static_cast<qreal>(25.4) / Dpi;
165 if (qobject_cast<QGLWidget*>(widget)) {
QString section(QChar sep, int start, int end=-1, SectionFlags flags=SectionDefault) const
This function returns a section of the string.
The QWSWindowSurface class provides the drawing area for top-level windows in Qt for Embedded Linux...
Format
The following image formats are available in Qt.
void blank(bool on)
Prevents the screen driver form displaying any content on the screen.
QPointer< QWidget > widget
void disconnect()
This function is called by every Qt for Embedded Linux application before exiting, and must be implemented to unmap the framebuffer.
bool initDevice()
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
void setMode(int width, int height, int depth)
Implement this function to reset the framebuffer's resolution (width and height) and bit depth...
The QByteArray class provides an array of bytes.
const char *const PluginName
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int physHeight
the physical height of the screen in millimeters.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
NativeWindowType EGLNativeWindowType
static void printHelp(const QHash< QString, QImage::Format > &formatDictionary)
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
const T value(const Key &key) const
Returns the value associated with the key.
int physWidth
the physical width of the screen in millimeters.
void setPixelFormat(QImage::Format format)
Sets the screen's pixel format to format.
QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.
virtual bool createNativeWindow(QWidget *widget, EGLNativeWindowType *native)
Creates a native OpenGLES drawable for the surface of widget and returns it in native.
The QStringList class provides a list of strings.
int w
the logical width of the screen.
Q_CORE_EXPORT void qWarning(const char *,...)
The QRegion class specifies a clip region for a painter.
static int depthForFormat(QImage::Format format)
virtual QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.
const char * constData() const
Returns a pointer to the data stored in the byte array.
void shutdownDevice()
This function is called by the Qt for Embedded Linux server before it calls the disconnect() function...
#define Q_ASSERT_X(cond, where, what)
EGLNullWSScreen(int displayId)
QImage::Format pixelFormat() const
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a suppor...
The QTextStream class provides a convenient interface for reading and writing text.
The QGLScreenSurfaceFunctions class encapsulates the functions for creating native windows and pixmap...
#define Q_FOREACH(variable, container)
Same as foreach(variable, container).
void exposeRegion(QRegion r, int changing)
This function is called by the Qt for Embedded Linux server whenever a screen update is required...
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
void setSurfaceFunctions(QGLScreenSurfaceFunctions *functions)
Sets the surface functions object for this QGLScreen to functions.
int h
the logical height of the screen.
static const QHash< QString, QImage::Format > formatDictionary()
This class encapsulates an OpenGL screen driver.
QList< Key > keys() const
Returns a list containing all the keys in the hash, in an arbitrary order.
Q_DECL_CONSTEXPR int qRound(qreal d)
bool connect(const QString &displaySpec)
This function is called by every Qt for Embedded Linux application on startup, and must be implemente...