summaryrefslogtreecommitdiff
path: root/src/interface/DropDown.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
commit136675b56a8a1862afb41ccee5c14e93e483b964 (patch)
tree8f679477c5e1c0984a5cb9c169e339c1ca0d6e0c /src/interface/DropDown.h
parent45563e97e813cfd21724ad1111e5de3e04679e1a (diff)
downloadpowder-136675b56a8a1862afb41ccee5c14e93e483b964.zip
powder-136675b56a8a1862afb41ccee5c14e93e483b964.tar.gz
Move style into Component
Diffstat (limited to 'src/interface/DropDown.h')
-rw-r--r--src/interface/DropDown.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/interface/DropDown.h b/src/interface/DropDown.h
index dabd4ec..813c035 100644
--- a/src/interface/DropDown.h
+++ b/src/interface/DropDown.h
@@ -24,20 +24,13 @@ public:
};
class DropDown: public ui::Component {
friend class DropDownWindow;
- Colour background, activeBackground;
- Colour border, activeBorder;
- Colour text, activeText;
- Point textPosition;
bool isMouseInside;
int optionIndex;
DropDownAction * callback;
std::vector<std::pair<std::string, int> > options;
- HorizontalAlignment textHAlign;
- VerticalAlignment textVAlign;
public:
DropDown(Point position, Point size);
std::pair<std::string, int> GetOption();
- void TextPosition();
void SetOption(int option);
void SetOption(std::string option);
void AddOption(std::pair<std::string, int> option);