equalizergraph.h
来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C头文件 代码 · 共 51 行
H
51 行
/*************************************************************************** Graphical spline display for equalizer (c) 2004 Mark Kretschmann <markey@web.de> Based on code from XMMS (c) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef AMAROK_EQUALIZERGRAPH_H#define AMAROK_EQUALIZERGRAPH_H#include <qwidget.h> //baseclassclass QPixmap;class EqualizerGraph : public QWidget{ public: EqualizerGraph( QWidget* parent ); ~EqualizerGraph(); QSize sizeHint() const; protected: void resizeEvent( QResizeEvent* ); void paintEvent( QPaintEvent* ); private: static const int NUM_BANDS = 10; void drawBackground(); void init_spline( float* x, float* y, int n, float* y2 ); float eval_spline( float xa[], float ya[], float y2a[], int n, float x ); QPixmap* m_backgroundPixmap; QPixmap* m_composePixmap;};#endif /*AMAROK_EQUALIZERGRAPH_H*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?