summaryrefslogtreecommitdiff
path: root/include/ncurses/char_attributes.hpp
blob: 9d45488a71da72b83406539853c1eb488596f791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef INCLUDE_NCURSES_CHAR_ATTRIBUTES_HPP_
#define INCLUDE_NCURSES_CHAR_ATTRIBUTES_HPP_

#include <ncurses/utils/preamble.hpp>

#include <ncurses/utils/flags.hpp>

namespace NCURSES_CPP_NAMESPACE {

enum class attr : attr_t {
  normal = A_NORMAL,
  attributes = A_ATTRIBUTES,
  chartext = A_CHARTEXT,
  color = A_COLOR,
  standout = A_STANDOUT,
  underline = A_UNDERLINE,
  reverse = A_REVERSE,
  blink = A_BLINK,
  dim = A_DIM,
  bold = A_BOLD,
  altcharset = A_ALTCHARSET,
  invis = A_INVIS,
  protect = A_PROTECT,
  italic = A_ITALIC,
  // WA attributes for only attr_on, attr_off and attr_set
  horizontal = A_HORIZONTAL,
  left = A_LEFT,
  low = A_LOW,
  right = A_RIGHT,
  top = A_TOP,
  vertical = A_VERTICAL,
};

template <> struct is_bitmask<attr> : public std::true_type {};

using attr_flags = flags<attr>;

} // namespace NCURSES_CPP_NAMESPACE

#endif // INCLUDE_NCURSES_CHAR_ATTRIBUTES_HPP_