teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
teditor::AttrColor Struct Reference

#include <colors.h>

Public Member Functions

 AttrColor ()
 
 AttrColor (color_t in)
 
 AttrColor (color_t c, color_t a)
 
void set (color_t c, color_t a)
 
void clearAttr ()
 
void setBold ()
 
void setUnderline ()
 
void setItalic ()
 
bool isBold () const
 
bool isUnderline () const
 
bool isItalic () const
 
color_t color () const
 
void setColor (color_t col)
 

Public Attributes

color_t ac
 

Static Public Attributes

static const color_t Mask = (color_t)(1 << 8) - 1
 

Constructor & Destructor Documentation

◆ AttrColor() [1/3]

teditor::AttrColor::AttrColor ( )
inline

◆ AttrColor() [2/3]

teditor::AttrColor::AttrColor ( color_t  in)
inline

◆ AttrColor() [3/3]

teditor::AttrColor::AttrColor ( color_t  c,
color_t  a 
)
inline

Member Function Documentation

◆ clearAttr()

void teditor::AttrColor::clearAttr ( )
inline

◆ color()

color_t teditor::AttrColor::color ( ) const
inline

◆ isBold()

bool teditor::AttrColor::isBold ( ) const
inline

◆ isItalic()

bool teditor::AttrColor::isItalic ( ) const
inline

◆ isUnderline()

bool teditor::AttrColor::isUnderline ( ) const
inline

◆ set()

void teditor::AttrColor::set ( color_t  c,
color_t  a 
)
inline

◆ setBold()

void teditor::AttrColor::setBold ( )
inline

◆ setColor()

void teditor::AttrColor::setColor ( color_t  col)
inline

◆ setItalic()

void teditor::AttrColor::setItalic ( )
inline

◆ setUnderline()

void teditor::AttrColor::setUnderline ( )
inline

Member Data Documentation

◆ ac

color_t teditor::AttrColor::ac

◆ Mask

const color_t teditor::AttrColor::Mask = (color_t)(1 << 8) - 1
static

The documentation for this struct was generated from the following files: