Files
MuditaOS/module-gui/gui/widgets/text/TextBubble.cpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

25 lines
642 B
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#include "TextBubble.hpp"
namespace gui
{
TextBubble::TextBubble(Item *parent, Position x, Position y, Length w, Length h) : Text(parent, x, y, w, h)
{
setEditMode(EditMode::Scroll);
setEdges(RectangleEdge::All);
setCursorStartPosition(CursorStartPosition::DocumentBegin);
}
void TextBubble::setYaps(RectangleYap yaps)
{
if (this->yaps != yaps) {
this->yaps = yaps;
drawLines();
}
}
} // namespace gui