haiku/headers/os/interface
John Scipione 3302521556 Remove dependence on color constants in ServerReadOnlyMemory.
This fixes a maintainance problem where you have to update this otherwise
unrelated file to keep it in sync whenever you add a color constant.

I've added a B_COLOR_WHICH_COUNT constant to the color_which enum which should
be updated to point to the newest color constants as new ones are added. I
reworked ServerReadOnlyMemory to use this constant instead of using to the
current largest color constant directly. If you use B_COLOR_WHICH_COUNT to
refer to a color in your code expect to get unpredictable and nonsensical
results. Most likely you'll get an undefined result which will return black
but don't depend on it.

The net effect of this is that ServerReadOnlyMemory doesn't need to be updated
anymore when new color constants are introduced but will continue to produce
correct results.

Eliminate kNumColors constant, replace it with B_COLOR_WHICH_COUNT
2013-04-05 22:46:22 -04:00
..
AbstractLayout.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
AbstractLayoutItem.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
AffineTransform.h * Allow to set the scale (versus multiplication with a scale). 2010-04-21 16:46:32 +00:00
Alert.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Alignment.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Bitmap.h Make it possible to reconnect BBitmap to the app_server. 2012-01-22 15:30:15 +13:00
Box.h De-virtualize BView::InvalidateLayout() and introduce LayoutInvalidated() hook, like BLayout. 2011-10-28 14:16:43 -06:00
Button.h De-virtualize BView::InvalidateLayout() and introduce LayoutInvalidated() hook, like BLayout. 2011-10-28 14:16:43 -06:00
CardLayout.h Add a bit more FBC stuff for the Layout API, which I missed before. 2011-12-01 22:47:46 -07:00
ChannelControl.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
ChannelSlider.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
CheckBox.h De-virtualize BView::InvalidateLayout() and introduce LayoutInvalidated() hook, like BLayout. 2011-10-28 14:16:43 -06:00
ColorControl.h
Control.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
ControlLook.h Added support for buttons and menuframes with rounded corners. 2012-04-16 02:10:03 -04:00
Deskbar.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Dragger.h Rename the bounds parameter of the BDragger class to frame matching the BeBook 2012-12-21 21:24:46 -05:00
Font.h Fix some pedantic style issues in Font.h 2013-01-15 23:32:38 -05:00
Gradient.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientConic.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientDiamond.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientLinear.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientRadial.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientRadialFocus.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GraphicsDefs.h interface: Clean up public headers; No functional change. 2012-01-12 16:26:15 -06:00
GridLayout.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
GridLayoutBuilder.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
GridView.h Add FBC padding + Perform() methods to GridView and GroupView. 2011-11-04 23:08:11 -06:00
GroupLayout.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
GroupLayoutBuilder.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
GroupView.h Add FBC padding + Perform() methods to GridView and GroupView. 2011-11-04 23:08:11 -06:00
IconUtils.h * Add BIconUtils documentation to the Haiku Book 2011-08-09 19:31:46 +00:00
Input.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
InterfaceDefs.h Remove dependence on color constants in ServerReadOnlyMemory. 2013-04-05 22:46:22 -04:00
Layout.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
LayoutBuilder.h Changes to allow Haiku source to build with GCC 4.7 2012-11-15 17:59:19 -05:00
LayoutContext.h Add FBC padding to all (I think..) of the visible Layout related classes. 2011-11-02 00:29:33 -06:00
LayoutItem.h Added method SetExplicitSize() for convenience. 2012-11-05 12:50:00 +01:00
LayoutUtils.h Aligned the second MoveIntoFrame() parameter name with the implementation. 2010-11-19 17:49:09 +00:00
ListItem.h * Added BListItem::SetOutlineLevel() method. 2010-05-07 11:24:25 +00:00
ListView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Menu.h Added ResourceEdit and modified BColumnListView, BRow and BMenu. 2013-02-27 22:08:46 -05:00
MenuBar.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
MenuField.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
MenuItem.h Draw menus using the user chosen colors. 2012-07-28 23:02:17 -04:00
MultiChannelControl.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
OptionControl.h Added layout friendly constructor for BOptionControl 2009-10-25 10:45:42 +00:00
OptionPopUp.h Also add layout-friendly constructor for BOptionPopUp (not yet tested) 2009-10-25 10:49:28 +00:00
OutlineListView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Picture.h Reconnect BPicture to the app_server. 2012-01-22 15:30:15 +13:00
PictureButton.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Point.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Polygon.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
PopUpMenu.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
PrintJob.h Rewrote PrintJob.h 2009-08-26 18:56:44 +00:00
RadioButton.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Rect.h Made the BRect::*Copy() methods const as they should have been. 2012-11-05 12:50:02 +01:00
Region.h Changed BRegion to use int32 instead of long. 2012-08-10 16:22:51 +01:00
Screen.h Apply the patch by jscipione on ticket #7994. 2011-10-29 21:51:43 +00:00
ScrollBar.h Remove the scroll bar knobs and corresponding setting 2012-11-04 15:37:57 -05:00
ScrollView.h Replace remaining InvalidateLayout()'s with LayoutInvalidated(). Also do a bit of cleanup/move methods around. 2011-10-28 14:16:49 -06:00
SeparatorItem.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
SeparatorView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Shape.h Added BShape::CurrentPoint(), returning the current end point of the path. 2010-03-19 00:28:38 +00:00
Shelf.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Size.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Slider.h Minor cleanup. 2013-02-05 00:22:52 +01:00
SpaceLayoutItem.h Add a bit more FBC stuff for the Layout API, which I missed before. 2011-12-01 22:47:46 -07:00
SplitLayoutBuilder.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
SplitView.h Merge branch 'master' of git://github.com/haiku/haiku 2011-12-15 20:50:28 -07:00
StatusBar.h * Make a BStatusBar comfortable to use without any text labels. 2010-02-06 09:48:37 +00:00
StringItem.h * add protected accessor for baseline offset to StringItem, as that value is of 2011-08-21 17:17:13 +00:00
StringView.h Add missing space before opening brace. 2012-06-24 16:17:32 +02:00
TabView.h Update BTabView for layout-friendly archiving. Added _InitContainerView() method that is called from _InitObject() but also called on its own during unarchival. Implemented BTabView::AllUnarchived() and implemented a case for this in BTabView::Perform(). 2010-07-28 20:03:41 +00:00
TextControl.h The text control is now more flexible with its layout items. 2012-11-05 12:50:02 +01:00
TextView.h Remove docs and refactor style of TextView class. 2013-03-16 17:05:09 -04:00
TwoDimensionalLayout.h Make archiving hooks protected in layout classes. 2011-12-01 20:45:50 -07:00
UnicodeBlockObjects.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
View.h Added method SetExplicitSize() for convenience. 2012-11-05 12:50:00 +01:00
Window.h Add BWindow::HasShortcut() 2012-11-05 09:38:23 +01:00