ttx 0.1.0
Loading...
Searching...
No Matches
direction.h
Go to the documentation of this file.
1#pragma once
2
3#include "di/reflect/prelude.h"
4
5namespace ttx {
6// Represents the direction of splits.
7enum class Direction {
8 None, // Case when is 0 or 1 children.
11};
12
13constexpr auto tag_invoke(di::Tag<di::reflect>, di::InPlaceType<Direction>) {
14 using enum Direction;
15 return di::make_enumerators<"Direction">(di::enumerator<"None", None>, di::enumerator<"Horitzontal", Horizontal>,
16 di::enumerator<"Vertical", Vertical>);
17}
18}
Definition cursor_style.h:5
Direction
Definition direction.h:7
@ Vertical
Definition direction.h:10
@ None
Definition direction.h:8
@ Horizontal
Definition direction.h:9
constexpr auto tag_invoke(di::Tag< di::reflect >, di::InPlaceType< CursorStyle >)
Definition cursor_style.h:16