2004-01-19 04:22:47 +00:00
|
|
|
/** <title>GSDrawFunctions</title>
|
|
|
|
|
|
|
|
<abstract>Useful/configurable drawing functions</abstract>
|
|
|
|
|
|
|
|
Copyright (C) 2004 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Adam Fedor <fedor@gnu.org>
|
|
|
|
Date: Jan 2004
|
|
|
|
|
|
|
|
This file is part of the GNU Objective C User interface library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2005-05-26 02:52:46 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
2004-01-19 04:22:47 +00:00
|
|
|
*/
|
|
|
|
|
2004-01-22 12:07:47 +00:00
|
|
|
#ifndef _GNUstep_H_GSDrawFunctions
|
|
|
|
#define _GNUstep_H_GSDrawFunctions
|
|
|
|
|
2004-01-19 04:22:47 +00:00
|
|
|
#include <Foundation/NSGeometry.h>
|
2004-02-13 18:27:34 +00:00
|
|
|
// For gradient types
|
|
|
|
#include "AppKit/NSButtonCell.h"
|
2004-01-19 04:22:47 +00:00
|
|
|
|
|
|
|
@class NSColor;
|
|
|
|
|
|
|
|
@interface GSDrawFunctions : NSObject
|
|
|
|
|
2005-11-02 13:55:27 +00:00
|
|
|
+ (id) theme;
|
|
|
|
+ (void) setTheme: (id)theme;
|
|
|
|
|
2004-05-31 19:24:10 +00:00
|
|
|
+ (NSRect) drawButton: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawDarkButton: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawDarkBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawLightBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawGrayBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawWhiteBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawGroove: (NSRect)border : (NSRect)clip;
|
|
|
|
+ (NSRect) drawFramePhoto: (NSRect)border : (NSRect)clip;
|
2004-01-19 04:22:47 +00:00
|
|
|
|
2004-02-24 21:20:22 +00:00
|
|
|
+ (NSRect) drawGradientBorder: (NSGradientType)gradientType
|
2004-02-13 18:27:34 +00:00
|
|
|
inRect: (NSRect)border
|
|
|
|
withClip: (NSRect)clip;
|
|
|
|
|
2005-11-23 05:43:21 +00:00
|
|
|
- (NSRect) drawButton: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawDarkButton: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawDarkBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawLightBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawGrayBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawWhiteBezel: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawGroove: (NSRect)border : (NSRect)clip;
|
|
|
|
- (NSRect) drawFramePhoto: (NSRect)border : (NSRect)clip;
|
|
|
|
|
|
|
|
- (NSRect) drawGradientBorder: (NSGradientType)gradientType
|
|
|
|
inRect: (NSRect)border
|
|
|
|
withClip: (NSRect)clip;
|
|
|
|
|
2004-01-19 04:22:47 +00:00
|
|
|
@end
|
2004-01-22 12:07:47 +00:00
|
|
|
|
|
|
|
#endif /* _GNUstep_H_GSDrawFunctions */
|