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
5
namespace
ttx
{
6
// Represents the direction of splits.
7
enum class
Direction
{
8
None
,
// Case when is 0 or 1 children.
9
Horizontal
,
10
Vertical
,
11
};
12
13
constexpr
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
}
ttx
Definition
cursor_style.h:5
ttx::Direction
Direction
Definition
direction.h:7
ttx::Direction::Vertical
@ Vertical
Definition
direction.h:10
ttx::Direction::None
@ None
Definition
direction.h:8
ttx::Direction::Horizontal
@ Horizontal
Definition
direction.h:9
ttx::tag_invoke
constexpr auto tag_invoke(di::Tag< di::reflect >, di::InPlaceType< CursorStyle >)
Definition
cursor_style.h:16
lib
include
ttx
direction.h
Generated by
1.13.2