|
TTKMusicPlayer
4.3.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 | geometry () |
| static QRect | screenGeometry (int index=0) |
| static QRect | availableGeometry (int index=0) |
| static int | count () |
| static int | currentIndex () |
| static QRect | currentGeometry () |
| static void | centerWidget (QWidget *widget) |
| 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 | deviceDotsPerInch (int index=0) |
| static qreal | devicePixelRatio (int index=0) |
| static qreal | currentPixelRatio () |
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 79 of file ttkdesktopscreen.cpp.
Referenced by screenTaskbar().
|
static |
Center widget in geometry rect.
Definition at line 128 of file ttkdesktopscreen.cpp.
References currentGeometry().
Referenced by TTK::Widget::adjustWidgetPosition().
|
static |
Get current screen count.
Definition at line 90 of file ttkdesktopscreen.cpp.
Referenced by currentIndex().
|
static |
Get current screen geometry in cursor pos.
Definition at line 122 of file ttkdesktopscreen.cpp.
References currentIndex(), and screenGeometry().
Referenced by MusicRemoteWidget::adjustPosition(), centerWidget(), MusicApplicationModule::cleanup(), TTKToastLabel::popup(), MusicVideoPlayWidget::popupMode(), MusicApplicationModule::resetWindowGeometry(), MusicVideoPlayWidget::resizeGeometry(), MusicScreenSaverBackgroundWidget::runningTimeout(), and MusicApplicationModule::sideAnimationByOff().
|
static |
Get current screen index in cursor pos.
Definition at line 99 of file ttkdesktopscreen.cpp.
References count(), geometry(), and screenGeometry().
Referenced by currentGeometry(), currentPixelRatio(), and MusicApplicationModule::sideAnimationByOn().
|
static |
Get current device pixel ratio in cursor pos.
Definition at line 246 of file ttkdesktopscreen.cpp.
References currentIndex(), and devicePixelRatio().
Referenced by TTK::initialize(), and Miniblink::resizeEvent().
Get device dpi by given screen index.
Definition at line 229 of file ttkdesktopscreen.cpp.
References DEFAULT_DPI, and devicePixelRatio().
|
static |
Get device pixel ratio by given screen index.
Definition at line 234 of file ttkdesktopscreen.cpp.
References DEFAULT_DPI, and generateDPIValue().
Referenced by currentPixelRatio(), and deviceDotsPerInch().
|
static |
Get all screen geometry.
Definition at line 52 of file ttkdesktopscreen.cpp.
Referenced by currentIndex(), and grabWindow().
|
static |
Grab widget geometry pixmap by given rect.
Definition at line 134 of file ttkdesktopscreen.cpp.
Referenced by MusicFunctionToolBoxTopWidget::mouseMoveEvent(), and MusicLrcPosterWidget::saveButtonClicked().
Grab all screen geometry pixmap by given rect.
Definition at line 143 of file ttkdesktopscreen.cpp.
References geometry().
|
static |
Get screen geometry by given screen index.
Definition at line 68 of file ttkdesktopscreen.cpp.
Referenced by currentGeometry(), currentIndex(), screenTaskbar(), and MusicApplicationModule::sideAnimationByOn().
|
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().
1.8.8