mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* 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:
parent
593c42c5f7
commit
db9a23f78a
3 changed files with 25 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue