hyprlock/src/renderer/widgets/Background.hpp

19 lines
382 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);
virtual bool draw();
private:
Vector2D viewport;
std::string resourceID;
SPreloadedAsset* asset = nullptr;
};