haiku/headers/os
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
..
add-ons SMTP works again. 2015-11-22 11:35:17 +01:00
app Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
arch ARM: remove annoying #warning 2014-10-26 23:40:17 +01:00
be_apps Applied slightly reworked and updated patch from ticket #1576 2011-10-29 15:38:20 +00:00
bluetooth Fix more GCC4 narrowing conversion warnings. 2013-05-03 19:42:04 +02:00
device Revert r42812. As pointed by Michael, one can use 2011-10-24 21:02:14 +00:00
drivers EntryCache: Add entry_cache_add_missing() for negative caching. 2015-08-20 21:25:56 +02:00
game Style fixes to the Game Kit, focus on docs 2014-06-11 16:44:48 -04:00
interface Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
kernel system: Provide elf.h to applications 2015-11-07 11:49:53 +13:00
locale Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
mail BMailAccountSettings: use BPathFinder. 2015-11-07 20:55:14 +01:00
media Move old launch_media_server to deprecated file 2015-12-06 15:09:12 +01:00
midi B_BIG_SYNTH_FILE and B_LITTLE_SYNTH_FILE are deprecated. 2015-08-24 17:18:26 +02:00
midi2
net Implement CONNECT pass-through for HTTPS proxy 2015-11-11 01:16:38 +01:00
package pkgman search: Add --requirements option 2015-11-20 20:55:12 +01:00
storage find_paths_etc(): added user/system only flags. 2015-03-26 21:47:22 +00:00
support Add __clang__ to a few #ifdefs 2015-11-07 23:02:53 +01:00
translation Minor cleanup of translator roster commit, updated copyright. 2015-11-13 11:37:15 +01:00
AppKit.h
Be.h Patch by Jorma Karvonen: Add LocaleKit.h header and also add it to Be.h. Thanks! 2010-05-16 16:07:55 +00:00
BeBuild.h Added some support for GCC 5+. 2015-07-20 21:45:02 +02:00
DeviceKit.h
GameKit.h
InterfaceKit.h
KernelKit.h
LocaleKit.h Remove references to NumberFormatImpl. 2014-10-06 08:35:50 +02:00
MailKit.h
MediaKit.h
MidiKit.h
NetKit.h
NetworkKit.h Added the new headers to the NetworkKit.h all-in-one header. 2010-10-27 14:16:19 +00:00
StorageKit.h
SupportKit.h
TranslationKit.h