Files
EzUI/demo/kugou/lrcPanel.h

41 lines
670 B
C
Raw Normal View History

2026-01-28 15:00:12 +08:00
#pragma once
2026-01-25 23:46:14 +08:00
#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();
};