备份
This commit is contained in:
40
demo/kugou/lrcPanel.h
Normal file
40
demo/kugou/lrcPanel.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
#include "global.h"
|
||||
class Lrc
|
||||
{
|
||||
public:
|
||||
int postion;
|
||||
UIString text;
|
||||
Point point;
|
||||
Lrc(int postionInt, const UIString& text, Point point)
|
||||
{
|
||||
this->postion = postionInt;
|
||||
this->text = text;
|
||||
this->point = point;
|
||||
}
|
||||
~Lrc() {
|
||||
int a = 0;
|
||||
}
|
||||
};
|
||||
|
||||
class LrcPanel :
|
||||
public Control
|
||||
{
|
||||
float offsetY = 0;
|
||||
Lrc* LrcNow = NULL;
|
||||
Timer* timer = NULL;
|
||||
int VerticalCenter = 0;
|
||||
std::vector<Lrc*> LrcList;
|
||||
int marginVertical = 40;
|
||||
int FontHeight = 30;
|
||||
public:
|
||||
LrcPanel();
|
||||
virtual ~LrcPanel();
|
||||
void Task();
|
||||
void ChangePostion(int postion);
|
||||
|
||||
void OnBackgroundPaint(PaintEventArgs& arg)override;
|
||||
void LoadLrc(const UIString& lrcData);
|
||||
void Clear();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user