summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-15 21:40:59 +0100
committerthat <github@that.at>2015-02-15 22:12:29 +0100
commit9876ac3361c77a28a55e7843d6db1dc781f93d95 (patch)
tree3724fb61e274f0480b383303235648e34dd72b8a /gui/objects.hpp
parentgui: make resources type safe (diff)
downloadandroid_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.tar
android_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.tar.gz
android_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.tar.bz2
android_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.tar.lz
android_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.tar.xz
android_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.tar.zst
android_bootable_recovery-9876ac3361c77a28a55e7843d6db1dc781f93d95.zip
Diffstat (limited to '')
-rw-r--r--gui/objects.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index 537de208e..b6937a215 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -552,7 +552,7 @@ protected:
// Handle scrolling changes for drags and kinetic scrolling
void HandleScrolling();
- // Returns many rows the list is capable of displaying
+ // Returns many full rows the list is capable of displaying
int GetDisplayItemCount();
// Returns the size in pixels of a partial item or row size
@@ -569,7 +569,7 @@ protected:
COLOR mHeaderFontColor;
std::string mHeaderText; // Original header text without parsing any variables
std::string mLastHeaderValue; // Header text after parsing variables
- int mHeaderIsStatic; // indicates if the header is static (no need to check for changes in NotifyVarChange)
+ bool mHeaderIsStatic; // indicates if the header is static (no need to check for changes in NotifyVarChange)
int mHeaderH; // actual header height including font, icon, padding, and separator heights
ImageResource* mHeaderIcon;
int mHeaderIconHeight, mHeaderIconWidth; // width and height of the header icon if present
@@ -579,9 +579,8 @@ protected:
// Per-item layout
FontResource* mFont;
COLOR mFontColor;
- bool hasHighlightColor; // indicates if a hightlight color was set
- bool hasFontHighlightColor; // indicates if the font hightlight color is set
- COLOR mHighlightColor; // background row hightlight color
+ bool hasHighlightColor; // indicates if a highlight color was set
+ COLOR mHighlightColor; // background row highlight color
COLOR mFontHighlightColor;
int mFontHeight;
int actualItemHeight; // Actual height of each item in pixels including max icon size, font size, and padding