mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
17 lines
331 B
C++
17 lines
331 B
C++
#pragma once
|
|
|
|
#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;
|
|
};
|
|
}
|