49 virtual const i8*
name()
const;
virtual style & set_attr_enabled(attrset_t, bool)
Enable/disable a set of text formatting attributes.
This abstract class serves as the root of the class hierarchy tree.
virtual style * clone() const
Object virtual copy constructor.
virtual style & set_fgcolor(color_t)
Set the foreground color.
virtual style & to_string(string &) const
Set a string with all the style escape sequences.
char i8
8-bit signed integer
virtual style & apply(string &) const
Apply the style to some text.
A set of formatting attributes for VT100 (and compatible) terminals.
virtual const i8 * name() const
Get the style name.
u8 color_t
VT100 terminal color.
virtual style & set_name(const i8 *)
Set the style name.
virtual style & operator=(const style &)
Assignment operator.
static enum csdbg::style::@1 vt100_palette
Basic palette of VT100 terminals.
virtual attrset_t attributes() const
Get the text formatting attributes.
virtual color_t fgcolor() const
Get the foreground color.
virtual color_t bgcolor() const
Get the background color.
attrset_t m_attributes
Text formatting attribute bitmask.
Class csdbg::string definition.
color_t m_bgcolor
Background color.
static enum csdbg::style::@0 vt100_attributes
Text formatting attributes of VT100 terminals.
virtual style & set_bgcolor(color_t)
Set the background color.
u16 attrset_t
VT100 attribute bitmask.
virtual bool is_attr_enabled(attrset_t) const
Check if a set of text formatting attributes is enabled.
style(const i8 *, color_t=WHITE, color_t=CLEAR, attrset_t=0)
Object constructor.
color_t m_fgcolor
Foreground (text) color.
virtual style & set_attributes(attrset_t)
Set the text formatting attributes.
virtual ~style()
Object destructor.