haiku/headers/private/app
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
..
ApplicationPrivate.h Revert r39462 because it was not really binary compatible. 2010-11-17 22:19:09 +00:00
AppMisc.h The app_server is now a regular BServer. 2015-07-22 20:40:29 +02:00
AppServerLink.h * Added BString version of LinkReceiver::ReadString(). 2005-11-07 16:14:05 +00:00
DesktopLink.h * Added private methods get_app_server_port() (that stores the server port, 2009-12-01 07:53:09 +00:00
DirectMessageTarget.h Made DirectMessageTarget's destructor private to avoid potential future 2008-03-06 00:36:31 +00:00
KeyStoreDefs.h Add generic unlock key setting and removal. 2013-03-05 11:04:57 -05:00
LaunchDaemonDefs.h launch_daemon: Added basic ability to stop/start jobs via API. 2015-11-07 21:58:12 +01:00
LaunchRoster.h launch_daemon: Added basic ability to stop/start jobs via API. 2015-11-07 21:58:12 +01:00
LaunchRosterPrivate.h launch_daemon: Improved target support. 2015-07-22 20:41:51 +02:00
LinkReceiver.h Fixed various errors/warnings reported by cppcheck: 2010-02-08 22:50:38 +00:00
LinkSender.h * Make sure LinkSender knows team ID of receiving team; this fixes the >64k ServerLink transfers. 2010-04-11 14:26:19 +00:00
LooperList.h Declare BLooperListIterator in the right place. 2014-01-10 22:31:37 +01:00
MessageAdapter.h BMessage: implemented KMessage reply. 2015-05-13 23:06:51 +02:00
MessagePrivate.h BMessage: implemented KMessage reply. 2015-05-13 23:06:51 +02:00
MessageUtils.h Fixed various errors/warnings reported by cppcheck: 2010-02-08 22:50:38 +00:00
MessengerPrivate.h Various whitespace cleanup only. 2015-09-05 16:09:33 +02:00
PortLink.h Remove unused PortLinkRef again. 2010-08-17 23:27:22 +00:00
RegistrarDefs.h app_server: fix test-app_server for launch_daemon changes 2015-08-23 01:00:32 +02:00
RosterPrivate.h launch_daemon: Fixed preregister consequences. 2015-11-11 16:04:02 +01:00
Server.h The beginnings of a launch_daemon for Haiku. 2015-07-22 20:39:47 +02:00
ServerLink.h * Make sure LinkSender knows team ID of receiving team; this fixes the >64k ServerLink transfers. 2010-04-11 14:26:19 +00:00
ServerMemoryAllocator.h * Header cleanup. 2011-06-24 18:22:02 +00:00
ServerProtocol.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
ServerProtocolStructs.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
ServerReadOnlyMemory.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
SimpleMallocIO.h More optimization for Message2. It now uses a more lightweight BSimpleMallocIO instead of the full blown BMallocIO. This wastes less memory and reduces unnecessary overhead when unflattening. 2005-07-31 11:48:38 +00:00
TokenSpace.h * Reinitialize global locks after a fork (at least those in the Application 2011-10-29 21:17:59 +00:00