* Headers/Additions/GNUstepGUI/GSDrawFunctions.h,

* Source/GSDrawFunctions.m (+[theme],+[setTheme:]): New accessor
	methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21937 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2005-11-02 13:55:27 +00:00
parent 593c42c5f7
commit db9a23f78a
3 changed files with 25 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-11-02 Nicolas Roard <nicolas.roard@gmail.com>
* Headers/Additions/GNUstepGUI/GSDrawFunctions.h,
* Source/GSDrawFunctions.m (+[theme],+[setTheme:]): New accessor
methods.
2005-10-30 Adam Fedor <fedor@gnu.org>
* Documentation/General/OpenStepCompliance.gsdoc: Updates.

View file

@ -35,6 +35,9 @@
@interface GSDrawFunctions : NSObject
+ (id) theme;
+ (void) setTheme: (id)theme;
+ (NSRect) drawButton: (NSRect)border : (NSRect)clip;
+ (NSRect) drawDarkButton: (NSRect)border : (NSRect)clip;
+ (NSRect) drawDarkBezel: (NSRect)border : (NSRect)clip;

View file

@ -50,6 +50,22 @@
*/
@implementation GSDrawFunctions
static id theTheme;
+ (id) theme
{
if (theTheme == nil)
{
theTheme = [GSDrawFunctions new];
}
return theTheme;
}
+ (void) setTheme: (id) aTheme
{
ASSIGN (theTheme, aTheme);
}
/** Draw a button border */
+ (NSRect) drawButton: (NSRect)border : (NSRect)clip
{