mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
graphics/ui/elements/containers deleted
This commit is contained in:
parent
c82d95b97d
commit
85f7febd30
21 changed files with 514 additions and 495 deletions
20
src/graphics/ui/elements/commons.hpp
Normal file
20
src/graphics/ui/elements/commons.hpp
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue