Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qbsdfbscreen.cpp File Reference
#include "qbsdfbscreen.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 <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <limits.h>
#include <signal.h>
#include <sys/consio.h>
#include <sys/fbio.h>
+ Include dependency graph for qbsdfbscreen.cpp:

Go to the source code of this file.

Enumerations

enum  { DefaultDPI = 100 }
 

Functions

static int openFramebufferDevice (const QString &dev)
 
static QRect determineGeometry (const struct fbtype &fb, const QRect &userGeometry)
 
static QSizeF determinePhysicalSize (const QSize &mmSize, const QSize &res)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DefaultDPI 

Definition at line 35 of file qbsdfbscreen.cpp.

Function Documentation

◆ determineGeometry()

static QRect determineGeometry ( const struct fbtype &  fb,
const QRect userGeometry 
)
static

Definition at line 51 of file qbsdfbscreen.cpp.

References QRect::height(), QRect::isValid(), qMin(), qWarning, QRect::width(), QRect::x(), and QRect::y().

Referenced by QBsdFbScreen::initialize(), and QLinuxFbScreen::initialize().

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

◆ determinePhysicalSize()

static QSizeF determinePhysicalSize ( const QSize mmSize,
const QSize res 
)
static

Definition at line 88 of file qbsdfbscreen.cpp.

References DefaultDPI, QSize::height(), qRound(), and QSize::width().

Referenced by QBsdFbScreen::initialize(), and QLinuxFbScreen::initialize().

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

◆ openFramebufferDevice()

static int openFramebufferDevice ( const QString dev)
static

Definition at line 39 of file qbsdfbscreen.cpp.

References QByteArray::constData(), QFile::encodeName(), and QT_OPEN.

Referenced by QBsdFbScreen::initialize(), and QLinuxFbScreen::initialize().

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