haiku/headers/private
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
..
app Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
audio
binary_compatibility BControl: Add icon support 2013-12-22 02:48:25 +01:00
bluetooth h2: Fix bluetooth driver build, missing PrivateKernelHeaders 2014-05-18 22:33:56 -05:00
debug Move comment to correct function. 2013-05-01 19:52:00 -04:00
device power: Remove old cpufreq interface 2013-11-22 05:30:14 +01:00
drivers Reworked little endian bitfields a bit. 2015-11-10 08:47:48 +01:00
file_systems Fix building Haiku from Haiku 2014-07-13 15:35:31 +02:00
firewire include strings.h where appriopriate... 2014-08-08 22:40:37 +02:00
fs_shell EntryCache: Add entry_cache_add_missing() for negative caching. 2015-08-20 21:25:56 +02:00
graphics intel_extreme: Intial work for ValleyView support 2015-10-15 23:39:31 -05:00
index_server Add a CLucene full-text add-on. 2010-10-28 15:22:52 +00:00
input Implemented the patch on #7963 in a different way. 2011-10-31 18:09:24 +00:00
interface Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
kernel Add operator delete(void *, size_t) for C++14. 2015-11-08 00:38:20 +01:00
libroot libroot_debug: Merge guarded heap into libroot_debug. 2015-08-13 22:12:18 +02:00
locale Fix instanciate_catalog prototype 2015-01-17 17:02:40 +01:00
mail Mail server: fix disabling notifications 2015-01-14 16:27:33 +01:00
media Initial implementation of BMediaEncoder 2015-12-02 16:08:06 +01:00
midi Midi: Remove some duplicated code 2015-08-27 11:51:57 +02:00
mount * Removed now obsolete notification (this was not even used in Tracker 2009-10-07 19:31:57 +00:00
net libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
notification Notifications default to enabled on first boot. 2014-11-25 08:50:47 +01:00
package Moved BJob, and JobQueue into the support kit. 2015-05-21 21:37:01 +02:00
print Remove remaining unnecessary 'volatile' qualifiers 2013-11-06 00:03:07 +01:00
runtime_loader system: Build using public elf.h header 2015-11-07 11:49:56 +13:00
screen_saver When testing screensaver, don't have mouse move exit the screen saver. 2014-12-10 21:18:30 +01:00
shared Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
storage storage kit: don't expose the dev_t in BPartition::Mount() 2014-09-15 16:28:41 +12:00
support JobQueue: fixed incorrect requeuing. 2015-10-18 13:11:26 +02:00
syslog_daemon syslog_daemon: Converted to BServer. 2015-07-22 20:40:47 +02:00
system system: Build using public elf.h header 2015-11-07 11:49:56 +13:00
textencoding
tracker Tracker: IconMenuItem: Don't "use namespace" in a shared header. 2015-07-23 11:50:23 -04:00
usb_vision some copyright headers clean up 2010-04-12 21:02:09 +00:00
userlandfs UserlandFS: Make 64 bit clean and enable build for x86_64. 2015-03-29 16:25:17 +02:00
virtio virtio: add queue_is_full(), queue_is_empty(), queue_size() hooks. 2013-09-18 17:43:39 +02:00
vmdk Moved vmdkimage.h to a shareable place, cleaned it up a bit, and renamed it to 2009-10-01 03:08:46 +00:00