* 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

@ -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
{