KDText::FontSize m_fontSize
KDPoint drawString(const char *text, KDPoint p, KDText::FontSize size=KDText::FontSize::Large, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite, int maxLength=-1)
static KDSize stringSize(const char *text, FontSize size=FontSize::Large)
TextView(KDText::FontSize size=KDText::FontSize::Large, float horizontalAlignment=0.0f, float verticalAlignment=0.0f, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite)
void drawRect(KDContext *ctx, KDRect rect) const override
virtual const char * text() const =0
void fillRect(KDRect rect, KDColor color)
void setAlignment(float horizontalAlignment, float verticalAlignment)
void setTextColor(KDColor textColor)
void setFontSize(KDText::FontSize fontSize)
void setBackgroundColor(KDColor backgroundColor)
KDSize minimalSizeForOptimalDisplay() const override