mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-19 14:00:55 -04:00
25 lines
566 B
C++
25 lines
566 B
C++
#pragma once
|
|
|
|
#include "Text.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
|
|
class TextFixedSize : public Text
|
|
{
|
|
protected:
|
|
unsigned int linesCount = style::text::maxTextLines;
|
|
Position underlinePadding = 0;
|
|
|
|
void drawLines() override;
|
|
bool onDimensionChanged(const BoundingBox &oldDim, const BoundingBox &newDim) override;
|
|
|
|
public:
|
|
TextFixedSize(Item *parent, Position x, Position y, Length w, Length h);
|
|
|
|
void setLines(const unsigned int val);
|
|
void setUnderlinePadding(Position val);
|
|
};
|
|
|
|
} // namespace gui
|