hyprlock/src/renderer/widgets/Background.hpp

19 lines
405 B
C++
Raw Normal View History

2024-02-18 23:08:03 +00:00
#pragma once
#include "IWidget.hpp"
#include "../../helpers/Vector2D.hpp"
#include <string>
struct SPreloadedAsset;
class CBackground : public IWidget {
public:
CBackground(const Vector2D& viewport, const std::string& resourceID);
2024-02-19 16:26:08 +00:00
virtual bool draw(const SRenderData& data);
2024-02-18 23:08:03 +00:00
private:
Vector2D viewport;
std::string resourceID;
SPreloadedAsset* asset = nullptr;
};