This commit is contained in:
睿 安
2026-01-25 23:46:14 +08:00
parent 2a2a3d68d8
commit 37e7d278bd
727 changed files with 193377 additions and 7 deletions

40
demo/kugou/lrcPanel.h Normal file
View 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();
};