summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-19 22:51:24 +0100
committerDees Troy <dees_troy@teamw.in>2015-02-21 15:34:19 +0100
commita999821ad46ac19fae34fec78d538423ff6e5adc (patch)
tree9efb3173f5c720e80d08555cf589141d359c8b33 /gui/objects.hpp
parentReplace Auto_Generated name spaces with underscores. (diff)
downloadandroid_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.tar
android_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.tar.gz
android_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.tar.bz2
android_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.tar.lz
android_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.tar.xz
android_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.tar.zst
android_bootable_recovery-a999821ad46ac19fae34fec78d538423ff6e5adc.zip
Diffstat (limited to 'gui/objects.hpp')
-rw-r--r--gui/objects.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index ceb2c6c0c..00770b378 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -589,13 +589,18 @@ protected:
int mSeparatorH; // Height of the separator between items
COLOR mSeparatorColor; // color of the separator that is between items
- // Scrolling and dynamic state
+ // Scrollbar
int mFastScrollW; // width of the fastscroll area
int mFastScrollLineW; // width of the line for fastscroll rendering
int mFastScrollRectW; // width of the rectangle for fastscroll
- int mFastScrollRectH; // height of the rectangle for fastscroll
+ int mFastScrollRectH; // minimum height of the rectangle for fastscroll
COLOR mFastScrollLineColor;
COLOR mFastScrollRectColor;
+
+ // Scrolling and dynamic state
+ int mFastScrollRectCurrentY; // current top of fastscroll rect relative to list top
+ int mFastScrollRectCurrentH; // current height of fastscroll rect
+ int mFastScrollRectTouchY; // offset from top of fastscroll rect where the user initially touched
bool hasScroll; // indicates that we have enough items in the list to scroll
int firstDisplayedItem; // this item goes at the top of the display list - may only be partially visible
int scrollingSpeed; // on a touch release, this is set based on the difference in the y-axis between the last 2 touches and indicates how fast the kinetic scrolling will go