summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-06-25 21:51:37 +0200
committerDees Troy <dees_troy@teamw.in>2015-07-14 16:00:35 +0200
commitf6b2066ff3b5dbe469424ecffdc024082b7d7395 (patch)
treef2400a223290378c692e11b6d1535725853ef57c /gui/objects.hpp
parentFix minor background bug in 480x800 xml (diff)
downloadandroid_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.tar
android_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.tar.gz
android_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.tar.bz2
android_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.tar.lz
android_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.tar.xz
android_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.tar.zst
android_bootable_recovery-f6b2066ff3b5dbe469424ecffdc024082b7d7395.zip
Diffstat (limited to 'gui/objects.hpp')
-rw-r--r--gui/objects.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index 881b39050..be1f9734f 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -853,6 +853,7 @@ protected:
};
int ParseKey(const char* keyinfo, Key& key, int& Xindex, int keyWidth, bool longpress);
void LoadKeyLabels(xml_node<>* parent, int layout);
+ void DrawKey(Key& key, int keyX, int keyY, int keyW, int keyH);
enum {
MAX_KEYBOARD_LAYOUTS = 5,
@@ -886,7 +887,8 @@ protected:
std::string mVariable;
int currentLayout;
bool CapsLockOn;
- int rowY, colX, highlightRenderCount;
+ int highlightRenderCount;
+ Key* currentKey;
bool hasHighlight, hasCapsHighlight;
COLOR mHighlightColor;
COLOR mCapsHighlightColor;
@@ -895,6 +897,7 @@ protected:
FontResource* mFont; // for main key labels
FontResource* mSmallFont; // for key labels like "?123"
FontResource* mLongpressFont; // for the small longpress label in the upper right corner
+ int longpressOffsetX, longpressOffsetY; // distance of the longpress label from the key corner
COLOR mLongpressFontColor;
COLOR mBackgroundColor; // keyboard background color
COLOR mKeyColorAlphanumeric; // key background color