graphics/ui/elements/containers deleted

This commit is contained in:
MihailRis
2024-04-20 21:48:26 +03:00
parent c82d95b97d
commit 85f7febd30
21 changed files with 514 additions and 495 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef GRAPHICS_UI_ELEMENTS_COMMONS_HPP_
#define GRAPHICS_UI_ELEMENTS_COMMONS_HPP_
#include <functional>
namespace gui {
enum class Orientation { vertical, horizontal };
using ontimeout = std::function<void()>;
struct IntervalEvent {
ontimeout callback;
float interval;
float timer;
// -1 - infinity, 1 - one time event
int repeat;
};
}
#endif // GRAPHICS_UI_ELEMENTS_COMMONS_HPP_