haiku/headers/private/interface
John Scipione 1482b250a7 IK: Update scroll bars for alternative control look
Scroll bars should look and work identically to before on
HaikuControlLook.

Add DrawScrollBarButton() and DrawScrollBarThumb() and
DrawScrollBarBorder() methods. These methods are used to draw scroll
bars in a generic way so that they can be drawn differently by alternative
control look's (e.g. BeControlLook). Also it gives us back drawing of
scroll bar knobs.  However the knob setting is not exposed in the
interface in this commit.

These methods are in addition to the 2 existing DrawScrollBarBackground()
methods that draw the scroll bar background. One draws the area above and
below the thumb and the other is called by the first to actually draw the
area.

The rest of the drawing besides the backgrounds was being done in
BScrollBar before. To draw the scroll bar arrows and thumb we were recyling
other ControlLook methods, while this worked well enough on HaikuControlLook
it wasn't flexible enough for alternative control looks.

DrawScrollBarButton() is used to draw the four scroll buttons and is
typically (so far) used in combination with DrawArrowShape().

DrawScrollBarThumb() draws the scroll bar thumb.

DrawScrollBarBorder() draws a 1px border around the entire scroll bar,
potentially B_KEYBOARD_NAVIGATION_COLOR if focused (although this is
feature not currently used.)

Draw unscrollable scroll bars as if they were disabled including the
buttons with their arrow shapes, background, and thumb.

Add FBC backwords compatibility macros in ControlLook.cpp

Change-Id: I9237c5ce45d17d674785111d51de951e5686306b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/351
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-11 16:57:54 +00:00
..
AboutWindow.h BAboutWindow: Put the AboutView and StripeView into BPrivate. 2016-01-06 15:08:34 -05:00
AbstractSpinner.h BAbstractSpinner Colors 2016-01-10 18:51:04 +13:00
BitmapPrivate.h
BMCPrivate.h BMenu and friends: style fixes 2016-07-31 19:42:39 -07:00
clipping.h clipping.h: Rewrite copyright header to use the "new" style. 2020-03-01 18:20:56 +00:00
ColorConversion.h
ColorMenuItem.h BColorMenuItem: add custom color menufield 2016-07-31 19:42:39 -07:00
ColumnListView.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
ColumnTypes.h A bunch of style fixes 2014-12-02 19:23:51 -05:00
DecimalSpinner.h BSpinner: Set min value then max value 2017-01-12 14:15:44 -08:00
DecoratorPrivate.h
DecorInfo.h
DefaultColors.h
DeskbarPrivate.h Deskbar: Resizable tray 2018-11-04 19:00:49 +00:00
DirectWindowPrivate.h
DraggerPrivate.h
FontPrivate.h
HaikuControlLook.h IK: Update scroll bars for alternative control look 2020-04-11 16:57:54 +00:00
Icon.h
input_globals.h
InterfacePrivate.h Add basic support for loading ControlLook add-ons 2019-05-13 22:15:30 +00:00
MenuItemPrivate.h BColorMenuItem: add custom color menufield 2016-07-31 19:42:39 -07:00
MenuPrivate.h Visually align shortcuts in menus 2020-02-04 23:06:54 +00:00
MenuWindow.h
Palette.h
PictureDataWriter.h Fix some cases of updating draw state while recording a BPicture 2019-01-06 00:06:56 +00:00
PicturePlayer.h Fix some cases of updating draw state while recording a BPicture 2019-01-06 00:06:56 +00:00
PicturePrivate.h
PictureProtocol.h Fix some cases of updating draw state while recording a BPicture 2019-01-06 00:06:56 +00:00
PrivateScreen.h Support for configuring screen backlight 2017-11-21 09:12:18 +01:00
RegionSupport.h RegionSupport: Fix PVS 338-346 2018-11-30 21:13:14 +00:00
ShapePrivate.h Interface: Add casts to memcpy/memset invocations on BPoint & BRect. 2019-05-24 16:10:13 -04:00
Spinner.h BSpinner: Set min value then max value 2017-01-12 14:15:44 -08:00
StackAndTilePrivate.h
TabViewPrivate.h TabView: Add TabViewPrivate class, actually fix non-layout SetView. 2015-07-14 11:04:39 -04:00
TextViewSupportBuffer.h Add (void*) casts to memcpy/memset invocations to appease GCC 8. 2019-05-24 14:21:37 -04:00
ToolTip.h
ToolTipManager.h
ToolTipWindow.h
truncate_string.h
utf8_functions.h utf8_functions.h: Fix PVS 359 2019-01-09 17:44:19 +00:00
ViewPort.h
ViewPrivate.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
WidthBuffer.h
WindowInfo.h WindowInfo: spaces => tabs 2016-03-31 14:39:49 -07:00
WindowPrivate.h
WindowStack.h
ZombieReplicantView.h