1 #ifndef WOLF_LABEL_BOX_HPP_INCLUDED
2 #define WOLF_LABEL_BOX_HPP_INCLUDED
3 
4 #include "Widget.hpp"
5 #include "NanoVG.hpp"
6 #include "WolfWidget.hpp"
7 
8 START_NAMESPACE_DISTRHO
9 
10 class LabelBox : public WolfWidget
11 {
12   public:
13     explicit LabelBox(Widget  *widget, Size<uint> size) noexcept;
14 
15     void setFontSize(float fontSize);
16     float getFontSize();
17 
18     void setText(const char *text);
19     const char *getText();
20 
21     void setFontId(NanoVG::FontId fontId);
22     NanoVG::FontId getFontId();
23 
24   protected:
25     void onNanoDisplay() override;
26 
27   private:
28     const char *fText;
29     float fFontSize;
30     NanoVG::FontId fFontId;
31 
32     DISTRHO_LEAK_DETECTOR(LabelBox)
33 };
34 
35 END_NAMESPACE_DISTRHO
36 
37 #endif