-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenWindow.h
47 lines (38 loc) · 971 Bytes
/
OpenWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef SFMLSET_OPENWINDOW_H
#define SFMLSET_OPENWINDOW_H
#include <iostream>
#include <SFML/Graphics.hpp>
#include <dirent.h>
#include "FileTree.h"
#include "Image.h"
#include "State.h"
#include <filesystem>
using namespace std;
using namespace std::__fs::filesystem;
class OpenWindow: public sf::Transformable, public sf::Drawable
{
private:
/* data */
sf::RenderWindow popWin;
sf::Color popWinColor = sf::Color(50, 50, 50);
sf::Event popWinEvent{};
bool open;
bool tree;
FileTree floder;
Item input;
string click;
string loc;
public:
// Default constructor
OpenWindow();
// While pop is Open
void winOpen();
void WindowSet();
void initialClick(){click = "Null";}
void PushTree(path str);
string ReturnClick();
void update();
virtual void draw(sf::RenderTarget& window, sf::RenderStates states) const;
void addEventHandler(sf::RenderWindow& window, sf::Event event);
};
#endif