voxelcore/src/graphics/ui/elements/commons.hpp
2025-11-14 20:56:11 +03:00

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;
};
}