diff options
author | Angelo Castellani <udp.castellani@gmail.com> | 2011-05-12 01:25:29 -0400 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-05-13 11:06:00 +0200 |
commit | 9641f4c6c24656a73ee759f7c176ba682ae01acf (patch) | |
tree | 27836da80454d51c35c9b16b8e6191e3827406c7 /src/gui/widgets/listbox.h | |
parent | 1d6311a5ffde800ece8d3085fb5fe7c2c9c50a58 (diff) | |
download | mana-9641f4c6c24656a73ee759f7c176ba682ae01acf.tar.gz mana-9641f4c6c24656a73ee759f7c176ba682ae01acf.tar.bz2 mana-9641f4c6c24656a73ee759f7c176ba682ae01acf.tar.xz mana-9641f4c6c24656a73ee759f7c176ba682ae01acf.zip |
Made the setup keyboard tab prettier.
Incidentally I added support for a monospaced font (which may come in handy).
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; }; |