summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-08 15:02:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-08 17:06:36 +0300
commitb930f7f858b0ad91206939ed1b6d5695bc10f9cc (patch)
tree2b6d2be95b1f387399709e99ffedf050866f534a /src/gui/widgets/listbox.h
parent4c404e75a4e36d2d3151200e09990a9b6e82dacf (diff)
downloadmanaplus-b930f7f858b0ad91206939ed1b6d5695bc10f9cc.tar.gz
manaplus-b930f7f858b0ad91206939ed1b6d5695bc10f9cc.tar.bz2
manaplus-b930f7f858b0ad91206939ed1b6d5695bc10f9cc.tar.xz
manaplus-b930f7f858b0ad91206939ed1b6d5695bc10f9cc.zip
use different item padding in listbox and extendedlistbox depend on DPI.
Diffstat (limited to 'src/gui/widgets/listbox.h')
-rw-r--r--src/gui/widgets/listbox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h
index 27e24a030..865a67216 100644
--- a/src/gui/widgets/listbox.h
+++ b/src/gui/widgets/listbox.h
@@ -98,6 +98,12 @@ class ListBox : public gcn::ListBox,
int getPressedIndex()
{ return mPressedIndex; }
+ unsigned int getRowHeight() const override A_WARN_UNUSED
+ { return mRowHeight; }
+
+ void setRowHeight(unsigned int n)
+ { mRowHeight = n; }
+
protected:
gcn::Color mHighlightColor;
gcn::Color mForegroundSelectedColor;
@@ -105,6 +111,8 @@ class ListBox : public gcn::ListBox,
int mOldSelected;
int mPadding;
int mPressedIndex;
+ unsigned int mRowHeight;
+ int mItemPadding;
Skin *mSkin;
static float mAlpha;
bool mDistributeMousePressed;