Remove backend color classes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5056 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-10-22 15:24:33 +00:00
parent 58dcea8e16
commit 6012de375f
2 changed files with 33 additions and 0 deletions

View file

@ -40,6 +40,7 @@
#include <AppKit/NSPasteboard.h>
#include <AppKit/NSView.h>
#include <AppKit/NSGraphics.h>
#include <AppKit/PSOperators.h>
NSString *NSSystemColorsDidChangeNotification =
@"NSSystemColorsDidChangeNotification";
@ -1049,6 +1050,34 @@ static NSMutableDictionary *colorStrings = nil;
- (void) set
{
switch (active_component)
{
case GNUSTEP_GUI_RGB_ACTIVE:
NSDebugLLog(@"NSColor", @"RGB %f %f %f\n", RGB_component.red,
RGB_component.green, RGB_component.blue);
PSsetrgbcolor(RGB_component.red, RGB_component.green,
RGB_component.blue);
break;
case GNUSTEP_GUI_CMYK_ACTIVE:
NSDebugLLog(@"NSColor", @"CMYK %f %f %f %f\n", CMYK_component.cyan,
CMYK_component.magenta,
CMYK_component.yellow, CMYK_component.black);
PSsetcmykcolor(CMYK_component.cyan, CMYK_component.magenta,
CMYK_component.yellow, CMYK_component.black);
break;
case GNUSTEP_GUI_HSB_ACTIVE:
NSDebugLLog(@"NSColor", @"HSB %f %f %f\n", HSB_component.hue,
HSB_component.saturation, HSB_component.brightness);
PSsethsbcolor(HSB_component.hue, HSB_component.saturation,
HSB_component.brightness);
break;
case GNUSTEP_GUI_WHITE_ACTIVE:
NSDebugLLog(@"NSColor", @"Gray %f\n", white_component);
PSsetgray(white_component);
}
}
//