Commit cabe292e authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Kurt Hindenburg
Browse files

Remove CharacterFormat class

It is not used anywhere.
parent 4ad22a7f
Pipeline #193492 passed with stage
in 2 minutes and 29 seconds
set(konsolecharacters_SRCS
CharacterFormat.cpp
CharacterWidth.cpp
Hangul.cpp
LineBlockCharacters.cpp
......
/*
SPDX-FileCopyrightText: 1997, 1998 Lars Doelle <lars.doelle@on-line.de>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "CharacterFormat.h"
using namespace Konsole;
bool CharacterFormat::equalsFormat(const CharacterFormat &other) const
{
return (other.rendition & ~RE_EXTENDED_CHAR) == (rendition & ~RE_EXTENDED_CHAR) && other.fgColor == fgColor && other.bgColor == bgColor;
}
bool CharacterFormat::equalsFormat(const Character &c) const
{
return (c.rendition & ~RE_EXTENDED_CHAR) == (rendition & ~RE_EXTENDED_CHAR) && c.foregroundColor == fgColor && c.backgroundColor == bgColor;
}
void CharacterFormat::setFormat(const Character &c)
{
rendition = c.rendition;
fgColor = c.foregroundColor;
bgColor = c.backgroundColor;
isRealCharacter = c.isRealCharacter;
}
/*
SPDX-FileCopyrightText: 1997, 1998 Lars Doelle <lars.doelle@on-line.de>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef CHARACTERFORMAT_H
#define CHARACTERFORMAT_H
#include "Character.h"
namespace Konsole
{
class CharacterFormat
{
public:
bool equalsFormat(const CharacterFormat &other) const;
bool equalsFormat(const Character &c) const;
void setFormat(const Character &c);
CharacterColor fgColor, bgColor;
quint16 startPos;
RenditionFlags rendition;
bool isRealCharacter;
};
}
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment