From 4a9ce6e2555dfaf9155fa279f25667350377f688 Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Sat, 15 Mar 2025 18:03:23 +0400 Subject: feat: chtype wrap --- include/ncurses/char_attributes.hpp | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 include/ncurses/char_attributes.hpp (limited to 'include/ncurses/char_attributes.hpp') diff --git a/include/ncurses/char_attributes.hpp b/include/ncurses/char_attributes.hpp new file mode 100644 index 0000000..9d45488 --- /dev/null +++ b/include/ncurses/char_attributes.hpp @@ -0,0 +1,40 @@ +#ifndef INCLUDE_NCURSES_CHAR_ATTRIBUTES_HPP_ +#define INCLUDE_NCURSES_CHAR_ATTRIBUTES_HPP_ + +#include + +#include + +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 : public std::true_type {}; + +using attr_flags = flags; + +} // namespace NCURSES_CPP_NAMESPACE + +#endif // INCLUDE_NCURSES_CHAR_ATTRIBUTES_HPP_ -- cgit v1.2.3