BView: Add a B_SCROLL_VIEW_AWARE flag.

* This indicates the view will manage whatever scrollbars are targeted
   to it.
 * Use _B_RESERVED7_ for this. It's been RESERVED since BeOS R5
   (I guess it was probably something on some older BeOS version?)
   and we don't really care about BeOS R4 ABI compatibility, so
   that should be fine.
 * Update BScrollView to not touch BScrollBar range/proportion
   when the target view has this set.
 * Update BListView to set this flag, always.

Fixes #14871.

Change-Id: I17027f3b63ef28da1e735c5393593496c415dce3
Reviewed-on: https://review.haiku-os.org/c/998
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Augustin Cavalier
2019-02-03 18:04:13 +00:00
committed by waddlesplash
parent b073a8c83f
commit e5d0c9094d
4 changed files with 21 additions and 13 deletions
+12 -7
View File
@@ -308,13 +308,17 @@
\var B_SUBPIXEL_PRECISE
\brief The view draws with sub-pixel precision.
\since Haiku R1
If this flag is not specified, drawing coordinates will be rounded
to the nearest integer.
\since BeOS R5
*/
/*!
\var B_DRAW_ON_CHILDREN
\brief Indicates that the view responds to the DrawAfterChildren() hook method.
\brief Indicates that the view responds to the DrawAfterChildren() hook
method.
\since BeOS R5
*/
@@ -322,16 +326,17 @@
/*!
\var B_INPUT_METHOD_AWARE
\brief Allows the view to use input method add-ons to gain access to the
input methods needed for Japanese and other languages.
\brief Indicates the view understands input method add-ons, as used
for complex text input in CJK and other languages.
\since Haiku R1
\since BeOS R5
*/
/*!
\var _B_RESERVED7_
\brief Reserved for future use.
\var B_SCROLL_VIEW_AWARE
\brief Indicates the view will properly manage scrollbars that
have been targeted to it, i.e. update their ranges and proportions.
\since Haiku R1
*/