summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-07 20:25:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-07 20:25:34 +0300
commitf34f096ee0f3c2e66eec7dc024dd18a74698840f (patch)
treed061471178dce461038d4af000c9e4535bd703ad /src/gui/widgets/listbox.h
parentd6c201415ccf5b1ceebf92fc588f22dc20f9bd81 (diff)
downloadplus-f34f096ee0f3c2e66eec7dc024dd18a74698840f.tar.gz
plus-f34f096ee0f3c2e66eec7dc024dd18a74698840f.tar.bz2
plus-f34f096ee0f3c2e66eec7dc024dd18a74698840f.tar.xz
plus-f34f096ee0f3c2e66eec7dc024dd18a74698840f.zip
add support for centered text in listbox.
Diffstat (limited to 'src/gui/widgets/listbox.h')
-rw-r--r--src/gui/widgets/listbox.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h
index 113174332..dd22ca431 100644
--- a/src/gui/widgets/listbox.h
+++ b/src/gui/widgets/listbox.h
@@ -82,7 +82,7 @@ class ListBox : public gcn::ListBox,
void refocus();
- void setDistributeMousePressed(bool b)
+ void setDistributeMousePressed(const bool b)
{ mDistributeMousePressed = b; }
virtual void adjustSize();
@@ -91,6 +91,9 @@ class ListBox : public gcn::ListBox,
virtual int getSelectionByMouse(const int y) const;
+ void setCenter(const bool b)
+ { mCenterText = b; }
+
protected:
gcn::Color mHighlightColor;
gcn::Color mForegroundColor2;
@@ -101,6 +104,7 @@ class ListBox : public gcn::ListBox,
Skin *mSkin;
static float mAlpha;
bool mDistributeMousePressed;
+ bool mCenterText;
};
#endif // GUI_WIDGETS_LISTBOX_H