Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlinuxfbscreen.cpp File Reference

(aa37e67ef7f5ff22da0ef95fb5221bc1fff9b3ca)

#include "qlinuxfbscreen.h"
#include <QtFbSupport/private/qfbcursor_p.h>
#include <QtFbSupport/private/qfbwindow_p.h>
#include <QtCore/QFile>
#include <QtCore/QRegularExpression>
#include <QtGui/QPainter>
#include <private/qcore_unix_p.h>
#include <qimage.h>
#include <qdebug.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <linux/kd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <limits.h>
#include <signal.h>
#include <linux/fb.h>
#include "moc_qlinuxfbscreen.cpp"
+ Include dependency graph for qlinuxfbscreen.cpp:

Go to the source code of this file.

Functions

static int openFramebufferDevice (const QString &dev)
 
static int determineDepth (const fb_var_screeninfo &vinfo)
 
static QRect determineGeometry (const fb_var_screeninfo &vinfo, const QRect &userGeometry)
 
static QSizeF determinePhysicalSize (const fb_var_screeninfo &vinfo, const QSize &mmSize, const QSize &res)
 
static QImage::Format determineFormat (const fb_var_screeninfo &info, int depth)
 
static int openTtyDevice (const QString &device)
 
static void switchToGraphicsMode (int ttyfd, bool doSwitch, int *oldMode)
 
static void resetTty (int ttyfd, int oldMode)
 
static void blankScreen (int fd, bool on)
 

Function Documentation

◆ blankScreen()

static void blankScreen ( int fd,
bool on )
static

Definition at line 250 of file qlinuxfbscreen.cpp.

Referenced by QLinuxFbScreen::initialize().

+ Here is the caller graph for this function:

◆ determineDepth()

static int determineDepth ( const fb_var_screeninfo & vinfo)
static

Definition at line 49 of file qlinuxfbscreen.cpp.

Referenced by QLinuxFbScreen::initialize().

+ Here is the caller graph for this function:

◆ determineFormat()

◆ determineGeometry()

static QRect determineGeometry ( const fb_var_screeninfo & vinfo,
const QRect & userGeometry )
static

Definition at line 64 of file qlinuxfbscreen.cpp.

References qWarning.

◆ determinePhysicalSize()

static QSizeF determinePhysicalSize ( const fb_var_screeninfo & vinfo,
const QSize & mmSize,
const QSize & res )
static

Definition at line 103 of file qlinuxfbscreen.cpp.

References qRound().

+ Here is the call graph for this function:

◆ openFramebufferDevice()

static int openFramebufferDevice ( const QString & dev)
static

Definition at line 34 of file qlinuxfbscreen.cpp.

References QByteArray::constData(), QT_OPEN, and QString::toLatin1().

+ Here is the call graph for this function:

◆ openTtyDevice()

static int openTtyDevice ( const QString & device)
static

Definition at line 214 of file qlinuxfbscreen.cpp.

References device, QFile::encodeName(), and QT_OPEN.

Referenced by QLinuxFbScreen::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetTty()

static void resetTty ( int ttyfd,
int oldMode )
static

Definition at line 243 of file qlinuxfbscreen.cpp.

References QT_CLOSE.

Referenced by QLinuxFbScreen::~QLinuxFbScreen().

+ Here is the caller graph for this function:

◆ switchToGraphicsMode()

static void switchToGraphicsMode ( int ttyfd,
bool doSwitch,
int * oldMode )
static

Definition at line 232 of file qlinuxfbscreen.cpp.

Referenced by QLinuxFbScreen::initialize().

+ Here is the caller graph for this function: