summaryrefslogtreecommitdiff
path: root/src/interface/DropDown.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/DropDown.h')
-rw-r--r--src/interface/DropDown.h4
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);