diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-18 02:00:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-18 02:00:19 +0300 |
commit | 43f84a5a22423b831b1d3a4b3572546803324dd4 (patch) | |
tree | 187459d3c84abae3d9001238b8314e577b68b107 /src/gui/widgets/dropdown.h | |
parent | 213bc274d777946f7c39e5f5ccd859e766aef4ae (diff) | |
download | manaplus-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.gz manaplus-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.bz2 manaplus-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.xz manaplus-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.h | 10 |
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 |