CCIMXDesktop
 
Loading...
Searching...
No Matches
DiskMusic Class Reference

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>

Inheritance diagram for DiskMusic:

Signals

void armAngleChanged ()
 armAngleChanged the signal indicating the arm angle changed
 

Public Member Functions

 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.
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 paintEvent the paint event for the disk
 

Properties

qreal armAngle
 property announced
 

Detailed Description

The DiskMusic class is a Widget Class(Sorry for the non-class label) that holding all the details of the disk eyes level interative.

Constructor & Destructor Documentation

◆ DiskMusic()

DiskMusic::DiskMusic ( QWidget *  parent = nullptr)
explicit

Construct a new Disk Music object.

Parameters
parent

Member Function Documentation

◆ 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
eventthe paint event

◆ setArmAngle()

void DiskMusic::setArmAngle ( qreal  angle)
inline

setArmAngle set the arm angle

Parameters
anglethe angle to set

◆ setPixmap()

void DiskMusic::setPixmap ( const QString &  pixmap_path)

setPixmap set the pixmap of the disk center display

Parameters
pixmap_paththe path to the pixmap

◆ setStatus()

void DiskMusic::setStatus ( bool  set_is_playing)

setStatus set the status of the disk

Parameters
set_is_playingthe status to set, when the status changed, the animations status changed

The documentation for this class was generated from the following files: