summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-18 02:00:19 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-18 02:00:19 +0300
commit43f84a5a22423b831b1d3a4b3572546803324dd4 (patch)
tree187459d3c84abae3d9001238b8314e577b68b107 /src/gui/widgets/dropdown.h
parent213bc274d777946f7c39e5f5ccd859e766aef4ae (diff)
downloadmanaverse-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.gz
manaverse-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.bz2
manaverse-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.xz
manaverse-43f84a5a22423b831b1d3a4b3572546803324dd4.zip
Extend dropdown theming.
New options in dropdown.xml: padding - text padding from all sides imagePadding - image padding from right frameSize - frame size
Diffstat (limited to 'src/gui/widgets/dropdown.h')
-rw-r--r--src/gui/widgets/dropdown.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/dropdown.h b/src/gui/widgets/dropdown.h
index 1dd2f5a35..9e9851f24 100644
--- a/src/gui/widgets/dropdown.h
+++ b/src/gui/widgets/dropdown.h
@@ -29,6 +29,7 @@
class Image;
class ImageRect;
+class Skin;
/**
* A drop down box from which you can select different values.
@@ -85,6 +86,12 @@ class DropDown final : public gcn::DropDown
std::string getSelectedString() const;
+ void adjustHeight();
+
+ void dropDown() override;
+
+ void foldUp() override;
+
protected:
/**
* Draws the button with the little down arrow.
@@ -95,12 +102,15 @@ class DropDown final : public gcn::DropDown
gcn::Color mShadowColor;
gcn::Color mHighlightColor;
+ int mPadding;
+ int mImagePadding;
// Add own Images.
static int instances;
static Image *buttons[2][2];
static ImageRect skinRect;
static float mAlpha;
+ static Skin *mSkin;
};
#endif // end DROPDOWN_H