MauiKit Terminal
Character.h
136 return a.character == b.character && a.rendition == b.rendition && a.foregroundColor == b.foregroundColor && a.backgroundColor == b.backgroundColor;
141 return a.character != b.character || a.rendition != b.rendition || a.foregroundColor != b.foregroundColor || a.backgroundColor != b.backgroundColor;
146 return ((backgroundColor._colorSpace == COLOR_SPACE_DEFAULT) && base[backgroundColor._u + 0 + (backgroundColor._v ? BASE_COLORS : 0)].transparent)
147 || ((backgroundColor._colorSpace == COLOR_SPACE_SYSTEM) && base[backgroundColor._u + 2 + (backgroundColor._v ? BASE_COLORS : 0)].transparent);
152 return backgroundColor == other.backgroundColor && foregroundColor == other.foregroundColor && rendition == other.rendition;
Describes the color of a single character in the terminal.
Definition CharacterColor.h:141
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition Character.h:63
ColorEntry::FontWeight fontWeight(const ColorEntry *base) const
Returns true if this character should always be drawn in bold when it is drawn with the specified pal...
Definition Character.h:155
bool isTransparent(const ColorEntry *palette) const
Returns true if this character has a transparent background when it is drawn with the specified palet...
Definition Character.h:144
CharacterColor foregroundColor
The foreground color used to draw this character.
Definition Character.h:101
constexpr Character(quint16 _c=' ', CharacterColor _f=CharacterColor(COLOR_SPACE_DEFAULT, DEFAULT_FORE_COLOR), CharacterColor _b=CharacterColor(COLOR_SPACE_DEFAULT, DEFAULT_BACK_COLOR), quint8 _r=DEFAULT_RENDITION)
Constructs a new character.
Definition Character.h:73
friend bool operator!=(const Character &a, const Character &b)
Compares two characters and returns true if they have different unicode character values,...
Definition Character.h:139
CharacterColor backgroundColor
The color used to draw this character's background.
Definition Character.h:103
friend bool operator==(const Character &a, const Character &b)
Compares two characters and returns true if they have the same unicode character value,...
Definition Character.h:134
quint16 charSequence
Experimental addition which allows a single Character instance to contain more than one unicode chara...
Definition Character.h:94
quint8 rendition
A combination of RENDITION flags which specify options for drawing the character.
Definition Character.h:98
bool equalsFormat(const Character &other) const
returns true if the format (color, rendition flag) of the compared characters is equal
Definition Character.h:150
FontWeight
Specifies the weight to use when drawing text with this color.
Definition CharacterColor.h:50
@ UseCurrentFormat
Use the current font weight set by the terminal application.
Definition CharacterColor.h:59
bool transparent
If true character backgrounds using this color should be transparent.
Definition CharacterColor.h:93
A table which stores sequences of unicode characters, referenced by hash keys.
Definition Character.h:172
std::span< const ushort > lookupExtendedChar(ushort hash, ushort &length) const
Looks up and returns a pointer to a sequence of unicode characters which was added to the table using...
Definition Emulation.cpp:431
ushort createExtendedChar(ushort *unicodePoints, ushort length)
Adds a sequences of unicode characters to the table and returns a hash code which can be used later t...
Definition Emulation.cpp:401
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.