TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the desktop screen. More...
#include <ttkdesktopscreen.h>
Classes | |
struct | TaskbarInfo |
Static Public Member Functions | |
static TaskbarInfo | screenTaskbar (int index=0) |
static QRect | availableGeometry (int index=0) |
static QRect | screenGeometry (int index=0) |
static QRect | geometry () |
static int | screenIndex () |
static QPixmap | grabWidget (QWidget *widget, const QRect &rect) |
static QPixmap | grabWindow (int x=0, int y=0, int w=-1, int h=-1) |
static int | dotsPerInchX () |
static int | dotsPerInchY () |
static int | dotsPerInch () |
static int | logicDotsPerInch () |
The class of the desktop screen.
Definition at line 33 of file ttkdesktopscreen.h.
|
static |
Get available geometry by given screen index.
Definition at line 52 of file ttkdesktopscreen.cpp.
Referenced by screenTaskbar().
|
static |
Get local DPI.
Definition at line 240 of file ttkdesktopscreen.cpp.
References generateDPIValue().
Referenced by loadApplicationScaleFactor().
|
static |
Get local DPI x.
Definition at line 228 of file ttkdesktopscreen.cpp.
References generateDPIValue().
|
static |
Get local DPI y.
Definition at line 234 of file ttkdesktopscreen.cpp.
References generateDPIValue().
|
static |
Get all screen geometry.
Definition at line 75 of file ttkdesktopscreen.cpp.
Referenced by grabWindow(), and screenIndex().
|
static |
Grab widget geometry pixmap by given rect.
Definition at line 118 of file ttkdesktopscreen.cpp.
Referenced by MusicFunctionToolBoxTopWidget::mouseMoveEvent(), and MusicLrcPosterWidget::saveButtonClicked().
Grab all screen geometry pixmap by given rect.
Definition at line 127 of file ttkdesktopscreen.cpp.
References geometry().
|
static |
Get logic DPI.
Definition at line 246 of file ttkdesktopscreen.cpp.
References DEFAULT_DPI, and generateDPIValue().
Referenced by Miniblink::resizeEvent().
|
static |
Get screen geometry by given screen index.
Definition at line 64 of file ttkdesktopscreen.cpp.
Referenced by TTK::Widget::adjustWidgetPosition(), MusicApplicationModule::cleanup(), TTKToastLabel::popup(), MusicApplicationModule::resetWindowGeometry(), MusicVideoPlayWidget::resizeGeometry(), MusicScreenSaverBackgroundWidget::runningTimeout(), screenIndex(), screenTaskbar(), MusicApplicationModule::sideAnimationByOff(), and MusicApplicationModule::sideAnimationByOn().
|
static |
Get screen index in cursor pos.
Definition at line 91 of file ttkdesktopscreen.cpp.
References geometry(), and screenGeometry().
|
static |
Get screen taskbar info by given screen index.
Definition at line 18 of file ttkdesktopscreen.cpp.
References availableGeometry(), TTK::Bottom, TTK::Left, TTKDesktopScreen::TaskbarInfo::m_direction, TTKDesktopScreen::TaskbarInfo::m_size, TTK::No, TTK::Right, screenGeometry(), and TTK::Top.
Referenced by MusicApplicationModule::sideAnimationByOn().