libyui-ncurses
Loading...
Searching...
No Matches
NCattribute Struct Reference

Static Public Member Functions

static int colors ()
static int color_pairs ()
static chtype color_pair (short fg, short bg)
static chtype color_pair (int i)
static short fg_color_pair (int i)
static short bg_color_pair (int i)
static int color_pair_of (chtype ch)
static short fg_color_of (chtype ch)
static short bg_color_of (chtype ch)
static chtype getStyle (chtype a)
static chtype getColor (chtype a)
static chtype getChar (chtype a)
static chtype getNonChar (chtype a)
static void setStyle (chtype &a, chtype ch)
static void setColor (chtype &a, chtype ch)
static void setChar (chtype &a, chtype ch)
static void addStyle (chtype &a, chtype ch)
static void delStyle (chtype &a, chtype ch)
static void toggleStyle (chtype &a, chtype ch)
static void addAlt (chtype &a)
static void delAlt (chtype &a)
static short getFg (chtype a)
static short getBg (chtype a)
static void setFg (chtype &a, short c)
static void setBg (chtype &a, short c)
static std::string colorAsString (short i)
static std::string color_pairAsString (int i)

Static Public Attributes

static int _colors = ::COLORS
static int _pairs = ::COLOR_PAIRS
static const chtype style_mask = A_ATTRIBUTES & ~A_COLOR & ~A_ALTCHARSET
static const chtype color_mask = A_COLOR
static const chtype char_mask = A_CHARTEXT | A_ALTCHARSET

Friends

class NCurses

Member Function Documentation

◆ color_pairAsString()

std::string NCattribute::color_pairAsString ( int i)
inlinestatic

String representation of color_pair "[fg,bg]"

◆ colorAsString()

std::string NCattribute::colorAsString ( short i)
inlinestatic

Color name


The documentation for this struct was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCstyle.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCstyle.cc