The DiskMusic class is a Widget Class(Sorry for the non-class label) that holding all the details of the disk eyes level interative.
More...
#include <DiskMusic.h>
|
| void | armAngleChanged () |
| | armAngleChanged the signal indicating the arm angle changed
|
| |
|
| | DiskMusic (QWidget *parent=nullptr) |
| | Construct a new Disk Music object.
|
| |
| void | setStatus (bool set_is_playing) |
| | setStatus set the status of the disk
|
| |
| void | setPixmap (const QString &pixmap_path) |
| | setPixmap set the pixmap of the disk center display
|
| |
| qreal | armAngle () const |
| | armAngle get the arm angle
|
| |
| void | setArmAngle (qreal angle) |
| | setArmAngle set the arm angle
|
| |
|
| ~DiskMusic () |
| | Destroy the Disk Music object.
|
| |
|
| void | paintEvent (QPaintEvent *event) override |
| | paintEvent the paint event for the disk
|
| |
|
|
qreal | armAngle |
| | property announced
|
| |
The DiskMusic class is a Widget Class(Sorry for the non-class label) that holding all the details of the disk eyes level interative.
◆ DiskMusic()
| DiskMusic::DiskMusic |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct a new Disk Music object.
- Parameters
-
◆ armAngle()
| qreal DiskMusic::armAngle |
( |
| ) |
const |
|
inline |
armAngle get the arm angle
- Returns
- the arm angle
◆ armAngleChanged
| void DiskMusic::armAngleChanged |
( |
| ) |
|
|
signal |
armAngleChanged the signal indicating the arm angle changed
- Note
- this is the signal for the animation to update
◆ paintEvent()
| void DiskMusic::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
paintEvent the paint event for the disk
- Parameters
-
◆ setArmAngle()
| void DiskMusic::setArmAngle |
( |
qreal |
angle | ) |
|
|
inline |
setArmAngle set the arm angle
- Parameters
-
◆ setPixmap()
| void DiskMusic::setPixmap |
( |
const QString & |
pixmap_path | ) |
|
setPixmap set the pixmap of the disk center display
- Parameters
-
| pixmap_path | the path to the pixmap |
◆ setStatus()
| void DiskMusic::setStatus |
( |
bool |
set_is_playing | ) |
|
setStatus set the status of the disk
- Parameters
-
| set_is_playing | the status to set, when the status changed, the animations status changed |
The documentation for this class was generated from the following files:
- extern_app/MediaPlayer/ui/DiskMusic.h
- extern_app/MediaPlayer/ui/DiskMusic.cpp