Consolix
Loading...
Searching...
No Matches
ColorManipulator.hpp File Reference

Provides utilities for changing text color in streams. More...

#include <iostream>

Go to the source code of this file.

Classes

class  consolix::ColorManipulator
 A utility class for managing text color in streams. More...
 

Namespaces

namespace  consolix
 < Utility modules and helpers.
 

Macros

#define _CONSOLIX_COLOR_MANIPULATOR_HPP_INCLUDED
 
#define CONSOLIX_DEFAULT_COLOR   consolix::TextColor::LightGray
 Default text color.
 

Functions

ColorManipulator consolix::color (TextColor color)
 Creates a color manipulator for use in output streams.
 
std::ostream & consolix::operator<< (std::ostream &os, const ColorManipulator &manip)
 Overloads the stream operator to apply text color.
 

Detailed Description

Provides utilities for changing text color in streams.

Definition in file ColorManipulator.hpp.

Macro Definition Documentation

◆ _CONSOLIX_COLOR_MANIPULATOR_HPP_INCLUDED

#define _CONSOLIX_COLOR_MANIPULATOR_HPP_INCLUDED

Definition at line 3 of file ColorManipulator.hpp.

◆ CONSOLIX_DEFAULT_COLOR

#define CONSOLIX_DEFAULT_COLOR   consolix::TextColor::LightGray

Default text color.

Definition at line 11 of file ColorManipulator.hpp.