TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicBackgroundWidget Class Reference

The class of the background widget. More...

#include <musicfuntionanimationwidget.h>

+ Inheritance diagram for MusicBackgroundWidget:

Public Member Functions

 MusicBackgroundWidget (QWidget *parent=nullptr)
 
void backgroundTransparent (int value)
 

Private Member Functions

virtual void paintEvent (QPaintEvent *event) overridefinal
 

Private Attributes

int m_backgroundAlpha
 

Detailed Description

The class of the background widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 32 of file musicfuntionanimationwidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 12 of file musicfuntionanimationwidget.cpp.

Member Function Documentation

void MusicBackgroundWidget::backgroundTransparent ( int  value)

Set background transparent.

Definition at line 18 of file musicfuntionanimationwidget.cpp.

References m_backgroundAlpha, and TTK_RN_MAX.

void MusicBackgroundWidget::paintEvent ( QPaintEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 24 of file musicfuntionanimationwidget.cpp.

References m_backgroundAlpha.

Member Data Documentation

int MusicBackgroundWidget::m_backgroundAlpha
private

Definition at line 53 of file musicfuntionanimationwidget.h.

Referenced by backgroundTransparent(), and paintEvent().


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