Made MenuWindow::GetSteps() const.
Increased the scrollers size from 10 to 12, since at high resolutions, they're really too small. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
|||||||
void DetachScrollers();
|
void DetachScrollers();
|
||||||
|
|
||||||
void SetSmallStep(float step);
|
void SetSmallStep(float step);
|
||||||
void GetSteps(float* _smallStep, float* _largeStep);
|
void GetSteps(float* _smallStep, float* _largeStep) const;
|
||||||
bool HasScrollers() const;
|
bool HasScrollers() const;
|
||||||
bool CheckForScrolling(const BPoint& cursor);
|
bool CheckForScrolling(const BPoint& cursor);
|
||||||
bool TryScrollBy(const float& step);
|
bool TryScrollBy(const float& step);
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|
||||||
const int kScrollerHeight = 10;
|
const int kScrollerHeight = 12;
|
||||||
|
|
||||||
|
|
||||||
BMenuScroller::BMenuScroller(BRect frame)
|
BMenuScroller::BMenuScroller(BRect frame)
|
||||||
@@ -367,7 +367,7 @@ BMenuWindow::SetSmallStep(float step)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BMenuWindow::GetSteps(float* _smallStep, float* _largeStep)
|
BMenuWindow::GetSteps(float* _smallStep, float* _largeStep) const
|
||||||
{
|
{
|
||||||
if (_smallStep != NULL)
|
if (_smallStep != NULL)
|
||||||
*_smallStep = fScrollStep;
|
*_smallStep = fScrollStep;
|
||||||
|
|||||||
Reference in New Issue
Block a user