Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qlinuxfbscreen.cpp File Reference

(b4b90bfbaf8edfa7a2084adbaff0a2c0bc68acd1)

#include "qlinuxfbscreen.h"
#include <QtFbSupport/private/qfbcursor_p.h>
#include <QtFbSupport/private/qfbwindow_p.h>
#include <QtCore/QFile>
#include <QtCore/QRegularExpression>
#include <QtCore/q20utility.h>
#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()

void blankScreen ( int fd,
bool on )
static

Definition at line 251 of file qlinuxfbscreen.cpp.

Referenced by QLinuxFbScreen::initialize().

Here is the caller graph for this function:

◆ determineDepth()

int determineDepth ( const fb_var_screeninfo & vinfo)
static

Definition at line 50 of file qlinuxfbscreen.cpp.

◆ determineFormat()

QImage::Format determineFormat ( const fb_var_screeninfo & info,
int depth )
static

Definition at line 127 of file qlinuxfbscreen.cpp.

◆ determineGeometry()

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

Definition at line 65 of file qlinuxfbscreen.cpp.

◆ determinePhysicalSize()

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

Definition at line 104 of file qlinuxfbscreen.cpp.

◆ openFramebufferDevice()

int openFramebufferDevice ( const QString & dev)
static

Definition at line 35 of file qlinuxfbscreen.cpp.

◆ openTtyDevice()

int openTtyDevice ( const QString & device)
static

Definition at line 215 of file qlinuxfbscreen.cpp.

◆ resetTty()

void resetTty ( int ttyfd,
int oldMode )
static

Definition at line 244 of file qlinuxfbscreen.cpp.

Referenced by QLinuxFbScreen::~QLinuxFbScreen().

Here is the caller graph for this function:

◆ switchToGraphicsMode()

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

Definition at line 233 of file qlinuxfbscreen.cpp.

Referenced by QLinuxFbScreen::initialize().

Here is the caller graph for this function: