Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QColorOutputPrivate Class Reference
+ Collaboration diagram for QColorOutputPrivate:

Public Member Functions

 QColorOutputPrivate ()
 
void write (const QString &msg)
 
void insertColor (int id, QColorOutput::ColorCode code)
 
QColorOutput::ColorCode color (int id) const
 
bool containsColor (int id) const
 
void setSilent (bool silent)
 
bool isSilent () const
 
void setCurrentColorID (int colorId)
 
bool coloringEnabled () const
 

Static Public Member Functions

static QString escapeCode (const QString &in)
 

Static Public Attributes

static const char *const foregrounds []
 
static const char *const backgrounds []
 

Detailed Description

Definition at line 15 of file qcoloroutput.cpp.

Constructor & Destructor Documentation

◆ QColorOutputPrivate()

QColorOutputPrivate::QColorOutputPrivate ( )
inline

Definition at line 18 of file qcoloroutput.cpp.

Member Function Documentation

◆ color()

QColorOutput::ColorCode QColorOutputPrivate::color ( int id) const
inline

Definition at line 44 of file qcoloroutput.cpp.

References QHash< Key, T >::value().

Referenced by QColorOutput::colorify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coloringEnabled()

bool QColorOutputPrivate::coloringEnabled ( ) const
inline

Definition at line 52 of file qcoloroutput.cpp.

Referenced by QColorOutput::colorify().

+ Here is the caller graph for this function:

◆ containsColor()

bool QColorOutputPrivate::containsColor ( int id) const
inline

Definition at line 45 of file qcoloroutput.cpp.

References QHash< Key, T >::contains().

Referenced by QColorOutput::colorify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ escapeCode()

static QString QColorOutputPrivate::escapeCode ( const QString & in)
inlinestatic

Definition at line 32 of file qcoloroutput.cpp.

References QString::append().

Referenced by QColorOutput::colorify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertColor()

void QColorOutputPrivate::insertColor ( int id,
QColorOutput::ColorCode code )
inline

Definition at line 43 of file qcoloroutput.cpp.

References QHash< Key, T >::insert().

Referenced by QColorOutput::insertMapping().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isSilent()

bool QColorOutputPrivate::isSilent ( ) const
inline

Definition at line 48 of file qcoloroutput.cpp.

Referenced by QColorOutput::isSilent(), QColorOutput::write(), and QColorOutput::writeUncolored().

+ Here is the caller graph for this function:

◆ setCurrentColorID()

void QColorOutputPrivate::setCurrentColorID ( int colorId)
inline

Definition at line 50 of file qcoloroutput.cpp.

Referenced by QColorOutput::colorify().

+ Here is the caller graph for this function:

◆ setSilent()

void QColorOutputPrivate::setSilent ( bool silent)
inline

Definition at line 47 of file qcoloroutput.cpp.

Referenced by QColorOutput::setSilent().

+ Here is the caller graph for this function:

◆ write()

void QColorOutputPrivate::write ( const QString & msg)
inline

Definition at line 26 of file qcoloroutput.cpp.

References QString::toLocal8Bit().

Referenced by QColorOutput::write(), and QColorOutput::writeUncolored().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ backgrounds

const char *const QColorOutputPrivate::backgrounds
static
Initial value:
=
{
"0;40",
"0;44",
"0;42",
"0;46",
"0;41",
"0;45",
"0;43"
}

Definition at line 100 of file qcoloroutput.cpp.

Referenced by QColorOutput::colorify().

◆ foregrounds

const char *const QColorOutputPrivate::foregrounds
static
Initial value:
=
{
"0;30",
"0;34",
"0;32",
"0;36",
"0;31",
"0;35",
"0;33",
"0;37",
"1;30",
"1;34",
"1;32",
"1;36",
"1;31",
"1;35",
"1;33",
"1;37"
}

Definition at line 80 of file qcoloroutput.cpp.

Referenced by QColorOutput::colorify().


The documentation for this class was generated from the following file: