diff --git a/ChangeLog b/ChangeLog index e1d14d4f6..711704b9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-09 Fred Kiefer + + * Headers/AppKit/NSGraphics.h: Add NSSetFocusRingStyle and type + definition. + * Source/Functions.m (NSSetFocusRingStyle): Add dummy implementation. + Code by Nikolaus Schaller . + 2008-08-08 Adam Fedor * Source/NSBitmapImageRep+JPEG.m: Handle patched jpeg library diff --git a/Headers/AppKit/NSGraphics.h b/Headers/AppKit/NSGraphics.h index 08010456b..1a24b2047 100644 --- a/Headers/AppKit/NSGraphics.h +++ b/Headers/AppKit/NSGraphics.h @@ -142,7 +142,6 @@ NSDrawBezel(const NSRect aRect, const NSRect clipRect) NSDrawGrayBezel(aRect, clipRect); } - /** Draws a rectangle along the inside of aRect. The rectangle will be black, dotted (using 1 point dashes), and will have a line width of 1 point. */ @@ -244,4 +243,15 @@ APPKIT_EXPORT int NSGetWindowServerMemory(int context, int *virtualMemory, #endif +#if OS_API_VERSION(MAC_OS_X_VERSION_10_1, GS_API_LATEST) +typedef enum _NSFocusRingPlacement +{ + NSFocusRingOnly=0, + NSFocusRingBelow, + NSFocusRingAbove +} NSFocusRingPlacement; + +void NSSetFocusRingStyle(NSFocusRingPlacement placement); +#endif + #endif /* __NSGraphics_h__ */ diff --git a/Source/Functions.m b/Source/Functions.m index fb365ae83..79b1fca7b 100644 --- a/Source/Functions.m +++ b/Source/Functions.m @@ -815,6 +815,12 @@ NSFrameLinkRect(NSRect aRect, BOOL isDestination) NSFrameRectWithWidth(aRect, NSLinkFrameThickness()); } +void NSSetFocusRingStyle(NSFocusRingPlacement placement) +{ + // FIXME: NIMP + NSLog(@"*** NSSetFocusRingStyle not implemented ***"); +} + void NSConvertGlobalToWindowNumber(int globalNum, unsigned int *winNum) {