summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-03-14 21:47:09 +0100
committerDees Troy <dees_troy@teamw.in>2016-03-29 21:05:35 +0200
commita5db7121ab731d3d725ce77da46658dc098cfe45 (patch)
treecf2af66f5b4427818f1cc5f3bf7ab0f96bcd17ae /gui/objects.hpp
parentDetect and install custom themes as part of zip installs (diff)
downloadandroid_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.tar
android_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.tar.gz
android_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.tar.bz2
android_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.tar.lz
android_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.tar.xz
android_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.tar.zst
android_bootable_recovery-a5db7121ab731d3d725ce77da46658dc098cfe45.zip
Diffstat (limited to 'gui/objects.hpp')
-rw-r--r--gui/objects.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index 6c6fa5eb0..7913b36cb 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -192,8 +192,7 @@ public:
// Set maximum width in pixels
virtual int SetMaxWidth(unsigned width);
- // Set number of characters to skip (for scrolling)
- virtual int SkipCharCount(unsigned skip);
+ void SetText(string newtext);
public:
bool isHighlighted;
@@ -209,7 +208,6 @@ protected:
int mIsStatic;
int mVarChanged;
int mFontHeight;
- unsigned charSkip;
};
// GUIImage - Used for static image
@@ -1001,7 +999,10 @@ protected:
virtual int GetSelection(int x, int y);
// Handles displaying the text properly when chars are added, deleted, or for scrolling
- virtual int HandleTextLocation(int x);
+ void HandleTextLocation(int x);
+ void UpdateTextWidth();
+ void HandleCursorByTouch(int x);
+ void HandleCursorByText();
protected:
GUIText* mInputText;
@@ -1013,15 +1014,16 @@ protected:
std::string mLastValue;
std::string mVariable;
std::string mMask;
- std::string mMaskVariable;
+ std::string displayValue;
COLOR mBackgroundColor;
COLOR mCursorColor;
int scrollingX;
+ int cursorX;
int lastX;
int mCursorLocation;
int mBackgroundX, mBackgroundY, mBackgroundW, mBackgroundH;
int mFontY;
- unsigned skipChars;
+ int textWidth;
unsigned mFontHeight;
unsigned CursorWidth;
bool mRendered;