mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +00:00
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:
parent
758ecfecce
commit
d1485572c6
2 changed files with 33 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
1999-10-22 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSColor.m ([NSColor -set]): Implement (from backend).
|
||||||
|
|
||||||
Fri Oct 22 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
Fri Oct 22 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Documentation/gnustep-gui.tmpl.texi (Keyboard Modifiers):
|
* Documentation/gnustep-gui.tmpl.texi (Keyboard Modifiers):
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
#include <AppKit/NSPasteboard.h>
|
#include <AppKit/NSPasteboard.h>
|
||||||
#include <AppKit/NSView.h>
|
#include <AppKit/NSView.h>
|
||||||
#include <AppKit/NSGraphics.h>
|
#include <AppKit/NSGraphics.h>
|
||||||
|
#include <AppKit/PSOperators.h>
|
||||||
|
|
||||||
NSString *NSSystemColorsDidChangeNotification =
|
NSString *NSSystemColorsDidChangeNotification =
|
||||||
@"NSSystemColorsDidChangeNotification";
|
@"NSSystemColorsDidChangeNotification";
|
||||||
|
@ -1049,6 +1050,34 @@ static NSMutableDictionary *colorStrings = nil;
|
||||||
|
|
||||||
- (void) set
|
- (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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue