diff options
| author | Simon 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) |
| commit | 136675b56a8a1862afb41ccee5c14e93e483b964 (patch) | |
| tree | 8f679477c5e1c0984a5cb9c169e339c1ca0d6e0c /src/interface/Textbox.h | |
| parent | 45563e97e813cfd21724ad1111e5de3e04679e1a (diff) | |
| download | powder-136675b56a8a1862afb41ccee5c14e93e483b964.zip powder-136675b56a8a1862afb41ccee5c14e93e483b964.tar.gz | |
Move style into Component
Diffstat (limited to 'src/interface/Textbox.h')
| -rw-r--r-- | src/interface/Textbox.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/interface/Textbox.h b/src/interface/Textbox.h index c29e01b..e502768 100644 --- a/src/interface/Textbox.h +++ b/src/interface/Textbox.h @@ -22,8 +22,6 @@ protected: std::string text; std::string displayText; ui::Point textPosition; - HorizontalAlignment textHAlign; - VerticalAlignment textVAlign; int cursor, cursorPosition; TextboxAction *actionCallback; bool masked; @@ -32,13 +30,9 @@ public: Textbox(Point position, Point size, std::string textboxText); virtual ~Textbox(); - virtual void TextPosition(); virtual void SetText(std::string text); virtual void SetDisplayText(std::string text); std::string GetText(); - HorizontalAlignment GetHAlignment() { return textHAlign; } - VerticalAlignment GetVAlignment() { return textVAlign; } - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign) { textHAlign = hAlign; textVAlign = vAlign; TextPosition(); } void SetActionCallback(TextboxAction * action) { actionCallback = action; } virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); |
