haiku/headers/private/interface
looncraz 7f9368cae5 Set*UIColor, etc.
The inseparable changes necessary to support live color updating across the
system in a sane, safe, and performant manner.

BView gains:

HasSystemColors()
HasDefaultColors()
AdoptSystemColors()
AdoptParentColors()
AdoptViewColor(BView*)
SetViewUIColor(color_which, float tint)
SetHighUIColor(...
SetLowUIColor(...
ViewUIColor(float* tint)
HighUIColor(...
LowUIColor(...
DelayedInvalidate()

BWindow gains a simple helper method:
IsOffscreenWindow()

BMessage gains:

AddColor()
FindColor()
GetColor()
HasColor()            * allegedly this API is deprecated, but I implemented it anyway
ReplaceColor()
SetColor()

Previous private ColorTools methods are made public and moved into GraphicsDefs:

mix_color, blend_color, disable_color

These are fully compatible with BeOS dan0 R5.1 methods and are just code cleanup
of BeOS example code under the OpenTracker license.

In addition, four new colors are created:
B_LINK_TEXT_COLOR
B_LINK_HOVER_COLOR
B_LINK_ACTIVE_COLOR
B_LINK_VISITED_COLOR

These changes are documented in their proper user documentation files.

In addition, due to a history rewrite, B_FOLLOW_LEFT_TOP has been defined and
used in lieu of B_FOLLOW_TOP | B_FOLLOW_LEFT and is included in this commit.

On the app_server side, the following has changed:

Add DelayedMessage - a system by which messages can be sent at a scheduled time,
and can also be merged according to set rules.  A single thread is used to service the
message queue and multiple recipients can be set for each message.
Desktop gains the ability to add message ports to a DelayedMessage so that
said messages can target either all applications or all windows, as needed.

Desktop maintains a BMessage which is used to queue up all pending color changes
and the delayed messaging system is used to enact these changes after a short
period of time has passed.  This prevents abuse and allows the system to merge
repeated set_ui_color events into one event for client applications, improving
performance drastically.

In addition, B_COLORS_UPDATED is sent to the BApplication, which forwards the message
to each BWindow.  This is done to improve performance over having the app_server
independently informing each window.

Decorator changes are live now, which required some reworking.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-04 06:48:22 -05:00
..
AboutWindow.h AboutWindow: Move to Interface Kit (still private) 2014-03-25 14:17:19 -04:00
AbstractSpinner.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
BitmapPrivate.h Make it possible to reconnect BBitmap to the app_server. 2012-01-22 15:30:15 +13:00
BMCPrivate.h BMCMenuBar: Refactor MakeFocus() 2013-08-25 00:09:28 -04:00
clipping.h BRegion scaling: fix semantics to avoid holes/overlaps 2014-06-19 19:23:29 +02:00
ColorConversion.h
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 Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
DecoratorPrivate.h * Put the decor stuff in the BPrivate namespace, as it should have been from 2011-05-21 18:12:25 +00:00
DecorInfo.h Update DecorInfo to scan for decorators 2014-02-20 19:31:49 -05:00
DefaultColors.h
DirectWindowPrivate.h
DraggerPrivate.h
FontPrivate.h
Icon.h BControl: Move icon code to separate class BIcon 2013-12-22 15:17:53 +01:00
input_globals.h
InterfacePrivate.h
MenuPrivate.h MenuPrivate: Add a SetLayout() method to MenuPrivate 2015-02-20 14:35:36 -05:00
MenuWindow.h BMenu: scroll marked item into view when menu has scrollers attached. 2013-05-03 21:10:51 +02:00
Palette.h
PictureDataWriter.h BView: add methods for affine translation/scaling/rotation 2015-11-10 23:34:08 +01:00
PicturePlayer.h BView: add methods for affine translation/scaling/rotation 2015-11-10 23:34:08 +01:00
PicturePrivate.h Forgot this file. 2012-01-22 15:30:18 +13:00
PictureProtocol.h BView: add methods for affine translation/scaling/rotation 2015-11-10 23:34:08 +01:00
PrivateScreen.h
RegionSupport.h
ShapePrivate.h app_server: add a cache for AlphaMasks 2015-11-14 16:09:52 +01:00
Spinner.h Split BSpinner into BAbstractSpinner and... 2015-08-22 15:15:08 -07:00
StackAndTilePrivate.h - Make MessageForListener a bit more flexible, passing a fix ServerLink is sometimes not enough and a separate sender and receiver is needed. 2010-11-20 06:47:20 +00:00
TabViewPrivate.h TabView: Add TabViewPrivate class, actually fix non-layout SetView. 2015-07-14 11:04:39 -04:00
TextViewSupportBuffer.h Use the Bfont object to discriminate between fonts (as in Dano) 2010-07-03 09:34:59 +00:00
ToolTip.h
ToolTipManager.h Refactor ToolTipManager a bit. 2012-05-02 23:51:49 -04:00
ToolTipWindow.h Moved stable tool tip concept into the BToolManager class. 2012-04-28 22:14:03 +02:00
truncate_string.h
utf8_functions.h Add an UTF8NextCharLen() version that takes a string length. 2011-12-06 19:09:56 +01:00
ViewPort.h Add private BViewPort class 2013-09-11 04:51:03 +02:00
ViewPrivate.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
WidthBuffer.h * cleanup and style fixes in WidthBuffer 2010-08-11 18:03:37 +00:00
WindowInfo.h
WindowPrivate.h Fixes #7796. The decorator add-on is unloaded when not needed anymore. Avoid assigning offscreen windows a window behaviour (which lives in an add-on). When loading another add-on the offscreen window was still pointing to an invalid window behaviour. 2011-07-25 03:32:14 +00:00
WindowStack.h Fix coding style. 2010-08-20 04:34:18 +00:00
ZombieReplicantView.h Final part of cleanup in Catalog.h. 2012-04-16 00:04:41 +02:00