45 mTextView.init(width, height);
48 void onResize(uint width, uint height)
override final
50 mTextView.resize(width, height);
53 void onDraw(uint viewId)
override final
55 auto fbh = DerivedRenderApp::DRW::canvasFrameBuffer(derived());
60 void enableText(
bool b =
true) { mTextView.enableText(
b); }
62 bool isTextEnabled()
const {
return mTextView.isTextEnabled(); }
74 void clearText() { mTextView.clearText(); }
76 void appendStaticText(
78 const std::string&
text,
79 const Color& color = Color::Black)
81 mTextView.appendStaticText(
pos,
text, color);
84 void appendTransientText(
86 const std::string&
text,
87 const Color& color = Color::Black)
89 mTextView.appendTransientText(
pos,
text, color);
95 const auto* derived()
const
Definition text_drawer.h:33
Definition text_view.h:32