diff options
Diffstat (limited to 'src/gui/widgets/listbox.h')
-rw-r--r-- | src/gui/widgets/listbox.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h index 92505c15..4984a3ce 100644 --- a/src/gui/widgets/listbox.h +++ b/src/gui/widgets/listbox.h @@ -41,6 +41,16 @@ class ListBox : public gcn::ListBox ~ListBox(); /** + * Sets the font to render the text in. + * + * @param font the font to use. + */ + inline void setFont(gcn::Font *font) + { + mFont = font; + } + + /** * Draws the list box. */ void draw(gcn::Graphics *graphics); @@ -62,6 +72,9 @@ class ListBox : public gcn::ListBox void mouseDragged(gcn::MouseEvent &event); + private: + gcn::Font *mFont; + protected: static float mAlpha; }; |