From b930f7f858b0ad91206939ed1b6d5695bc10f9cc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Oct 2013 15:02:06 +0300 Subject: use different item padding in listbox and extendedlistbox depend on DPI. --- src/gui/widgets/listbox.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/widgets/listbox.h') 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; -- cgit v1.2.3-70-g09d2