diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-16 03:22:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-16 03:25:37 +0300 |
commit | 82cc576b7896f39bcf71aa85c8c4b3ef786c065b (patch) | |
tree | 2207f3bb4a0b1fa896fe183da245287525d65117 /src/gui/widgets/listbox.h | |
parent | 6bbe09af6faa77df40112e7cf876877ef11ce74b (diff) | |
download | manaverse-82cc576b7896f39bcf71aa85c8c4b3ef786c065b.tar.gz manaverse-82cc576b7896f39bcf71aa85c8c4b3ef786c065b.tar.bz2 manaverse-82cc576b7896f39bcf71aa85c8c4b3ef786c065b.tar.xz manaverse-82cc576b7896f39bcf71aa85c8c4b3ef786c065b.zip |
Add listbox padding.
New theme file: listbox.xml
Theme option: padding
Diffstat (limited to 'src/gui/widgets/listbox.h')
-rw-r--r-- | src/gui/widgets/listbox.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h index c9a70557f..0512183d1 100644 --- a/src/gui/widgets/listbox.h +++ b/src/gui/widgets/listbox.h @@ -28,6 +28,7 @@ #include "localconsts.h" class SelectionListener; +class Skin; /** * A list box, meant to be used inside a scroll area. Same as the Guichan list @@ -70,6 +71,8 @@ class ListBox : public gcn::ListBox void mousePressed(gcn::MouseEvent &event) override; + void mousePressed1(gcn::MouseEvent &event); + void mouseDragged(gcn::MouseEvent &event) override; void refocus(); @@ -85,7 +88,10 @@ class ListBox : public gcn::ListBox gcn::Color mHighlightColor; bool mDistributeMousePressed; int mOldSelected; + int mPadding; static float mAlpha; + static Skin *mSkin; + static int mInstances; }; #endif |