Hymn to Beauty
C++ 3D Engine
FolderNameWindow.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <string>
5
6namespace GUI {
9 public:
11 FolderNameWindow() = default;
12
14 void Show();
15
17
20 bool IsVisible() const;
21
23
26 void SetVisible(bool visible);
27
29
32 void SetClosedCallback(const std::function<void(const std::string&)>& callback);
33
34 private:
35 std::function<void(const std::string&)> closedCallback;
36
37 bool visible = false;
38 char name[128] = {'\0'};
39};
40} // namespace GUI
A window that asks the user for the name of the folder to create.
Definition: FolderNameWindow.hpp:8
void SetClosedCallback(const std::function< void(const std::string &)> &callback)
Set function to call when closed.
Definition: FolderNameWindow.cpp:37
FolderNameWindow()=default
Default constructor.
bool IsVisible() const
Get whether the window is visible.
Definition: FolderNameWindow.cpp:33
void SetVisible(bool visible)
Set whether the window should be visible.
Definition: FolderNameWindow.cpp:29
void Show()
Show the window and let the user enter a name.
Definition: FolderNameWindow.cpp:7
Definition: AssetEditor.hpp:9