18 lines
331 B
C++
18 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;
|
|
};
|
|
}
|