mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-22 01:40:02 +01:00
19 lines
382 B
C++
19 lines
382 B
C++
|
|
#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;
|
||
|
|
};
|