forked from mirror/OpenTTD
(svn r21447) -Add: accessor function to get the direction of a scrollbar
This commit is contained in:
@@ -559,6 +559,15 @@ public:
|
||||
return IsInsideBS(item, this->GetPosition(), this->GetCapacity());
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
Reference in New Issue
Block a user