Modified ColorSet to match new color_which defs in InterfaceDefs.h

Added ending newlines to a number of files


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2648 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-02-07 17:30:17 +00:00
parent c8563e149f
commit 7efc1255ed
23 changed files with 90 additions and 37 deletions

View File

@ -1757,7 +1757,7 @@ bool AccelerantDriver::DumpToFile(const char *path)
*/
float AccelerantDriver::StringWidth(const char *string, int32 length, LayerData *d)
{
if(!string || !d || !d->font)
if(!string || !d || !d->font)
return 0.0;
_Lock();

View File

@ -57,13 +57,20 @@ ColorSet::ColorSet(const ColorSet &cs)
menu_selected_background=cs.menu_selected_background;
menu_text=cs.menu_text;
menu_selected_text=cs.menu_selected_text;
menu_selected_border=cs.menu_selected_border;
keyboard_navigation_base=cs.keyboard_navigation_base;
keyboard_navigation_pulse=cs.keyboard_navigation_pulse;
success=cs.success;
failure=cs.failure;
shine=cs.shine;
shadow=cs.shadow;
window_tab=cs.window_tab;
window_tab_text=cs.window_tab_text;
inactive_window_tab=cs.inactive_window_tab;
inactive_window_tab_text=cs.inactive_window_tab_text;
keyboard_navigation=cs.keyboard_navigation;
desktop=cs.desktop;
}
/*!
@ -102,14 +109,20 @@ void ColorSet::SetColors(const ColorSet &cs)
menu_selected_background=cs.menu_selected_background;
menu_text=cs.menu_text;
menu_selected_text=cs.menu_selected_text;
menu_selected_border=cs.menu_selected_border;
keyboard_navigation_base=cs.keyboard_navigation_base;
keyboard_navigation_pulse=cs.keyboard_navigation_pulse;
success=cs.success;
failure=cs.failure;
shine=cs.shine;
shadow=cs.shadow;
window_tab=cs.window_tab;
window_tab_text=cs.window_tab_text;
inactive_window_tab=cs.inactive_window_tab;
inactive_window_tab_text=cs.inactive_window_tab_text;
keyboard_navigation=cs.keyboard_navigation;
desktop=cs.desktop;
}
/*!
@ -135,13 +148,19 @@ void ColorSet::PrintToStream(void)
printf("menu_selected_background "); menu_selected_background.PrintToStream();
printf("menu_text "); menu_text.PrintToStream();
printf("menu_selected_text "); menu_selected_text.PrintToStream();
printf("menu_selected_border "); menu_selected_border.PrintToStream();
printf("keyboard_navigation_base "); keyboard_navigation_base.PrintToStream();
printf("keyboard_navigation_pulse "); keyboard_navigation_pulse.PrintToStream();
printf("success "); success.PrintToStream();
printf("failure "); failure.PrintToStream();
printf("shine "); shine.PrintToStream();
printf("shadow "); shadow.PrintToStream();
printf("window_tab "); window_tab.PrintToStream();
printf("window_tab_text "); window_tab_text.PrintToStream();
printf("inactive_window_tab "); inactive_window_tab.PrintToStream();
printf("inactive_window_tab_text "); inactive_window_tab_text.PrintToStream();
printf("keyboard_navigation "); keyboard_navigation.PrintToStream();
printf("desktop "); desktop.PrintToStream();
}

View File

@ -61,14 +61,22 @@ public:
menu_selected_background,
menu_text,
menu_selected_text,
menu_selected_border,
keyboard_navigation_base,
keyboard_navigation_pulse,
success,
failure,
shine,
shadow,
// Not all of these guys don't exist in InterfaceDefs.h, but we keep
// them as part of the color set anyway - they're important nonetheless
window_tab,
window_tab_text,
inactive_window_tab,
inactive_window_tab_text,
keyboard_navigation,
desktop;
inactive_window_tab_text;
};
#endif

View File

@ -29,6 +29,7 @@
#include <SupportDefs.h>
#include <Rect.h>
#include <Region.h>
#include <String.h>
#include <Window.h>
#include "LayerData.h"

View File

@ -29,7 +29,6 @@
#define _DISPLAY_DRIVER_H_
#include <GraphicsCard.h>
#include <SupportDefs.h>
#include <OS.h>
#include <View.h>

View File

@ -69,12 +69,11 @@ public:
bool SetSystemBold(const char *family, const char *style, float size);
bool SetSystemFixed(const char *family, const char *style, float size);
bool FontsNeedUpdated(void) { return need_update; }
void FontsUpdated(void) { need_update=false; }
protected:
/*!
\brief Called when the fonts list has been updated
*/
void FontsUpdated(void) { need_update=false; }
protected:
FontFamily *_FindFamily(const char *name);
FT_CharMap _GetSupportedCharmap(const FT_Face &face);
bool init;

View File

@ -33,6 +33,7 @@
#include <List.h>
#include <String.h>
#include <OS.h>
#include <Locker.h>
#include "LayerData.h"
class ServerWindow;

View File

@ -1,3 +1,29 @@
//------------------------------------------------------------------------------
// Copyright (c) 2001-2002, OpenBeOS
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
// File Name: RectUtils.h
// Author: DarkWyrm <bpmagic@columbus.rr.com>
// Description: Utilities for work around R5 Interface Kit bugs
//
//------------------------------------------------------------------------------
#ifndef RECTUTILS_H_
#define RECTUTILS_H_