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
AbstractSpinner.h
BMCPrivate.h
BitmapPrivate.h
ColorConversion.h
ColorMenuItem.h
ColumnListView.h
ColumnTypes.h
DecimalSpinner.h
DecorInfo.h
DecoratorPrivate.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
InterfacePrivate.h Add basic support for loading ControlLook add-ons 2019-05-13 22:15:30 +00:00
MenuItemPrivate.h
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
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
StackAndTilePrivate.h
TabViewPrivate.h
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
ViewPort.h
ViewPrivate.h
WidthBuffer.h
WindowInfo.h
WindowPrivate.h
WindowStack.h
ZombieReplicantView.h
clipping.h clipping.h: Rewrite copyright header to use the "new" style. 2020-03-01 18:20:56 +00:00
input_globals.h
truncate_string.h
utf8_functions.h utf8_functions.h: Fix PVS 359 2019-01-09 17:44:19 +00:00