mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
20 lines
447 B
C++
20 lines
447 B
C++
#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_
|