summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAngelo Castellani <udp.castellani@gmail.com>2011-05-12 01:25:29 -0400
committerStefan Dombrowski <stefan@uni-bonn.de>2011-05-13 11:06:00 +0200
commit9641f4c6c24656a73ee759f7c176ba682ae01acf (patch)
tree27836da80454d51c35c9b16b8e6191e3827406c7 /src/gui/widgets
parent1d6311a5ffde800ece8d3085fb5fe7c2c9c50a58 (diff)
downloadmana-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')
-rw-r--r--src/gui/widgets/listbox.h13
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;
};