summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index 96d40d95c..54183b0d0 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -560,6 +560,15 @@ public:
}
/**
+ * Is the scrollbar vertical or not?
+ * @return True iff the scrollbar is vertical.
+ */
+ FORCEINLINE bool IsVertical() const
+ {
+ return this->is_vertical;
+ }
+
+ /**
* Sets the number of elements in the list
* @param num the number of elements in the list
* @note updates the position if needed