mirror of
https://github.com/Alia5/GlosSI.git
synced 2024-10-30 15:20:38 +00:00
21 lines
393 B
C++
21 lines
393 B
C++
#pragma once
|
|
#include <functional>
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
class TargetWindow
|
|
{
|
|
public:
|
|
explicit TargetWindow(std::function<void()> on_close = [](){});
|
|
|
|
void setFpsLimit(unsigned int fps_limit);
|
|
void setClickThrough(bool click_through);
|
|
void update();
|
|
void close();
|
|
|
|
private:
|
|
const std::function<void()> on_close_;
|
|
sf::RenderWindow window_;
|
|
};
|
|
|