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 Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | List of all members
Florid Class Reference

Helper class to florid widget. More...

#include <florid.h>

+ Inheritance diagram for Florid:

Public Slots

void setImage (const QImage &image)
 
virtual void start () override
 
virtual void stop () override
 
- Public Slots inherited from Visual
virtual void start ()
 
virtual void stop ()
 
void updateVisual ()
 
void changeFullScreen (bool state)
 

Public Member Functions

 Florid (QWidget *parent=nullptr)
 
virtual ~Florid ()=default
 
- Public Member Functions inherited from Visual
 Visual (QWidget *parent, Qt::WindowFlags f=Qt::WindowFlags())
 
virtual ~Visual ()
 

Protected Member Functions

void reRenderLabel ()
 
void reRenderImage (QColor &avg, const QImage *input)
 
virtual void process (bool state) overridefinal
 
virtual void hideEvent (QHideEvent *event) overridefinal
 
virtual void showEvent (QShowEvent *event) overridefinal
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void contextMenuEvent (QContextMenuEvent *event) overridefinal
 
- Protected Member Functions inherited from Visual
virtual void closeEvent (QCloseEvent *event) overridefinal
 
bool takeData (float *left, float *right=nullptr)
 
virtual void process (float *left, float *right)=0
 
void clear ()
 

Protected Attributes

QImage m_image
 
bool m_renderLabel = false
 
bool m_enabledLabel = true
 
bool m_gradientLabel = true
 
QColor m_averageColor = QColor(255, 255, 255)
 
RoundAnimationLabelm_roundLabel = nullptr
 
- Protected Attributes inherited from Visual
QTimer * m_timer = nullptr
 
bool m_running = false
 
int m_rows = 0
 
int m_cols = 0
 
intm_intern_vis_data = nullptr
 
QAction * m_screenAction = nullptr
 

Private Slots

void mediaUrlChanged ()
 

Additional Inherited Members

- Signals inherited from Visual
void closedByUser ()
 
void fullscreenByUser (QWidget *widget, bool state)
 
- Static Public Member Functions inherited from Visual
static QList< VisualFactory * > factories ()
 
static QString file (const VisualFactory *factory)
 
static void setEnabled (VisualFactory *factory, bool enable=true)
 
static bool isEnabled (const VisualFactory *factory)
 
static void add (Visual *visual)
 
static void remove (Visual *)
 
static void initialize (QWidget *parent, QObject *receiver=nullptr, const char *member=nullptr)
 
static QList< Visual * > * visuals ()
 
static void addAudio (float *pcm, int samples, int channels, qint64 ts, qint64 delay)
 
static void clearBuffer ()
 

Detailed Description

Helper class to florid widget.

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

Definition at line 77 of file florid.h.

Constructor & Destructor Documentation

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

Constructor.

virtual Florid::~Florid ( )
virtualdefault

Destructor.

Member Function Documentation

virtual void Florid::contextMenuEvent ( QContextMenuEvent *  event)
finaloverrideprotectedvirtual
virtual void Florid::hideEvent ( QHideEvent *  event)
finaloverrideprotectedvirtual

QWidget's close event. Reimplementation should call base function.

Parameters
eventQCloseEvent insatance.

Reimplemented from Visual.

void Florid::mediaUrlChanged ( )
privateslot

Current media url changed.

virtual void Florid::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual
virtual void Florid::process ( bool  state)
finaloverrideprotectedvirtual

Process current visual data by state.

Reimplemented from Visual.

void Florid::reRenderImage ( QColor &  avg,
const QImage *  input 
)
protected

Rerender the image by color burn transform.

void Florid::reRenderLabel ( )
protected

Rerender the image label.

void Florid::setImage ( const QImage &  image)
slot

Set background image.

virtual void Florid::showEvent ( QShowEvent *  event)
finaloverrideprotectedvirtual

QWidget's close event. Reimplementation should call base function.

Parameters
eventQCloseEvent insatance.

Reimplemented from Visual.

virtual void Florid::start ( )
overridevirtualslot

Starts visualization.

virtual void Florid::stop ( )
overridevirtualslot

Stops visualization.

Member Data Documentation

QColor Florid::m_averageColor = QColor(255, 255, 255)
protected

Definition at line 134 of file florid.h.

bool Florid::m_enabledLabel = true
protected

Definition at line 132 of file florid.h.

bool Florid::m_gradientLabel = true
protected

Definition at line 133 of file florid.h.

QImage Florid::m_image
protected

Definition at line 130 of file florid.h.

bool Florid::m_renderLabel = false
protected

Definition at line 131 of file florid.h.

RoundAnimationLabel* Florid::m_roundLabel = nullptr
protected

Definition at line 135 of file florid.h.


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