terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
83 static QString
code(
const Color &foreground,
94 static QString
code(
const Color &color,
const bool isBackground,
95 const bool forceTrueColor);
100 static QString
end();
148 quint8
green()
const;
194 int predefinedValue()
const;
bool operator==(const Color &other) const
Returns true is other is the same.
Definition: tgcolor.cpp:103
@ Black
Default black color, depends on terminal settings.
bool isTrueColor() const
Returns true if Color is 24 bit (as opposed to Predefined).
Definition: tgcolor.cpp:98
quint8 blue() const
Returns intensity of blue color.
Definition: tgcolor.cpp:72
quint8 red() const
Returns intensity of red color.
Definition: tgcolor.cpp:62
Predefined predefined() const
Returns a Predefined color value if Color is not 24 bit, or Predefined::Invalid otherwise.
Definition: tgcolor.cpp:77
@ Red
Default red color, depends on terminal settings.
@ LightCyan
Default lighter cyan color, depends on terminal settings.
static QString end()
Returns ANSI sequence which ends color definition.
Definition: tgcolor.cpp:50
@ LightYellow
Default lighter yellow color, depends on terminal settings.
Predefined
Contains predefined colors supported by all terminals, including the oldest ones.
Definition: tgcolor.h:34
All Terminal GUI classes (both core and widgets) are defined within the Tg namespace.
Definition: tgcolor.h:6
@ White
Default white color, depends on terminal settings.
QString rgb() const
Returns 24 bit color information in a format understood by the terminal.
Definition: tgcolor.cpp:55
@ Blue
Default blue color, depends on terminal settings.
@ Pink
Default pink color, depends on terminal settings.
@ Invalid
Color is not defined and cannot be drawn. Used to indicate unset colors.
@ Empty
Color is defined as empty - default terminal color will be used.
Represents colors in a terminal.
Definition: tgcolor.h:20
bool isPredefined() const
Returns true is Color type is Predefined (as opposed to 24 bit color).
Definition: tgcolor.cpp:93
bool operator!=(const Color &other) const
Returns true if other is different.
Definition: tgcolor.cpp:114
@ Yellow
Default yellow color, depends on terminal settings.
@ Magenta
Default magenta color, depends on terminal settings.
@ Cyan
Default cyan color, depends on terminal settings.
@ Gray
Default gray color, depends on terminal settings.
static QString code(const Color &foreground, const Color &background=Color::Predefined::Empty)
Returns ANSI-coded sequence, as understood by terminal, for given foreground color and background col...
Definition: tgcolor.cpp:19
Color()
Constructs a color of type Predefined (it's set to Predefined::Invalid).
Definition: tgcolor.cpp:5
@ LightGreen
Default lighter green color, depends on terminal settings.
@ LightMagenta
Default lighter magenta color, depends on terminal settings.
quint8 green() const
Returns intensity of green color.
Definition: tgcolor.cpp:67
@ Green
Default green color, depends on terminal settings.
@ LightBlue
Default lighter blue color, depends on terminal settings.
bool isEmpty() const
Returns true if a Predefined color is Predefined::Empty.
Definition: tgcolor.cpp:82