diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-13 20:11:02 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-13 20:11:02 (GMT) |
| commit | 4bb90d0d79d983c2f6d16af4575661b845a3d72f (patch) | |
| tree | fd5b17495cb5169defa6095adcc816f18486afcd /src/interface/DropDown.h | |
| parent | 41e1d28c56b6e4b9b380022e9220161c57612006 (diff) | |
| download | powder-4bb90d0d79d983c2f6d16af4575661b845a3d72f.zip powder-4bb90d0d79d983c2f6d16af4575661b845a3d72f.tar.gz | |
Text alignment for dropdown, make sign UI nice
Diffstat (limited to 'src/interface/DropDown.h')
| -rw-r--r-- | src/interface/DropDown.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/DropDown.h b/src/interface/DropDown.h index 40fac68..dabd4ec 100644 --- a/src/interface/DropDown.h +++ b/src/interface/DropDown.h @@ -27,13 +27,17 @@ class DropDown: public ui::Component { 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); |
