BScrollView: Ask the BScrollBars what their preferred sizes are.
This replaces the use of the hard-coded scroll bar size constants and instead asks the scrollbars for their preferred sizes directly. Right now, this is a giant no-op since BScrollBar just returns the same hard-coded size when asked. The next commit will, however, change that.
This commit is contained in:
@@ -106,11 +106,11 @@ private:
|
||||
void _AlignScrollBars(bool horizontal,
|
||||
bool vertical, BRect targetFrame);
|
||||
|
||||
static BRect _ComputeFrame(BRect frame, bool horizontal,
|
||||
bool vertical, border_style border,
|
||||
static BRect _ComputeFrame(BRect frame, BScrollBar* horizontal,
|
||||
BScrollBar* vertical, border_style border,
|
||||
uint32 borders);
|
||||
static BRect _ComputeFrame(BView* target, bool horizontal,
|
||||
bool vertical, border_style border,
|
||||
static BRect _ComputeFrame(BView* target, BScrollBar* horizontal,
|
||||
BScrollBar* vertical, border_style border,
|
||||
uint32 borders);
|
||||
static float _BorderSize(border_style border);
|
||||
static uint32 _ModifyFlags(uint32 flags, BView* target,
|
||||
|
||||
Reference in New Issue
Block a user