Use same interface for optimisation methods, as in the subclasses.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9740 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2001-04-29 22:25:29 +00:00
parent 5b59e1be13
commit 322c59a6f4

View file

@ -170,8 +170,6 @@ NSGraphicsContext *GSCurrentContext();
*/ */
@interface NSGraphicsContext (Ops) @interface NSGraphicsContext (Ops)
/* initialize the backend */
+ (void)initializeBackend;
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
/* Color operations */ /* Color operations */
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
@ -444,9 +442,16 @@ NSGraphicsContext *GSCurrentContext();
- (void) DPScurrentserverdevice: (void **)serverptr; - (void) DPScurrentserverdevice: (void **)serverptr;
- (void) DPScurrentwindowdevice: (int)win : (void **)windowptr; - (void) DPScurrentwindowdevice: (int)win : (void **)windowptr;
@end
/* Common graphics functions */
@interface NSGraphicsContext (NSGraphics)
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
/* NSGraphics Ops */ /* NSGraphics Ops */
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
/* initialize the backend */
+ (void) initializeBackend;
/* /*
* Rectangle Drawing Functions * Rectangle Drawing Functions
*/ */
@ -458,6 +463,9 @@ NSGraphicsContext *GSCurrentContext();
- (void) NSRectFillList: (const NSRect *)rects : (int) count; - (void) NSRectFillList: (const NSRect *)rects : (int) count;
- (void) NSRectFillListWithGrays: (const NSRect *)rects : (const float *)grays - (void) NSRectFillListWithGrays: (const NSRect *)rects : (const float *)grays
:(int) count; :(int) count;
- (NSRect) NSDrawTiledRects: (NSRect) aRect : (const NSRect) clipRect
: (const NSRectEdge *) sides
: (const float *)grays : (int) count;
/* /*
* Draw a Bordered Rectangle * Draw a Bordered Rectangle
@ -466,9 +474,6 @@ NSGraphicsContext *GSCurrentContext();
- (void) NSDrawGrayBezel: (const NSRect) aRect : (const NSRect) clipRect; - (void) NSDrawGrayBezel: (const NSRect) aRect : (const NSRect) clipRect;
- (void) NSDrawBezel: (const NSRect) aRect : (const NSRect) clipRect; - (void) NSDrawBezel: (const NSRect) aRect : (const NSRect) clipRect;
- (void) NSDrawGroove: (const NSRect) aRect : (const NSRect) clipRect; - (void) NSDrawGroove: (const NSRect) aRect : (const NSRect) clipRect;
- (NSRect) NSDrawTiledRects: (NSRect) aRect : (const NSRect) clipRect
: (const NSRectEdge *) sides
: (const float *)grays : (int) count;
- (void) NSDrawWhiteBezel: (const NSRect) aRect : (const NSRect) clipRect; - (void) NSDrawWhiteBezel: (const NSRect) aRect : (const NSRect) clipRect;
- (void) NSDottedFrameRect: (const NSRect) aRect; - (void) NSDottedFrameRect: (const NSRect) aRect;
- (void) NSFrameRect: (const NSRect) aRect; - (void) NSFrameRect: (const NSRect) aRect;
@ -503,9 +508,9 @@ NSGraphicsContext *GSCurrentContext();
/* Context helper wraps */ /* Context helper wraps */
- (unsigned int) GSWDefineAsUserObj; - (unsigned int) GSWDefineAsUserObj;
- (void) GSWViewIsFlipped: (BOOL) flipped; - (void) GSWSetViewIsFlipped: (BOOL) flipped;
- (BOOL) GSWViewIsFlipped;
- (NSWindowDepth) GSWindowDepthForScreen: (int) screen; - (NSWindowDepth) GSWindowDepthForScreen: (int) screen;
- (const NSWindowDepth *) GSAvailableDepthsForScreen: (int) screen; - (const NSWindowDepth *) GSAvailableDepthsForScreen: (int) screen;
@end @end